4 #include <exec/types.h>
5 #include <exec/devices.h>
6 #include <exec/interrupts.h>
7 #include <devices/audio.h>
10 #define CH_MASK ((1 << NR_CH) - 1)
14 struct Interrupt audint
;
21 struct Device td_device
;
22 struct AudioInterrupt audint
[NR_CH
];
27 struct MinList writelist
[NR_CH
];
28 struct MinList misclist
;
30 UWORD initialcyclemask
;
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
);