Hi,
I am developing a voice-over-IP application, using OpenNETCF recording. There are no problems when I record to a filestream, but for some reason something stuffs up when I record to a memory stream. I try to get access to the data stored in the memory by using a binary reader, which works great with a filestream. Has anyone ever done this? Code is as follows:
MemoryStream mem = new MemoryStream();
m_Recorder = new OpenNETCF.Multimedia.Audio.Recorder();
m_Recorder.RecordFor(mem, 2, SoundFormats.Mono8bit11kHz);
// so far so good! The data is stored in memory
BinaryReader b = new BinaryReader(mem) ;
// this gives an argument exception error, but works fine with a filestream
Any obvious mistakes here?
A.