An even better (simpler) example is "uLawFromPCMAudioSource", in "liveMedia/uLawAudioFilter.cpp". (In this case, the input data is twice as large as the output data, so the input data needs to be buffered.) Ross Finlayson Live Networks, Inc. (LIVE555.COM) <http://www.live555.com/>