File: sound_sdl.h

package info (click to toggle)
gltron 0.61-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,948 kB
  • ctags: 1,175
  • sloc: ansic: 7,580; perl: 168; makefile: 149; sh: 15
file content (37 lines) | stat: -rw-r--r-- 605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SOUND_H
#define SOUND_H

#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>

int initSound();
void shutdownSound();

void loadSound(char *name);
void playSound();
void stopSound();
void deleteSound();
void soundIdle();

void setMusicVolume(float volume);
void setFxVolume(float volume);

void playGameFX(int fx, float volume);
void playMenuFX(int fx);

void playEngine();
void stopEngine();

enum game_fx { fx_engine=0, fx_crash, fx_start, fx_win, fx_lose };

enum { 
  SOUND_ENGINE = 0,
  SOUND_CRASH,
  SOUND_START,
  SOUND_WIN,
  SOUND_LOSE
};

enum menu_fx { fx_action=0, fx_highlight };

#endif