Search
lxdream.org :: lxdream/src/aica/audio.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/audio.h
changeset 463:0655796f9bb5
prev434:8af49a412d92
next465:3bd7be575792
author nkeynes
date Wed Oct 24 21:24:09 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Implement channel position readback
file annotate diff log raw
1.1 --- a/src/aica/audio.h Tue Oct 09 11:37:36 2007 +0000
1.2 +++ b/src/aica/audio.h Wed Oct 24 21:24:09 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: audio.h,v 1.8 2007-10-09 11:37:36 nkeynes Exp $
1.6 + * $Id: audio.h,v 1.9 2007-10-24 21:24:09 nkeynes Exp $
1.7 *
1.8 * Audio engine, ie the part that does the actual work.
1.9 *
1.10 @@ -35,13 +35,15 @@
1.11
1.12 #define AUDIO_FMT_16ST (AUDIO_FMT_16BIT|AUDIO_FMT_STEREO)
1.13
1.14 +typedef enum { LOOP_OFF = 0, LOOP_ON = 1, LOOP_LOOPED = 2 } loop_t;
1.15 +
1.16 typedef struct audio_channel {
1.17 gboolean active;
1.18 uint32_t posn; /* current sample #, 0 = first sample */
1.19 uint32_t posn_left;
1.20 uint32_t start;
1.21 uint32_t end;
1.22 - gboolean loop;
1.23 + loop_t loop;
1.24 uint32_t loop_start;
1.25 int vol; /* 0..255 */
1.26 int pan; /* 0 (left) .. 31 (right) */
.