Re: Playing of the same audiofile n times...
Re: Playing of the same audiofile n times...
- Subject: Re: Playing of the same audiofile n times...
- From: Luca Filippin <email@hidden>
- Date: Mon, 17 Sep 2007 20:33:05 +0200
I checked more carefully my code: you cannot call AudioOutputUnitStop from
inside the render callback and then return a NULL data buffer even if the
in/out ioNumberDataPackets parameter is set to 0, otherwise subsequent call to
AudioOutputUnitStart will fail.
Luca
Quoting Luca Filippin <email@hidden>:
>
> Hi to all...
> I have this problem. I want to play the same file more than 1 time using the
> same AudioUnit and AudioConverter instances. The first time everything works
> well. When there are no more samples to play I stop the AudioUnit with
> AudioOutputUnitStop. Then, after some time I need to play the same file
> again... I've already my AudioConverter and AudioUnit, so I just need (I
> think)
> to reset the data offset for the callback procedure and perform an new
> AudioOutputUnitStart... but, it doesn't work any longer. Why? I see that my
> render proc is called but AudioConverterFillComplexBuffer doesn't execute
> the
> actual callback passed as parameter... Any hints? Thanks in advance for your
> help
> Cheers
> Luca
>
>
> ----------------------------------------------------------------
> SISSA Webmail https://webmail.sissa.it/
> Powered by Horde http://www.horde.org/
>
----------------------------------------------------------------
SISSA Webmail https://webmail.sissa.it/
Powered by Horde http://www.horde.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden