diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-12 20:52:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-12 20:52:15 +0100 |
| commit | 916247147468aee47354ebb3088f47b8a56fcccf (patch) | |
| tree | 90fb72f6312a8935bf61ec5affaf82f7bb8b88f6 /src/sound_frame.h | |
| parent | bc09fbc79580f56c93e35de25230af18b30e0e1e (diff) | |
Don't crash with no audio; get video MXF information from the MXF itself; get sampling rate from audio MXF.for-dcptovideo
Diffstat (limited to 'src/sound_frame.h')
| -rw-r--r-- | src/sound_frame.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/sound_frame.h b/src/sound_frame.h new file mode 100644 index 00000000..83846fc8 --- /dev/null +++ b/src/sound_frame.h @@ -0,0 +1,44 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include <string> +#include <stdint.h> + +namespace ASDCP { + namespace PCM { + class FrameBuffer; + } +} + +namespace libdcp { + +class SoundFrame +{ +public: + SoundFrame (std::string mxf_path, int n); + ~SoundFrame (); + + uint8_t const * data () const; + int size () const; + +private: + ASDCP::PCM::FrameBuffer* _buffer; +}; + +} |
