Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Recording and playing ADPCM, ALAW... (Read 2082 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Recording and playing ADPCM, ALAW...

Hello,

I've written a program that records from microphone to a file using Wave API in C++ in small buffers one by one using one of standard Windows ACM CODECs(ADPCM, IMAADPCM, GSM610). The problem is that for playback of recorded files I have to specify a buffer size that is equal (or a multiplication of original size) to the one I'd used during recording, otherwise I hear just a noise instead of voice.

May be there is some dependancy between buffer sizes in recording and playback because of encoding algorithm, or may be there is some bug in my program.

P.S.: there is no such problem with standard PCM format, ALAW and MULAW.