00001 #ifndef SCREEN_TEST_SOUND_H 00002 #define SCREEN_TEST_SOUND_H 00003 00004 #include "Screen.h" 00005 #include "BitmapText.h" 00006 #include "RageSound.h" 00007 00008 const int nsounds = 5; 00009 00010 class ScreenTestSound : public Screen 00011 { 00012 public: 00013 ScreenTestSound( CString sName ); 00014 ~ScreenTestSound(); 00015 00016 virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); 00017 virtual void HandleScreenMessage( const ScreenMessage SM ); 00018 00019 void Update(float f); 00020 void UpdateText(int n); 00021 00022 struct Sound { 00023 RageSound s; 00024 BitmapText txt; 00025 }; 00026 Sound s[nsounds]; 00027 vector<RageSound *> m_sSoundCopies[nsounds]; 00028 BitmapText HEEEEEEEEELP; 00029 00030 int selected; 00031 }; 00032 00033 #endif 00034 00035 /* 00036 * (c) 2003 Glenn Maynard 00037 * All rights reserved. 00038 * 00039 * Permission is hereby granted, free of charge, to any person obtaining a 00040 * copy of this software and associated documentation files (the 00041 * "Software"), to deal in the Software without restriction, including 00042 * without limitation the rights to use, copy, modify, merge, publish, 00043 * distribute, and/or sell copies of the Software, and to permit persons to 00044 * whom the Software is furnished to do so, provided that the above 00045 * copyright notice(s) and this permission notice appear in all copies of 00046 * the Software and that both the above copyright notice(s) and this 00047 * permission notice appear in supporting documentation. 00048 * 00049 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00050 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00051 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00052 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00053 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00054 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00055 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00056 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00057 * PERFORMANCE OF THIS SOFTWARE. 00058 */