diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-03-01 21:05:21 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-03-01 21:05:21 +0000 |
| commit | 528e3f81143401577a5a101e8d868ac431969f5b (patch) | |
| tree | 77eb18a65f2e102520bb2573e3c737249855c70a /src/sound_frame.h | |
| parent | 495555716e98a02b571a5dbc3200ef4ce928272c (diff) | |
Add simple sample-access API to SoundFrame.
Diffstat (limited to 'src/sound_frame.h')
| -rw-r--r-- | src/sound_frame.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/sound_frame.h b/src/sound_frame.h index 2b78c8e1..e58e4bf3 100644 --- a/src/sound_frame.h +++ b/src/sound_frame.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -43,7 +43,16 @@ namespace dcp { -typedef Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer> SoundFrame; +class SoundFrame : public Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer> +{ +public: + SoundFrame (ASDCP::PCM::MXFReader* reader, int n, boost::shared_ptr<const DecryptionContext> c); + int samples () const; + int32_t get (int channel, int sample) const; + +private: + int _channels; +}; } |
