Commit e7b47ce3 authored by Max Kellermann's avatar Max Kellermann

output/alsa: in_frame_size is a debug-only variable

parent ab05b704
...@@ -90,10 +90,12 @@ class AlsaOutput final ...@@ -90,10 +90,12 @@ class AlsaOutput final
/** the libasound PCM device handle */ /** the libasound PCM device handle */
snd_pcm_t *pcm; snd_pcm_t *pcm;
#ifndef NDEBUG
/** /**
* The size of one audio frame passed to method play(). * The size of one audio frame passed to method play().
*/ */
size_t in_frame_size; size_t in_frame_size;
#endif
/** /**
* The size of one audio frame passed to libasound. * The size of one audio frame passed to libasound.
...@@ -1044,7 +1046,9 @@ AlsaOutput::Open(AudioFormat &audio_format) ...@@ -1044,7 +1046,9 @@ AlsaOutput::Open(AudioFormat &audio_format)
audio_format.channels, audio_format.channels,
params); params);
#ifndef NDEBUG
in_frame_size = audio_format.GetFrameSize(); in_frame_size = audio_format.GetFrameSize();
#endif
out_frame_size = pcm_export->GetFrameSize(audio_format); out_frame_size = pcm_export->GetFrameSize(audio_format);
drain = false; drain = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment