The wave writer writes until you have finished and closed the system object with System::release or System::close.
To make a progress bar you need to know the end time, and then just interpolate from the start time to the end time.
If you use FMOD_OUTPUTTYPE_WAVWRITER_NRT then you can increment a progress bar every time you call System::update
Thank you . How to know the end time use FMOD_OUTPUTTYPE_WAVWRITER? or how do i know whether need call the System::update use the FMOD_OUTPUTTYPE_WAVWRITER_NRT ?
You seem to be playing some sort of file, the wavwriter has no end, so the wavwriter is not relevant to how long you want to run. It will run forever if you want it to.
What are you wanting to end? If it is a sound you are playing, just check isPlaying on the Channel for when the wav file stops playing.
- You must login to post comments
Please login first to submit.