I would like to know a few things about Fmod.
First of all, i will explain what i want to do with Fmod and then ask my questions :).
I’m working on a project that aims to allow users to play music together over internet. (like Ninjam or eJamming).
In the past i’ve been using RtAudio and PortAudio, but this time i want to use fmod (oscillator, etc ..).
The design of the audio part is simple.
gain audio from the instrument (and play it to the user in realtime if he choosed it) -> compress the stream part using vorbis and send it to the server.
So my questions are.
- What is the best way to gain Audio from a mic (or an instrument) with a low-latency?
- Can someone explain to me how to handle the createStream method? I have trouble understanding how to make a loop with createStream() and playSound(). (i’ve already read the examples but it looks like i’m missunderstanding something)
I hope not to bother you
- pi3r asked 8 years ago
No flags are necessary for low latency recording, and I generally advise against using FMOD_HARDWARE since it causes more problems that it solves (and is soon to be deprecated for Windows).
You could tweak the DSP buffer size, System::setDSPBufferSize, this allows the FMOD mixer to operate in smaller chunks reducing latency.
Please login first to submit.