Is is possible to write an output file (using wavewriter), at a different sample rate to the input file?
I need to convert a bunch of audio files to 48Khz.
I noticed that you can set the frequency of the software mixer, but had a feeling that this might not mean anything if it isn’t streaming to a physical device.
I thought I would ask the question before coding.
Sorry if this question has already been answered somewhere, I did search but couldn’t find any answers.
- dtewksbury asked 7 years ago
if you use WAVEWRITER_NRT it will set the frequency of the wave file to that of the frequency specified in System::setSoftwareFormat.
This is the default anyway.
So if you play a 22khz sound, and use the wavewriter, it will resample it up to 48khz for you.
I decided to search using resample instead of sample rate conversion, and I found this response in another thread
[b:2zjfmhe5]"To play a 22khz sound at 44khz , in fmod3 or fmodex, you can just use ‘playsound’ and fmod will automatically resample it for you. You don’t have to worry about trivial things like that"[/b:2zjfmhe5]
But it doesn’t specifically say that if I set the software mixer to 48KHz, then wavewriter will output to the file at 48K?
Hi Brett, thank you for the information, I have coded it and it works a treat. I didn’t realise you guys were in Melbourne (My old stomping ground before I moved to Sydney).
Great product by the way.
I used FMOD when it was in it’s infancy, and it was easy back then. This is the first time I have used it in it’s current form. It would be nice to use the C++ API, but I use codegear RAD studio CPPB. However the C interface is just fine.
Please login first to submit.