Skip to content

Commit 98ad888

Browse files
author
Clement Champetier
committed
AudioReader: added channelIndex parameter in constructors
1 parent 793b0ae commit 98ad888

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/AvTranscoder/reader/AudioReader.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
namespace avtranscoder
1010
{
1111

12-
AudioReader::AudioReader( const std::string& filename, const size_t audioStreamIndex )
13-
: IReader( filename, audioStreamIndex )
12+
AudioReader::AudioReader( const std::string& filename, const size_t streamIndex, const int channelIndex )
13+
: IReader( filename, streamIndex, channelIndex )
1414
, _audioStreamProperties(NULL)
1515
, _outputSampleRate( 0 )
1616
, _outputNbChannels( 0 )
@@ -19,8 +19,8 @@ AudioReader::AudioReader( const std::string& filename, const size_t audioStreamI
1919
init();
2020
}
2121

22-
AudioReader::AudioReader( InputFile& inputFile, const size_t audioStreamIndex )
23-
: IReader( inputFile, audioStreamIndex )
22+
AudioReader::AudioReader( InputFile& inputFile, const size_t streamIndex, const int channelIndex )
23+
: IReader( inputFile, streamIndex, channelIndex )
2424
, _audioStreamProperties(NULL)
2525
, _outputSampleRate( 0 )
2626
, _outputNbChannels( 0 )

src/AvTranscoder/reader/AudioReader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class AvExport AudioReader : public IReader
1515
//@{
1616
// @note Transform the input stream to s16 sample format (to listen).
1717
// @see updateOutput
18-
AudioReader( const std::string& filename, const size_t audioStreamIndex = 0 );
19-
AudioReader( InputFile& inputFile, const size_t audioStreamIndex = 0 );
18+
AudioReader( const std::string& filename, const size_t streamIndex = 0, const int channelIndex = -1 );
19+
AudioReader( InputFile& inputFile, const size_t streamIndex = 0, const int channelIndex = -1 );
2020
//@}
2121

2222
~AudioReader();

0 commit comments

Comments
 (0)