ibeam column select tweaks, fix title alpha fader value popup, title bar border color...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / audiompeg.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef AUDIOMPEG_H
23 #define AUDIOMPEG_H
24
25
26 #include "audiodevice.h"
27 #include "devicempeginput.inc"
28 #include "audiompeg.inc"
29 #include "vdevicempeg.inc"
30
31
32
33 // This reads audio from the DVB input and output uncompressed audio only.
34 // Used for the LiveAudio plugin and previewing.
35
36
37
38
39 class AudioMPEG : public AudioLowLevel
40 {
41 public:
42         AudioMPEG(AudioDevice *device);
43         ~AudioMPEG();
44
45         friend class VDeviceMPEG;
46         virtual DeviceMPEGInput *get_mpeg_input() = 0;
47
48         int open_input();
49         int close_all();
50         int write_buffer(char *buffer, int size);
51         int read_buffer(char *buffer, int size);
52         int64_t device_position();
53         int flush_device();
54         int interrupt_playback();
55         double device_timestamp();
56         int start_toc(const char *path, const char *toc_path);
57         int start_record(int fd, int bsz);
58         int stop_record();
59         int total_audio_channels();
60         DeviceMPEGInput *mpeg_device() { return mpeg_input; }
61
62         int audio_open;
63         DeviceMPEGInput *mpeg_input;
64 };
65
66
67
68
69
70
71
72 #endif