I am implementing a software to play audio data in different computers. The data is captured from a computer that sends thru network to another computer to playback.
I can use audio codecs, it's generic. You need to initialize the class with parameters to use codecs or not. I already implemented Speex, mLaw, uLaw codecs.
It's working fine but I have one problem. When I start to play, in some situations when one computers is playing the audio data a delay rises, I need to bufferize to do not loose data.
I was reading some articles and I realize that exists a problem of WaveBoards clocks dissimilitarity.
I guess that to guarantee the playback rate I will need to drop or to copy samples in my lpData Buffer.
If it's correct, I want to know how can I compute this number? I know that my buffer represents one time period. Do I need to compute the real time that the board take to play the audio-data and then use this reference to others packets/buffers or I have to compute this synchronization number for every packet/buffer? Or I am wrong, It's not a solution.
Any help is very good!
Sorry my english mistakes, If you do not understand any part tell me and I will try to write again.
Thanks
cox