When I call getSamples on say a wave file that is ALAW encoded, does it give me raw audio data or is it compressed data?
Also, is there anyway to have it do sample rate and perhaps bit rate conversion as I read it out? This would be a good derivation if not. Say:
class CRawAudio : public AudioFile
{
public:
CRawAudio(... desired format ...);
...
... getSamples ...
};
Where getSamples is overloaded to do sample rate conversion, bit rate conversion and even if mono or stereo was required that it would convert from mono to stereo and vice versa (of course mono->stereo would just be the same data in both channels)
Thanks,
Davy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am planning to add audio conversion later on for the convenience of normal audio devices. However, my primary use for ccaudio is in feeding audio frames to dsp devices which already have conversion capability.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I call getSamples on say a wave file that is ALAW encoded, does it give me raw audio data or is it compressed data?
Also, is there anyway to have it do sample rate and perhaps bit rate conversion as I read it out? This would be a good derivation if not. Say:
class CRawAudio : public AudioFile
{
public:
CRawAudio(... desired format ...);
...
... getSamples ...
};
Where getSamples is overloaded to do sample rate conversion, bit rate conversion and even if mono or stereo was required that it would convert from mono to stereo and vice versa (of course mono->stereo would just be the same data in both channels)
Thanks,
Davy
I am planning to add audio conversion later on for the convenience of normal audio devices. However, my primary use for ccaudio is in feeding audio frames to dsp devices which already have conversion capability.