CID:469 PW.BAD_MACRO_REDEF
[sxemacs] / src / media / sound-arts.h
1 /* sound-arts.c - play a sound over the arts server
2
3    Copyright (C) 2006 Sebastian Freundt
4
5 This file is part of SXEmacs
6
7 SXEmacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 SXEmacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
19
20
21 /* Synched up with: Not in FSF. */
22
23 #ifndef INCLUDED_sound_arts_h_
24 #define INCLUDED_sound_arts_h_
25
26 #include "sound.h"
27 #include <artsc.h>
28
29 typedef struct sound_arts_data_s sound_arts_data_t;
30 typedef struct sound_arts_aj_data_s sound_arts_aj_data_t;
31
32 struct sound_arts_data_s {
33         int lock;
34         sxe_mutex_t mtx;
35 };
36
37 struct sound_arts_aj_data_s {
38         arts_stream_t as;
39
40         /* coercion stuff */
41         media_sample_format_t *msf;
42         int coe_ch_cnt;
43         audio_coerce_chain_t coe_chain[4];
44         mtype_audio_properties *mtap;
45         sxe_mse_volume_args *volargs;
46         sxe_mse_rerate_args *rrargs;
47
48         int framesize;
49 };
50
51 extern Lisp_Object Qarts;               /* initialised in sound.c */
52
53 #define DEVICE_CONNECTED_TO_ARTS_P(x) 1 /* FIXME: better check */
54
55 DECLARE_AUDIO_DEVICE(sound_arts);
56
57 #ifdef ALL_DEBUG_FLAGS
58 #undef ARTS_DEBUG_FLAG
59 #define ARTS_DEBUG_FLAG
60 #endif
61
62 #endif  /* INCLUDED_sound_arts_h_ */