Added a test for MUIA_Listview_SelectChange.
[AROS.git] / arch / m68k-amiga / devs / audio / audio_intern.h
blob52db9e1b780687ccf6622098a561e5342b164139
1 #ifndef AUDIO_DEVICE_H
2 #define AUDIO_DEVICE_H
4 #include <exec/types.h>
5 #include <exec/devices.h>
6 #include <exec/interrupts.h>
7 #include <devices/audio.h>
9 #define NR_CH 4
10 #define CH_MASK ((1 << NR_CH) - 1)
12 struct AudioInterrupt
14 struct Interrupt audint;
15 UWORD ch;
16 struct AudioBase *ab;
19 struct AudioBase
21 struct Device td_device;
22 struct AudioInterrupt audint[NR_CH];
23 UWORD *zerosample;
24 WORD key[NR_CH];
25 BYTE pri[NR_CH];
26 WORD keygen;
27 struct MinList writelist[NR_CH];
28 struct MinList misclist;
29 UWORD cycles[NR_CH];
30 UWORD initialcyclemask;
31 UWORD initialdmamask;
32 UWORD stopmask;
35 extern void audiohw_init(struct AudioBase *ab);
36 extern void audiohw_reset(struct AudioBase *ab, UWORD mask);
37 extern void audiohw_start(struct AudioBase *ab, UWORD mask);
38 extern void audiohw_stop(struct AudioBase *ab, UWORD mask);
39 extern void audiohw_prepareptlen(struct AudioBase *ab, struct IOAudio *io, UBYTE ch);
40 extern void audiohw_preparepervol(struct AudioBase *ab, struct IOAudio *io, UBYTE ch);
42 extern struct IOAudio *getnextwrite(struct AudioBase *ab, UBYTE ch, BOOL second);
45 #endif