void S_MusicShutdown(void) { S_StopMusic(); if (MUSIC_Shutdown() != MUSIC_Ok) initprintf("%s\n", MUSIC_ErrorString(MUSIC_ErrorCode)); }
char *MUSIC_ErrorString ( int ErrorNumber ) { char *ErrorString; switch( ErrorNumber ) { case MUSIC_Warning : case MUSIC_Error : ErrorString = MUSIC_ErrorString( MUSIC_ErrorCode ); break; case MUSIC_Ok : ErrorString = "Music ok."; break; case MUSIC_ASSVersion : ErrorString = "Apogee Sound System Version " "Programmed by Jim Dose\n" "(c) Copyright 1996 James R. Dose. All Rights Reserved.\n"; break; case MUSIC_SoundCardError : break; case MUSIC_MPU401Error : ErrorString = "Could not detect MPU-401."; break; case MUSIC_InvalidCard : ErrorString = "Invalid Music device."; break; case MUSIC_MidiError : ErrorString = "Error playing MIDI file."; break; case MUSIC_TaskManError : ErrorString = "TaskMan error."; break; case MUSIC_DPMI_Error : ErrorString = "DPMI Error in MUSIC."; break; default : ErrorString = "Unknown Music error code."; break; } return( ErrorString ); }
void MusicShutdown( void ) { int32 status; // if they chose None lets return if ((MusicDevice == NumSoundCards) || (eightytwofifty && numplayers > 1) ) return; status = MUSIC_Shutdown(); if ( status != MUSIC_Ok ) { Error( MUSIC_ErrorString( MUSIC_ErrorCode )); } }
void MusicShutdown( void ) { int32 status; // if they chose None lets return if (MusicDevice < 0) return; stopmusic(); status = MUSIC_Shutdown(); if ( status != MUSIC_Ok ) { Error( MUSIC_ErrorString( MUSIC_ErrorCode )); } }
void MusicShutdown(void) { int32_t status; // if they chose None lets return if (MusicDevice < 0) return; if (!MusicInitialized) return; StopSong(); status = MUSIC_Shutdown(); if (status != MUSIC_Ok) { buildprintf("Music error: %s\n",MUSIC_ErrorString(MUSIC_ErrorCode)); } }
const char *MUSIC_ErrorString ( int ErrorNumber ) { const char *ErrorString; switch( ErrorNumber ) { case MUSIC_Warning : case MUSIC_Error : ErrorString = MUSIC_ErrorString( MUSIC_ErrorCode ); break; case MUSIC_Ok : ErrorString = "Music ok."; break; case MUSIC_DriverError : ErrorString = SoundDriver_MIDI_ErrorString(SoundDriver_MIDI_GetError()); break; case MUSIC_InvalidCard : ErrorString = "Invalid Music device."; break; case MUSIC_MidiError : ErrorString = "Error playing MIDI file."; break; default : ErrorString = "Unknown Music error code."; break; } return( ErrorString ); }
void MusicStartup(void) { int32_t status; int devicetype; // if they chose None lets return if (MusicDevice < 0) { gs.MusicOn = FALSE; return; } else if (MusicDevice == 0) { devicetype = ASS_AutoDetect; } else { devicetype = MusicDevice - 1; } status = MUSIC_Init(devicetype, 0); if (status == MUSIC_Ok) { MusicInitialized = TRUE; MUSIC_SetVolume(gs.MusicVolume); } else { buildprintf("Music error: %s\n",MUSIC_ErrorString(MUSIC_ErrorCode)); gs.MusicOn = FALSE; } if (MusicInitialized) loadtmb(); }
char *MUSIC_ErrorString ( int ErrorNumber ) { char *ErrorString; switch( ErrorNumber ) { case MUSIC_Warning : case MUSIC_Error : ErrorString = MUSIC_ErrorString( MUSIC_ErrorCode ); break; case MUSIC_Ok : ErrorString = "Music ok."; break; case MUSIC_ASSVersion : ErrorString = "Apogee Sound System Version " ASS_VERSION_STRING " " "Programmed by Jim Dose\n" "(c) Copyright 1996 James R. Dose. All Rights Reserved.\n"; break; case MUSIC_SoundCardError : switch( MUSIC_SoundDevice ) { case SoundBlaster : case WaveBlaster : ErrorString = BLASTER_ErrorString( BLASTER_Error ); break; case ProAudioSpectrum : case SoundMan16 : ErrorString = PAS_ErrorString( PAS_Error ); break; case Adlib : ErrorString = "Adlib error."; break; case GenMidi : case SoundCanvas : ErrorString = "Could not detect MPU-401."; break; case SoundScape : ErrorString = SOUNDSCAPE_ErrorString( SOUNDSCAPE_Error ); break; case Awe32 : ErrorString = AWE32_ErrorString( AWE32_Error ); break; case UltraSound : ErrorString = GUS_ErrorString( GUS_Error ); break; default : ErrorString = MUSIC_ErrorString( MUSIC_InvalidCard ); break; } break; case MUSIC_MPU401Error : ErrorString = "Could not detect MPU-401."; break; case MUSIC_InvalidCard : ErrorString = "Invalid Music device."; break; case MUSIC_MidiError : ErrorString = "Error playing MIDI file."; break; case MUSIC_TaskManError : ErrorString = "TaskMan error."; break; case MUSIC_FMNotDetected : ErrorString = "Could not detect FM chip."; break; case MUSIC_DPMI_Error : ErrorString = "DPMI Error in MUSIC."; break; default : ErrorString = "Unknown Music error code."; break; } return( ErrorString ); }