Bad time stamp
Bad time stamp
- Subject: Bad time stamp
- From: email@hidden
- Date: Wed, 19 Jan 2011 20:30:35 -0500 (EST)
Hi,
I have a small multi-track recording program that can play and record at the same time. The audio IO procs are always running for the active document window and if nothing is playing, it just fills the buffers with zeros and if it's not recording, it doesn't call AudioUnitRender().
When a new document window is opened, it stops the IO procs for the old window, and starts them for the new window. That's when the time stamp's mSampleTime starts giving you bad values. When you put a 1 second delay between stopping and starting the IO procs it works fine. I tried calling AudioDeviceGetProperty(kAudioDevicePropertyDeviceIsRunning) for the input and output before starting the IO procs to make sure it isn't running, but it still gives bad values for mSampleTime.
To stop it I'm calling:
AudioOutputUnitStop();
AudioUnitUninitialize();
CloseComponent();
How can you tell when it has really stopped running?
thanks
Jeff
_______________________________________________
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