Skip to content

Commit bb02458

Browse files
author
Clement Champetier
committed
AudioFrame: added getChannelLayout method
1 parent 11b72e8 commit bb02458

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AvTranscoder/data/decoded/AudioFrame.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class AvExport AudioFrame : public Frame
4444

4545
size_t getSampleRate() const { return av_frame_get_sample_rate(_frame); }
4646
size_t getNbChannels() const { return av_frame_get_channels(_frame); }
47+
size_t getChannelLayout() const { return av_frame_get_channel_layout(_frame); }
4748
AVSampleFormat getSampleFormat() const { return static_cast<AVSampleFormat>(_frame->format); }
4849
size_t getNbSamplesPerChannel() const { return _frame->nb_samples; }
4950
AudioFrameDesc desc() const { return AudioFrameDesc(getSampleRate(), getNbChannels(), getSampleFormat()); }

0 commit comments

Comments
 (0)