X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8482f24cfc00645607f8526fde38d39e0dcaa63..243d4b360385d3364e96d5600f693139e359fb3b:/contrib/src/mmedia/sndcpcm.cpp?ds=sidebyside diff --git a/contrib/src/mmedia/sndcpcm.cpp b/contrib/src/mmedia/sndcpcm.cpp index 3eddf09eb2..8142931644 100644 --- a/contrib/src/mmedia/sndcpcm.cpp +++ b/contrib/src/mmedia/sndcpcm.cpp @@ -379,11 +379,15 @@ bool wxSoundStreamPcm::SetSoundFormat(const wxSoundFormatBase& format) // We try to minimize the need of dynamic memory allocation by preallocating a buffer. But // to be sure it will be efficient we minimize the best size. if (m_multiplier_in < m_multiplier_out) { - m_prebuffer_size = (wxUint32)(m_sndio->GetBestSize() * m_multiplier_out); - m_best_size = (wxUint32)(m_sndio->GetBestSize() * m_multiplier_in); + m_prebuffer_size = (wxUint32)(m_sndio->GetBestSize() * + m_multiplier_out); + m_best_size = (wxUint32)(m_sndio->GetBestSize() * + m_multiplier_in); } else { - m_prebuffer_size = (wxUint32)(m_sndio->GetBestSize() * m_multiplier_in); - m_best_size = (wxUint32)(m_sndio->GetBestSize() * m_multiplier_out); + m_prebuffer_size = (wxUint32)(m_sndio->GetBestSize() * + m_multiplier_in); + m_best_size = (wxUint32)(m_sndio->GetBestSize() * + m_multiplier_out); } m_prebuffer = new char[m_prebuffer_size];