Files
plib/demos/ttt3d/src/sound.h
T

57 lines
1.5 KiB
C++

/*
This file is part of TTT3D - Steve's 3D TicTacToe Player.
Copyright (C) 2001 Steve Baker
TTT3D is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
TTT3D is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with TTT3D; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For further information visit http://plib.sourceforge.net
$Id: sound.h 1427 2002-08-18 00:09:46Z ude $
*/
#define SOUND_AHOOGA 0
#define SOUND_CLAP 1
#define SOUND_FROG 2
#define SOUND_GLASBK 3
#define SOUND_POP 4
#define SOUND_UGH 5
#define SOUND_WHO_ELSE 6
class SoundSystem
{
char current_track [ 256 ] ;
slScheduler *sched ;
public:
SoundSystem () ;
void update () ;
void playSfx ( int sound ) ;
void setSafetyMargin ( float t = 0.25 )
{
sched -> setSafetyMargin ( t ) ;
}
void change_track ( const char *fname ) ;
void disable_music () ;
void enable_music () ;
void disable_sfx () ;
void enable_sfx () ;
} ;