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!
- polemos asked 12 years ago
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.
To get access to raw PCM sound data, there is Sound::lock, Sound::unlock.
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.
- polemos answered 11 years ago
Please login first to submit.