//=========================================================================== // CLICC COMPATIBLE WAVE SOUND FILES 2005 //=========================================================================== #include #pragma hdrstop #include #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- //=========================================================================== // VARIABLES //=========================================================================== int choice; //=========================================================================== // FUNCTIONS //=========================================================================== //-------------------------------------------------------------- Play Windows void playWindows (void) { if (choice == 0) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Startup.wav", "", SND_ASYNC); if (choice == 1) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Start.wav", "", SND_ASYNC); if (choice == 2) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Shutdown.wav", "", SND_ASYNC); if (choice == 3) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Ringout.wav", "", SND_ASYNC); if (choice == 4) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Ringin.wav", "", SND_ASYNC); if (choice == 5) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Restore.wav", "", SND_ASYNC); if (choice == 6) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Recycle.wav", "", SND_ASYNC); if (choice == 7) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Print complete.wav", "", SND_ASYNC); if (choice == 8) PlaySound ("C:\\WINDOWS\\Media\\windows xp pop-up blocked.wav", "", SND_ASYNC); if (choice == 9) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Notify.wav", "", SND_ASYNC); if (choice == 10) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Minimize.wav", "", SND_ASYNC); if (choice == 11) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Menu Command.wav", "", SND_ASYNC); if (choice == 12) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Logon Sound.wav", "", SND_ASYNC); if (choice == 13) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Logoff Sound.wav", "", SND_ASYNC); if (choice == 14) PlaySound ("C:\\WINDOWS\\Media\\windows xp information bar.wav", "", SND_ASYNC); if (choice == 15) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Hardware Remove.wav", "", SND_ASYNC); if (choice == 16) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Hardware Insert.wav", "", SND_ASYNC); if (choice == 17) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Hardware Fail.wav", "", SND_ASYNC); if (choice == 18) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Exclamation.wav", "", SND_ASYNC); if (choice == 19) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Error.wav", "", SND_ASYNC); if (choice == 20) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Ding.wav", "", SND_ASYNC); if (choice == 21) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Default.wav", "", SND_ASYNC); if (choice == 22) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Critical Stop.wav", "", SND_ASYNC); if (choice == 23) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Battery Low.wav", "", SND_ASYNC); if (choice == 24) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Battery Critical.wav", "", SND_ASYNC); if (choice == 25) PlaySound ("C:\\WINDOWS\\Media\\Windows XP Balloon.wav", "", SND_ASYNC); if (choice == 26) PlaySound ("C:\\WINDOWS\\Media\\tada.wav", "", SND_ASYNC); if (choice == 27) PlaySound ("C:\\WINDOWS\\Media\\start.wav", "", SND_ASYNC); if (choice == 28) PlaySound ("C:\\WINDOWS\\Media\\ringout.wav", "", SND_ASYNC); if (choice == 29) PlaySound ("C:\\WINDOWS\\Media\\ringin.wav", "", SND_ASYNC); if (choice == 30) PlaySound ("C:\\WINDOWS\\Media\\recycle.wav", "", SND_ASYNC); if (choice == 31) PlaySound ("C:\\WINDOWS\\Media\\notify.wav", "", SND_ASYNC); if (choice == 32) PlaySound ("C:\\WINDOWS\\Media\\ding.wav", "", SND_ASYNC); if (choice == 33) PlaySound ("C:\\WINDOWS\\Media\\chord.wav", "", SND_ASYNC); if (choice == 34) PlaySound ("C:\\WINDOWS\\Media\\chimes.wav", "", SND_ASYNC); } //-------------------------------------------------------------- Play Pinball void playPinball (void) { if (choice == 0) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND1.wav", "", SND_ASYNC); if (choice == 1) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND3.wav", "", SND_ASYNC); if (choice == 2) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND4.wav", "", SND_ASYNC); if (choice == 3) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND5.wav", "", SND_ASYNC); if (choice == 4) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND6.wav", "", SND_ASYNC); if (choice == 5) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND7.wav", "", SND_ASYNC); if (choice == 6) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND8.wav", "", SND_ASYNC); if (choice == 7) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND9.wav", "", SND_ASYNC); if (choice == 8) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND12.wav", "", SND_ASYNC); if (choice == 9) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND13.wav", "", SND_ASYNC); if (choice == 10) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND14.wav", "", SND_ASYNC); if (choice == 11) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND16.wav", "", SND_ASYNC); if (choice == 12) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND17.wav", "", SND_ASYNC); if (choice == 13) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND18.wav", "", SND_ASYNC); if (choice == 14) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND19.wav", "", SND_ASYNC); if (choice == 15) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND20.wav", "", SND_ASYNC); if (choice == 16) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND21.wav", "", SND_ASYNC); if (choice == 17) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND22.wav", "", SND_ASYNC); if (choice == 18) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND24.wav", "", SND_ASYNC); if (choice == 19) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND25.wav", "", SND_ASYNC); if (choice == 20) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND26.wav", "", SND_ASYNC); if (choice == 21) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND27.wav", "", SND_ASYNC); if (choice == 22) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND28.wav", "", SND_ASYNC); if (choice == 23) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND29.wav", "", SND_ASYNC); if (choice == 24) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND30.wav", "", SND_ASYNC); if (choice == 25) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND34.wav", "", SND_ASYNC); if (choice == 26) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND35.wav", "", SND_ASYNC); if (choice == 27) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND36.wav", "", SND_ASYNC); if (choice == 28) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND38.wav", "", SND_ASYNC); if (choice == 29) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND39.wav", "", SND_ASYNC); if (choice == 30) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND42.wav", "", SND_ASYNC); if (choice == 31) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND43.wav", "", SND_ASYNC); if (choice == 32) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND45.wav", "", SND_ASYNC); if (choice == 33) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND49.wav", "", SND_ASYNC); if (choice == 34) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND49D.wav", "", SND_ASYNC); if (choice == 35) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND50.wav", "", SND_ASYNC); if (choice == 36) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND53.wav", "", SND_ASYNC); if (choice == 37) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND54.wav", "", SND_ASYNC); if (choice == 38) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND55.wav", "", SND_ASYNC); if (choice == 39) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND57.wav", "", SND_ASYNC); if (choice == 40) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND58.wav", "", SND_ASYNC); if (choice == 41) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND65.wav", "", SND_ASYNC); if (choice == 42) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND68.wav", "", SND_ASYNC); if (choice == 43) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND104.wav", "", SND_ASYNC); if (choice == 44) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND105.wav", "", SND_ASYNC); if (choice == 45) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND108.wav", "", SND_ASYNC); if (choice == 46) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND111.wav", "", SND_ASYNC); if (choice == 47) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND112.wav", "", SND_ASYNC); if (choice == 48) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND131.wav", "", SND_ASYNC); if (choice == 49) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND136.wav", "", SND_ASYNC); if (choice == 50) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND181.wav", "", SND_ASYNC); if (choice == 51) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND240.wav", "", SND_ASYNC); if (choice == 52) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND243.wav", "", SND_ASYNC); if (choice == 53) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND528.wav", "", SND_ASYNC); if (choice == 54) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND560.wav", "", SND_ASYNC); if (choice == 55) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND563.wav", "", SND_ASYNC); if (choice == 56) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND713.wav", "", SND_ASYNC); if (choice == 57) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND735.wav", "", SND_ASYNC); if (choice == 58) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND827.wav", "", SND_ASYNC); if (choice == 59) PlaySound ("C:\\Program Files\\Windows NT\\Pinball\\SOUND999.wav", "", SND_ASYNC); } //=========================================================================== // EVENT HANDLERS //=========================================================================== //---------------------------------------------------------- Windows List Box void __fastcall TForm1::ListBoxWindowsClick(TObject *Sender) { choice = ListBoxWindows->ItemIndex; Form1->EditWindows->Text = choice; playWindows(); } //---------------------------------------------------------- Pinball List Box void __fastcall TForm1::ListBoxPinballClick(TObject *Sender) { choice = ListBoxPinball->ItemIndex; Form1->EditPinball->Text = choice; playPinball(); } //---------------------------------------------------------------------- END