From 7fb0b41b6e319d835de5d5fadb27cd29bafe56ca Mon Sep 17 00:00:00 2001 From: taw27 Date: Mon, 30 Jun 2008 12:47:23 +0000 Subject: Decode and convert Vorbis files in a separate thread git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@122 84d2e878-0bd5-11dd-ad15-13eda11d74c5 --- src/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index d398899..b43015a 100644 --- a/src/types.h +++ b/src/types.h @@ -151,6 +151,7 @@ typedef struct { int dpos; int dlen; int inuse; + int playing; int repeat; float volume; } sounds[AUDIO_MAX_SOUNDS]; @@ -162,6 +163,13 @@ typedef struct { } AudioContext; +typedef struct { + AudioContext *audiocontext; + char *filename; + float volume; + int repeat; +} AudioDispatchData; + typedef struct { int rx; int ry; -- cgit v1.2.3