How can SpeexEncoder be used in conjunction with PCMWavWriter

Dec 26, 2011 at 2:31 PM

I am obtaining a PCM data from Windows Phone microphone. I want the audio data to be speex encoded and saved as wav. I am assuming I will need to use PCMWavWriter in conjunction with NSpeexEncoder. In which sequence a data from a mic has to be streamed through instances of these classes? Is it mic -> speexencoder -> pcmwavwriter?