fix for g++

This commit is contained in:
kanjitalk755 2021-02-16 15:11:49 +09:00
parent 4cf65a3faf
commit e75d2ca5d6
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ static int play_startup(void *arg) {
Uint8 *wav_buffer;
Uint32 wav_length;
if (SDL_LoadWAV("startup.wav", &wav_spec, &wav_buffer, &wav_length)) {
SDL_AudioSpec desired = { .freq = 44100, .format = AUDIO_S16, .channels = 1, .samples= 4096 }, obtained;
SDL_AudioSpec desired = { .freq = 44100, .format = AUDIO_S16, .channels = 1 }, obtained;
SDL_AudioDeviceID deviceId = SDL_OpenAudioDevice(NULL, 0, &desired, &obtained, 0);
if (deviceId) {
SDL_QueueAudio(deviceId, wav_buffer, wav_length);