mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 09:48:30 +12:00
fix encoding error present since the repo was opened
This commit is contained in:
parent
da9c3c84e8
commit
2223860829
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ XAudio27API::XAudio27API(uint32 device_id, uint32 samplerate, uint32 channels, u
|
||||||
m_wfx.Format.nChannels = channels;
|
m_wfx.Format.nChannels = channels;
|
||||||
m_wfx.Format.nSamplesPerSec = samplerate;
|
m_wfx.Format.nSamplesPerSec = samplerate;
|
||||||
m_wfx.Format.wBitsPerSample = bits_per_sample;
|
m_wfx.Format.wBitsPerSample = bits_per_sample;
|
||||||
m_wfx.Format.nBlockAlign = (m_wfx.Format.nChannels * m_wfx.Format.wBitsPerSample) / 8; // must equal (nChannels <EFBFBD> wBitsPerSample) / 8
|
m_wfx.Format.nBlockAlign = (m_wfx.Format.nChannels * m_wfx.Format.wBitsPerSample) / 8; // must equal (nChannels × wBitsPerSample) / 8
|
||||||
m_wfx.Format.nAvgBytesPerSec = m_wfx.Format.nSamplesPerSec * m_wfx.Format.nBlockAlign; // must equal nSamplesPerSec <EFBFBD> nBlockAlign.
|
m_wfx.Format.nAvgBytesPerSec = m_wfx.Format.nSamplesPerSec * m_wfx.Format.nBlockAlign; // must equal nSamplesPerSec × nBlockAlign.
|
||||||
m_wfx.Format.cbSize = sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX);
|
m_wfx.Format.cbSize = sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX);
|
||||||
|
|
||||||
m_wfx.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
|
m_wfx.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue