0
0

Hi guyz,

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.

  1. What is the best way to gain Audio from a mic (or an instrument) with a low-latency?
  2. 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

  • You must to post comments
0
0

Perhaps take a look at the recording example, it demonstrates how to record into a looping buffer and optionally play it with a short delay.

  • You must to post comments
0
0

thanks, il will persevere… Just a last question, does fmod provides some flags to reduce the latency other than FMOD_HARDWARE?

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.