projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20020428-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
sound.h
diff --git
a/src/libgame/sound.h
b/src/libgame/sound.h
index 63cab3365dd65ca1eaa5337f028f867036dc1416..146623433f4c2a997e19ee20c99e3be41a3236a4 100644
(file)
--- a/
src/libgame/sound.h
+++ b/
src/libgame/sound.h
@@
-55,6
+55,11
@@
#define AUDIO_MONO_CHANNEL 1
#define AUDIO_STEREO_CHANNELS 2
#define AUDIO_MONO_CHANNEL 1
#define AUDIO_STEREO_CHANNELS 2
+#define AUDIO_FORMAT_U8 (1 << 0)
+#define AUDIO_FORMAT_S16 (1 << 1)
+#define AUDIO_FORMAT_LE (1 << 2)
+#define AUDIO_FORMAT_BE (1 << 3)
+
#if defined(TARGET_SDL)
/* one second fading interval == 1000 ticks (milliseconds) */
#define SOUND_FADING_INTERVAL 1000
#if defined(TARGET_SDL)
/* one second fading interval == 1000 ticks (milliseconds) */
#define SOUND_FADING_INTERVAL 1000
@@
-179,6
+184,14
@@
struct SoundHeader_8SVX
};
#endif
};
#endif
+struct AudioFormatInfo
+{
+ boolean stereo; /* availability of stereo sound */
+ int format; /* size and endianess of sample data */
+ int sample_rate; /* sample frequency */
+ int fragment_size; /* audio device fragment size in bytes */
+};
+
struct SampleInfo
{
int type;
struct SampleInfo
{
int type;
@@
-186,6
+199,7
@@
struct SampleInfo
long data_len;
void *data_ptr;
long data_len;
void *data_ptr;
+ int format;
};
typedef struct SampleInfo SoundInfo;
};
typedef struct SampleInfo SoundInfo;
@@
-211,6
+225,7
@@
struct SoundControl
long data_len;
void *data_ptr;
long data_len;
void *data_ptr;
+ int format;
#if defined(PLATFORM_MSDOS)
int voice;
#if defined(PLATFORM_MSDOS)
int voice;