1 /**
2  * MltAudio.h - MLT Wrapper
3  * Copyright (C) 2020 Meltytech, LLC
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19 
20 #ifndef MLTPP_AUDIO_H
21 #define MLTPP_AUDIO_H
22 
23 #include "MltConfig.h"
24 
25 #include <framework/mlt.h>
26 
27 namespace Mlt
28 {
29 	class MLTPP_DECLSPEC Audio
30 	{
31 		private:
32 			mlt_audio instance;
33 		public:
34 			Audio();
35 			Audio( mlt_audio audio );
36 			virtual ~Audio( );
37 			void* data();
38 			void set_data( void* data );
39 			int frequency();
40 			void set_frequency( int frequency );
41 			mlt_audio_format format();
42 			void set_format( mlt_audio_format format );
43 			int samples();
44 			void set_samples( int samples );
45 			int channels();
46 			void set_channels( int channels );
47 			mlt_channel_layout layout();
48 			void set_layout( mlt_channel_layout layout );
49 	};
50 }
51 
52 #endif
53