Skip to content

Commit

Permalink
update SDL_AUDIO_DEVICE_DEFAULT_* to the new names
Browse files Browse the repository at this point in the history
  • Loading branch information
captain0xff authored Jun 15, 2024
1 parent c579446 commit 1d3ea8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/voipchat.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ static void run_voipchat(int argc, char **argv)

SDL_Log("CLIENT: Server is at %s:%d.", SDLNet_GetAddressString(server_addr), (int) server_port);

audio_device = SDL_OpenAudioDevice(SDL_AUDIO_DEVICE_DEFAULT_OUTPUT, &audio_spec);
audio_device = SDL_OpenAudioDevice(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &audio_spec);
if (!audio_device) {
SDL_Log("CLIENT: Failed to open output audio device (%s), going on without sound playback!", SDL_GetError());
}

capture_device = SDL_OpenAudioDevice(SDL_AUDIO_DEVICE_DEFAULT_CAPTURE, &audio_spec);
capture_device = SDL_OpenAudioDevice(SDL_AUDIO_DEVICE_DEFAULT_RECORDING, &audio_spec);
if (!capture_device) {
SDL_Log("CLIENT: Failed to open capture audio device (%s), going on without sound recording!", SDL_GetError());
} else {
Expand Down

0 comments on commit 1d3ea8b

Please sign in to comment.