Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

GameSoundManager.h

Go to the documentation of this file.
00001 /* GameSoundManager - High-level sound utilities. */ 00002 00003 #ifndef RAGE_SOUNDS_H 00004 #define RAGE_SOUNDS_H 00005 00006 #include "PlayerNumber.h" 00007 00008 class TimingData; 00009 class RageSound; 00010 struct RageSoundParams; 00011 class GameSoundManager 00012 { 00013 public: 00014 GameSoundManager(); 00015 ~GameSoundManager(); 00016 void Update( float fDeltaTime ); 00017 00018 void PlayMusic( const CString &file, bool force_loop = false, float start_sec = 0, float length_sec = -1, float fade_len = 0, bool align_beat = true ) { PlayMusic( file, "", force_loop, start_sec, length_sec, fade_len, align_beat ); } 00019 void PlayMusic( const CString &file, const CString &timing_file, bool force_loop = false, float start_sec = 0, float length_sec = -1, float fade_len = 0, bool align_beat = true ); 00020 void PlayMusic( const CString &file, TimingData *pTiming, bool force_loop = false, float start_sec = 0, float length_sec = -1, float fade_len = 0, bool align_beat = true ); 00021 void StopMusic() { PlayMusic(""); } 00022 CString GetMusicPath() const; 00023 void Flush(); 00024 00025 void PlayOnce( CString sPath ); 00026 void PlayOnceFromDir( CString sDir ); 00027 void PlayOnceFromAnnouncer( CString sFolderName ); 00028 00029 float GetPlayLatency() const; 00030 void HandleSongTimer( bool on=true ); 00031 float GetFrameTimingAdjustment( float fDeltaTime ); 00032 00033 static void SetPlayerBalance( PlayerNumber pn, RageSoundParams &params ); 00034 }; 00035 00036 extern GameSoundManager *SOUND; 00037 #endif 00038 00039 /* 00040 * Copyright (c) 2003-2004 Glenn Maynard 00041 * All rights reserved. 00042 * 00043 * Permission is hereby granted, free of charge, to any person obtaining a 00044 * copy of this software and associated documentation files (the 00045 * "Software"), to deal in the Software without restriction, including 00046 * without limitation the rights to use, copy, modify, merge, publish, 00047 * distribute, and/or sell copies of the Software, and to permit persons to 00048 * whom the Software is furnished to do so, provided that the above 00049 * copyright notice(s) and this permission notice appear in all copies of 00050 * the Software and that both the above copyright notice(s) and this 00051 * permission notice appear in supporting documentation. 00052 * 00053 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00054 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00055 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00056 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00057 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00058 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00059 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00060 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00061 * PERFORMANCE OF THIS SOFTWARE. 00062 */ 00063

Generated on Thu Jan 27 20:57:21 2005 for StepMania by doxygen 1.3.7