Dumb-ways-to-memorize
2D game
Data Structures | Macros | Enumerations
audio.h File Reference
#include "SDL_mixer.h"
+ Include dependency graph for audio.h:

Go to the source code of this file.

Data Structures

struct  sound_t
 

Macros

#define MAX_SOUNDS   100
 

Enumerations

enum  sound_mixer_group {
  SOUND_GROUP_PLAYER,
  SOUND_GROUP_OTHER_ENTS,
  SOUND_GROUP_MUSIC,
  SOUND_GROUP_OTHER = -1
}
 
enum  sound_mixer_effects {
  SOUND_EFFECT_NULL,
  SOUND_EFFECT_WALK,
  SOUND_EFFECT_ATTACK,
  SOUND_EFFECT_JUMP,
  SOUND_EFFECT_DIE
}
 

Macro Definition Documentation

#define MAX_SOUNDS   100

Definition at line 5 of file audio.h.

Enumeration Type Documentation

Defines an alias representing the enum for different sound effects

Enumerator
SOUND_EFFECT_NULL 
SOUND_EFFECT_WALK 
SOUND_EFFECT_ATTACK 
SOUND_EFFECT_JUMP 
SOUND_EFFECT_DIE 

Definition at line 17 of file audio.h.

Defines an enum for sound mixer groups

Enumerator
SOUND_GROUP_PLAYER 
SOUND_GROUP_OTHER_ENTS 
SOUND_GROUP_MUSIC 
SOUND_GROUP_OTHER 

Definition at line 8 of file audio.h.