• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PlayThru (was: AudioUnit for default input device)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PlayThru (was: AudioUnit for default input device)


  • Subject: Re: PlayThru (was: AudioUnit for default input device)
  • From: Lieven Dekeyser <email@hidden>
  • Date: Mon, 19 Nov 2001 11:58:50 +0100 (CET)

> > Is there an easy way get the default input device to play through the
> > default output device?
>
> If the default input and the default output device are the same device and
> that device presents them together in the IOProc (presuming
> kAudioDevicePropertyPlayThru isn't supported), you can just copy the data
> from the input buffers to the output buffers in your IOProc.

Yep... got that to work just fine. Thanks for the suggestion. I found the
code I needed in the Daisy sample code from Apple.

> If the default input and the default output device are different devices.
> You will have to deal with moving the data coming in from one IOProc to the
> buffer going out in another IOProc. You could use a queue of some kind. Be
> sure to copy the data out of the input buffers to your own buffers since
> those buffers get reused by the HAL each cycle.

I tried to copy the AudioBufferLists and put these copies in a queue, but
it didn't work :-(
Are the IOProcs fired at interrupt time? If so, I guess calling malloc and
memcpy isn't allowed, right? How do you copy the bufferdata?

any help would be appreciated!

greetz,

Lieven


References: 
 >Re: PlayThru (was: AudioUnit for default input device) (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: MIDI device/entity/endpoint names
  • Next by Date: Gain Staging?
  • Previous by thread: Re: PlayThru (was: AudioUnit for default input device)
  • Next by thread: Modem sound input [was: When is sound recording going...]
  • Index(es):
    • Date
    • Thread