comparison playsound/playsound.c @ 391:3bd96d2d553c

Fixed looping and other settings that were being reinitialized incorrectly.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 10 Jul 2002 21:45:39 +0000
parents 818f9af97a19
children 325af3e2cbb3
comparison
equal deleted inserted replaced
390:951574013896 391:3bd96d2d553c
839 memset((void *) &global_state, '\0', sizeof (global_state)); 839 memset((void *) &global_state, '\0', sizeof (global_state));
840 global_state.volume = 1.0; 840 global_state.volume = 1.0;
841 global_state.bytes_before_next_seek = -1; 841 global_state.bytes_before_next_seek = -1;
842 audio_buffersize = DEFAULT_AUDIOBUF; 842 audio_buffersize = DEFAULT_AUDIOBUF;
843 decode_buffersize = DEFAULT_DECODEBUF; 843 decode_buffersize = DEFAULT_DECODEBUF;
844 new_sample = 0;
844 } /* if */ 845 } /* if */
845 846
846 if (strcmp(argv[i], "--rate") == 0 && argc > i + 1) 847 if (strcmp(argv[i], "--rate") == 0 && argc > i + 1)
847 { 848 {
848 use_specific_audiofmt = 1; 849 use_specific_audiofmt = 1;