pcm/Export: eliminate the AudioFormat parameter from GetFrameSize()
This commit is contained in:
@@ -674,7 +674,7 @@ AlsaOutput::Open(AudioFormat &audio_format)
|
||||
#ifndef NDEBUG
|
||||
in_frame_size = audio_format.GetFrameSize();
|
||||
#endif
|
||||
out_frame_size = pcm_export->GetFrameSize(audio_format);
|
||||
out_frame_size = pcm_export->GetFrameSize();
|
||||
|
||||
drain = false;
|
||||
|
||||
|
||||
@@ -856,7 +856,7 @@ OSXOutput::Open(AudioFormat &audio_format)
|
||||
if (dop_enabled) {
|
||||
pcm_export->Open(audio_format.format, audio_format.channels, params);
|
||||
ring_buffer_size = std::max<size_t>(buffer_frame_size,
|
||||
MPD_OSX_BUFFER_TIME_MS * pcm_export->GetFrameSize(audio_format) * asbd.mSampleRate / 1000);
|
||||
MPD_OSX_BUFFER_TIME_MS * pcm_export->GetFrameSize() * asbd.mSampleRate / 1000);
|
||||
}
|
||||
#endif
|
||||
ring_buffer = new boost::lockfree::spsc_queue<uint8_t>(ring_buffer_size);
|
||||
|
||||
Reference in New Issue
Block a user