• 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: AudioDeviceIOProc not called after AudioDeviceStart
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioDeviceIOProc not called after AudioDeviceStart


  • Subject: Re: AudioDeviceIOProc not called after AudioDeviceStart
  • From: Alain Mazy <email@hidden>
  • Date: Tue, 06 Apr 2004 12:45:29 +0200

Hi Vincent,

No, I do not use any music player at the same time. In my app, the user is
able to use two inputs (only one at a time): an audio file or the audio-in.
Sometimes, when starting the audio-in device, the IOProc was just not called
and sometimes it was.

I say 'was' because now it is solved (well, not solved but it works):
I have changed one line inside the IOProc and now it is always called !!!
Of course, I guess next time I will change another line, my problem will
come back again but that will be another story.

Alain.



Le 4/6/04 9:25 AM, + A. Le Flanchec ; <email@hidden> a icrit :

> Salut Alain,
>
> Do you use some music sequence and music player at the same time ? I think I
> do have the same kind of problems when running an AudioDevice for input,
> while running a music sequence at the same time (for recording while
> listening to prviously recorded music... by the way, is it the correct way
> to do it ?). When I start the device, the IOProc used to read my audiofiles
> and render them through a stereomixer, are not called anymore... and
> sometimes they are. I could not find any solution, except starting the
> device right when my app launches and never stopping it... It is very
> strange, because I thought I could start and stop my audioDevice without
> affectiong the music player and AUGraph running in another thread...
>
> Tell me if you think your problem is related with mine... maybe we could
> sort it out together !
>
> Vincent
>
>
>
>> Here is a piece of code I have to start an audio device (input).
>>
>> err = AudioDeviceAddPropertyListener(fInputDevice->mID, 0, TRUE,
>> kAudioDevicePropertyDeviceIsRunning, AudioDeviceIsRunningListenerProc,
>> NULL);
>> err = AudioDeviceAddIOProc(fInputDevice->mID,
>> AudioDeviceSourceInputIOProc, self);
>> err = AudioDeviceStart(fInputDevice->mID,
>> AudioDeviceSourceInputIOProc);
>>
>> The PropertyListener callback is called and tells me the device is running
>> but the AudioDeviceIOProc is never called. I get no error message.
>>
>> Actually, this piece of code sometimes work and sometimes not. It depends
>> on what the user has done before. However, the failure/success of this
>> code
>> does not depend on the creation code or startup code for the AudioDevice
>> which is always the same.
>
> _________________________________________________________________
> MSN Messenger : discutez en direct avec vos amis !
> http://www.msn.fr/msger/default.asp
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


References: 
 >Re:AudioDeviceIOProc not called after AudioDeviceStart (From: "A. Le Flanchec" <email@hidden>)

  • Prev by Date: Re:AudioDeviceIOProc not called after AudioDeviceStart
  • Next by Date: Re: MusicSequence and virtual sources...
  • Previous by thread: Re:AudioDeviceIOProc not called after AudioDeviceStart
  • Next by thread: Confused on DefaultOutputUnit and conversions
  • Index(es):
    • Date
    • Thread