Exemple #1
0
void Play_Intro_Animation( void )
    {
     SYS_SOUNDHANDLE sample_one, sample_two, sample_three;
     sb_mod_file *my_mod;


     my_mod = sb_load_mod_file( "anything.mod" );


     sample_one   = SYS_LoadSound( "wav_data/computer/intro1.wav" );
     sample_two   = SYS_LoadSound( "wav_data/computer/intro2.wav" );
     sample_three = SYS_LoadSound( "wav_data/computer/intro3.wav" );

     if( sample_one == NULL || sample_two == NULL || sample_three == NULL )
         {
          fprintf(stderr, "Bad wav in intro \n");
          exit_gracefully();
         }

     if( game_configuration.sound_on )
         {
          sb_mod_play(my_mod);
          Play_Voice( sample_one );
         }

     sprintf(load_string, "%c:/fli/house.fli", cdrom_drive_letter );
     Play_Fli_Buffered(load_string);

     if( game_configuration.sound_on )
         while( !Is_Voice_Done() );

     sprintf(load_string, "%c:/fli/logo.fli", cdrom_drive_letter );

     if( game_configuration.sound_on )
         Play_Voice( sample_two );

     Play_Fli_Buffered(load_string);

     if( game_configuration.sound_on )
         while( !Is_Voice_Done() );

     if( game_configuration.sound_on )
         {
          Play_Voice( sample_three );
          while( !Is_Voice_Done() );
         }

     if( game_configuration.sound_on )
         sb_mod_pause();

     sb_free_sample( sample_one );
     sb_free_sample( sample_two );
     sb_free_sample( sample_three );
     sb_free_mod_file( my_mod );

    } /* End of Play_Intro_Animation() */
Exemple #2
0
void Play_Cut_Ten( void )
    {
     SYS_SOUNDHANDLE sample_one;

     sample_one   = SYS_LoadSound( "wav_data/computer/narr10.wav" );

     if( sample_one == NULL )
         {
          fprintf(stderr, "Bad wav in cut one \n");
          exit_gracefully();
         }

     if( game_configuration.sound_on )
         Play_Voice( sample_one );

     sprintf(load_string, "%c:/fli/ten.fli", cdrom_drive_letter );
     Play_Fli_Buffered(load_string);

     if( game_configuration.sound_on )
         while( !Is_Voice_Done() );

     sb_free_sample( sample_one );


    } /* End of Play_Cut_Ten() */
Exemple #3
0
// play teacher voice (only the first character)
extern "C" G_MODULE_EXPORT gboolean on_teacher_press (GtkWidget *widget, GdkEvent *event, gpointer user_data) {
	Play_Voice("teacher");
	return TRUE;
}