Skip to content

Commit

Permalink
Fix clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Jan 3, 2025
1 parent 6610bfd commit 1ea53b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/audio/sdl/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ struct engine::Impl {
spec.freq = frequency;
spec.channels = 2;
spec.format = SDL_AUDIO_F32;
if (device =
SDL_OpenAudioDeviceStream(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &spec, &callback, this);
device == 0) {
if (device = SDL_OpenAudioDeviceStream(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, &spec,
&callback, this);
!device) {
throw std::runtime_error(SDL_GetError());
}

internal::debug("Initialized audio: {} channels, {} Hz, {} samples",
static_cast<int>(spec.channels), spec.freq, spec.freq);
internal::debug("Initialized audio: {} channels, {} Hz, {} samples", spec.channels,
spec.freq, spec.freq);

SDL_ResumeAudioStreamDevice(device);
}
Expand Down

0 comments on commit 1ea53b0

Please sign in to comment.