14 :
IReader(filename, streamIndex, channelIndex)
15 , _audioStreamProperties(NULL)
16 , _outputSampleRate(0)
17 , _outputNbChannels(0)
18 , _outputSampleFormat(AV_SAMPLE_FMT_S16)
24 :
IReader(inputFile, streamIndex, channelIndex)
25 , _audioStreamProperties(NULL)
26 , _outputSampleRate(0)
27 , _outputNbChannels(0)
28 , _outputSampleFormat(AV_SAMPLE_FMT_S16)
Based class to read a stream.
AVSampleFormat _outputSampleFormat
const avtranscoder::StreamProperties & getStreamPropertiesWithIndex(const size_t streamIndex) const
AudioReader(const std::string &filename, const size_t streamIndex=0, const int channelIndex=-1)
virtual void setupDecoder(const ProfileLoader::Profile &profile=ProfileLoader::Profile())
Setup the decoder.
const AudioProperties * _audioStreamProperties
Properties of the source audio stream read (no ownership, has link)
AudioFrameDesc getAudioFrameDesc() const
Description to create an audio frame. This corresponds to the number of samples, which corresponds to...
This class describes decoded audio data.
void updateOutput(const size_t sampleRate, const size_t nbChannels, const std::string &sampleFormat)
Update sample rate, number of channels and sample format of the output.
const StreamProperties * _streamProperties
AVSampleFormat getAVSampleFormat(const std::string &sampleFormat)
Get the corresponding AVSampleFormat from the sample format name.
IDecoder * _currentDecoder
Link to _inputDecoder or _generator.
Implementation of IProgress, to manage cases when we need an IProgress but don't care of a progress b...