tesseract4d
March 9th, 2011, 11:56 AM
Hi all,
I am working on a relatively large project in which we are building an application. A small task is to come up with an a program which will take in a buffer of audio data (ideally from the sound card) and encode it using the u-law (http://en.wikipedia.org/wiki/%CE%9C-law_algorithm) or a-law (http://en.wikipedia.org/wiki/A-law). Once that is done the data will be sent via the network and will have to be decoded appropriately at the Rx.
I am looking for a library that will provide me the necessary functions for this, and also an example program which would teach me to use those functions. I checked out libsndfile (http://www.mega-nerd.com/libsndfile/) which says that is supports u-law and a-law encoding but the issue is that there are functions in its api that do so - or at least I am mistaken.
I've spent a whole day at work googling this with no solid examples. This problem is very probably solved so I don't want to be coding it from the beginning.
Can any one help me out here please ?
regards
tesseract
I am working on a relatively large project in which we are building an application. A small task is to come up with an a program which will take in a buffer of audio data (ideally from the sound card) and encode it using the u-law (http://en.wikipedia.org/wiki/%CE%9C-law_algorithm) or a-law (http://en.wikipedia.org/wiki/A-law). Once that is done the data will be sent via the network and will have to be decoded appropriately at the Rx.
I am looking for a library that will provide me the necessary functions for this, and also an example program which would teach me to use those functions. I checked out libsndfile (http://www.mega-nerd.com/libsndfile/) which says that is supports u-law and a-law encoding but the issue is that there are functions in its api that do so - or at least I am mistaken.
I've spent a whole day at work googling this with no solid examples. This problem is very probably solved so I don't want to be coding it from the beginning.
Can any one help me out here please ?
regards
tesseract