src/audio/SDL_audio.c
changeset 1561 c724c4a99759
parent 1532 30f189cdd82b
child 1562 1d487a3fab41
equal deleted inserted replaced
1560:34b9e479047e 1561:c724c4a99759
   171 		stream_len = audio->convert.len;
   171 		stream_len = audio->convert.len;
   172 	} else {
   172 	} else {
   173 		silence = audio->spec.silence;
   173 		silence = audio->spec.silence;
   174 		stream_len = audio->spec.size;
   174 		stream_len = audio->spec.size;
   175 	}
   175 	}
   176 	stream = audio->fake_stream;
   176 
       
   177 	stream = audio->GetAudioBuf(audio);
       
   178 	if ( stream == NULL ) {
       
   179 		stream = audio->fake_stream;
       
   180 	}
   177 
   181 
   178 #if SDL_AUDIO_DRIVER_AHI
   182 #if SDL_AUDIO_DRIVER_AHI
   179 	SDL_mutexV(audio->mixer_lock);
   183 	SDL_mutexV(audio->mixer_lock);
   180 	D(bug("Entering audio loop...\n"));
   184 	D(bug("Entering audio loop...\n"));
   181 #endif
   185 #endif