Fix comment in example code.
[libdcp.git] / src / sound_mxf_writer.h
1 /*
2     Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #include "mxf_writer.h"
21 #include "types.h"
22 #include <boost/shared_ptr.hpp>
23 #include <boost/filesystem.hpp>
24
25 namespace dcp {
26
27 class SoundFrame;
28 class SoundMXF;
29
30 class SoundMXFWriter : public MXFWriter
31 {
32 public:
33         void write (float const * const *, int);
34         void finalize ();
35
36 private:
37         friend class SoundMXF;
38
39         SoundMXFWriter (SoundMXF *, boost::filesystem::path, Standard standard);
40
41         void write_current_frame ();
42
43         /* do this with an opaque pointer so we don't have to include
44            ASDCP headers
45         */
46            
47         struct ASDCPState;
48         boost::shared_ptr<ASDCPState> _state;
49
50         SoundMXF* _sound_mxf;
51         int _frame_buffer_offset;
52 };
53
54 }
55