Author: dim.raftdim.raft
Date: May 12, 2008 00:11
I have an existing C++ program which plays wav files using windows API
waveOutWrite() functions. The wave file samples are read using direct
file I/O (fopen, fread). The PCM samples are processed in the program
before being sent to the sound card for playback.
So:
PCM wav file -> read PCM samples -> process samples -> send to sound
card.
The program works fine, and supports skipping in time and other
playback controls, which are implemented by manipulating the file
pointer.
I need to change this program to support MP3 files. Preferably it
should support any compressed audio for which there is a codec
installed on the system. So I need to read the file (MP3 or other
format) in small chunks, convert them to PCM samples, process them and
then output the samples to the sound card using waveOutWrite() as per
the existing program. Also the new mechanism should still support
uncompressed wav files.
|