Skip to content

Commit

Permalink
Make kHz a static variable of AudioFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFelix committed Oct 13, 2017
1 parent ed1ac96 commit 7bf1cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/AudioFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

namespace QtAV {

const qint64 kHz = 1000000LL;

typedef struct {
AVSampleFormat avfmt;
AudioFormat::SampleFormat fmt;
Expand Down
3 changes: 3 additions & 0 deletions src/QtAV/AudioFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class Q_AV_EXPORT AudioFormat
ChannelLayout_Stereo,
ChannelLayout_Unsupported //ok. now it's not complete
};

static const qint64 kHz = 1000000LL;

//typedef qint64 ChannelLayout; //currently use latest FFmpeg's
// TODO: constexpr
friend int RawSampleSize(SampleFormat fmt) { return fmt & ((1<<(kSize+1)) - 1); }
Expand Down

0 comments on commit 7bf1cbb

Please sign in to comment.