inTimeStamp->mSampleTime in the InputProc is not reset
inTimeStamp->mSampleTime in the InputProc is not reset
- Subject: inTimeStamp->mSampleTime in the InputProc is not reset
- From: Rolf Nilsson <email@hidden>
- Date: Fri, 12 Nov 2004 17:07:27 +0100
Hi,
My recording application is partly based on the "afrecord" example in the /
CoreAudio/Services/AudioFileTools folder (same as TN2091)
and the ComplexPlayThru example.
Everything works fine except when I tear down the whole recording stuff, then start it again (without quitting the application).
After that the inTimeStamp->mSampleTime in the InputProc is not reset but seems to have the same time values as before tearing it down.
If I sleep for say a second between tearing it down and starting again, it's OK.
It seems the whole CA system needs some time to reset the device?
Strange is I don't see this behavior in the ComplexPlayThru example.
I tried to use AudioUnitSetProperty() with kAudioOutputUnitProperty_StartTime to reset the sample times but it does not work (or I'm not doing it correctly?)
Any ideas?
Thanks
Rolf Nilsson
_______________________________________________
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