X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsound_frame.h;h=85082299e957c0c7b5aa1a721fc2543f7bb02d07;hb=ceaf7bc52712cb60708ed5eb5c62c5e463dd8e89;hp=2b78c8e1d1116ae2e4ad600c838882d919e8ecfc;hpb=8c7b705e318d888444e5156f627cdc48168d3ac7;p=libdcp.git diff --git a/src/sound_frame.h b/src/sound_frame.h index 2b78c8e1..85082299 100644 --- a/src/sound_frame.h +++ b/src/sound_frame.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of libdcp. @@ -31,20 +31,37 @@ files in the program, then also delete it here. */ + /** @file src/sound_frame.h - * @brief SoundFrame class. + * @brief SoundFrame class */ + #ifndef LIBDCP_SOUND_FRAME_H #define LIBDCP_SOUND_FRAME_H + #include "frame.h" #include + namespace dcp { -typedef Frame SoundFrame; + +class SoundFrame : public Frame +{ +public: + SoundFrame (ASDCP::PCM::MXFReader* reader, int n, std::shared_ptr c); + int channels () const; + int samples () const; + int32_t get (int channel, int sample) const; + +private: + int _channels = 0; +}; + } + #endif