Added sound effect for grass magic tool.

Sound effects are now in stereo.
This commit is contained in:
William Kendrick 2006-02-20 09:54:51 +00:00
parent e404adb2e6
commit c544d42145
8 changed files with 123 additions and 66 deletions

View file

@ -1,13 +1,20 @@
#ifndef PLAYSOUND_H
#define PLAYSOUND_H
#include "SDL.h"
#include "SDL_mixer.h"
#include "sounds.h"
#define SNDPOS_LEFT -997
#define SNDPOS_CENTER -998
#define SNDPOS_RIGHT -999
#define SNDDIST_NEAR -999
extern Mix_Chunk * sounds[NUM_SOUNDS];
extern int mute, use_sound;
void playsound(int chan, int s, int override);
void playsound(SDL_Surface * screen, int chan, int s, int override, int x, int y);
#endif