0
0

I need some help with fmod and networking I am working on a project where we are using fmod and udp networking. I am trying to do voice chat I am creating a fmod sound * and filling it out with the createexinfo stucture then recoding to it. But how do i get the data i need from this sound * and send it across the network. do you use the read data function? or get user data function? I am not sure, right now we are casting the sound pointer to a char pointer but that is not working mainly because I am casting a pointer to a class. can anyone help!

  • You must to post comments
0
0
  1. Casting an FMOD Sound * pointer is futile. You need to read some C books if you think that will work. FMOD’s sound handle is a handle, and not a pointer to raw data.

  2. To get access to raw PCM sound data, there is Sound::lock, Sound::unlock.

  • You must to post comments
0
0

your right I wasn’t thinking when i was trying to send the sound pointer, but thanks for the tip with lock and unlock I will try that, but is sounds lock and unlock just like a vertex buffer where i can just memcopy the pcm data into a char buffer in between the lock and unlock calls.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.