Cleanup
This commit is contained in:
parent
acbf11931b
commit
efacf637db
|
@ -45,6 +45,30 @@
|
||||||
#define AUDIO_MIXER_MAX_VOICES 8
|
#define AUDIO_MIXER_MAX_VOICES 8
|
||||||
#define AUDIO_MIXER_TEMP_OGG_BUFFER 8192
|
#define AUDIO_MIXER_TEMP_OGG_BUFFER 8192
|
||||||
|
|
||||||
|
struct audio_mixer_sound
|
||||||
|
{
|
||||||
|
enum audio_mixer_type type;
|
||||||
|
|
||||||
|
union
|
||||||
|
{
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
/* wav */
|
||||||
|
unsigned frames;
|
||||||
|
const float* pcm;
|
||||||
|
} wav;
|
||||||
|
|
||||||
|
#ifdef HAVE_STB_VORBIS
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
/* ogg */
|
||||||
|
unsigned size;
|
||||||
|
const void* data;
|
||||||
|
} ogg;
|
||||||
|
#endif
|
||||||
|
} types;
|
||||||
|
};
|
||||||
|
|
||||||
struct audio_mixer_voice
|
struct audio_mixer_voice
|
||||||
{
|
{
|
||||||
bool repeat;
|
bool repeat;
|
||||||
|
|
|
@ -43,30 +43,6 @@ enum audio_mixer_type
|
||||||
AUDIO_MIXER_TYPE_OGG
|
AUDIO_MIXER_TYPE_OGG
|
||||||
};
|
};
|
||||||
|
|
||||||
struct audio_mixer_sound
|
|
||||||
{
|
|
||||||
enum audio_mixer_type type;
|
|
||||||
|
|
||||||
union
|
|
||||||
{
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
/* wav */
|
|
||||||
unsigned frames;
|
|
||||||
const float* pcm;
|
|
||||||
} wav;
|
|
||||||
|
|
||||||
#ifdef HAVE_STB_VORBIS
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
/* ogg */
|
|
||||||
unsigned size;
|
|
||||||
const void* data;
|
|
||||||
} ogg;
|
|
||||||
#endif
|
|
||||||
} types;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct audio_mixer_sound audio_mixer_sound_t;
|
typedef struct audio_mixer_sound audio_mixer_sound_t;
|
||||||
typedef struct audio_mixer_voice audio_mixer_voice_t;
|
typedef struct audio_mixer_voice audio_mixer_voice_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue