diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-03 12:46:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-03 12:46:21 +0200 |
| commit | 6d1eb6ae5ad29299edbf22080732044a5bc84451 (patch) | |
| tree | ca31d51114845f35d62d248c12da59072a0d3bb3 /Source/Core/AudioCommon/PulseAudioStream.cpp | |
| parent | 5513d5f4f732fb1e436765ab87e7d60ba02b1ad6 (diff) | |
| parent | 004dfd1586f787f27f36c4326b9222a314295735 (diff) | |
Merge pull request #9621 from Pokechu22/cassert
Replace uses of cassert with Common/Assert.h
Diffstat (limited to 'Source/Core/AudioCommon/PulseAudioStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/PulseAudioStream.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/PulseAudioStream.cpp b/Source/Core/AudioCommon/PulseAudioStream.cpp index c6d1edba55..fc82ff6537 100644 --- a/Source/Core/AudioCommon/PulseAudioStream.cpp +++ b/Source/Core/AudioCommon/PulseAudioStream.cpp @@ -5,6 +5,8 @@ #include <cstring> #include "AudioCommon/PulseAudioStream.h" + +#include "Common/Assert.h" #include "Common/CommonTypes.h" #include "Common/Logging/Log.h" #include "Common/Thread.h" @@ -104,7 +106,7 @@ bool PulseAudio::PulseInit() } ss.channels = m_channels; ss.rate = m_mixer->GetSampleRate(); - assert(pa_sample_spec_valid(&ss)); + ASSERT(pa_sample_spec_valid(&ss)); m_pa_s = pa_stream_new(m_pa_ctx, "Playback", &ss, channel_map_p); pa_stream_set_write_callback(m_pa_s, WriteCallback, this); pa_stream_set_underflow_callback(m_pa_s, UnderflowCallback, this); |
