* Fix bad names in the PCM sound header. Audio now works well :)

This commit is contained in:
iProgramInCpp
2023-07-31 15:15:20 +03:00
parent a9e1c09bbe
commit ea16d96a4c
2 changed files with 4 additions and 11 deletions

View File

@@ -12,8 +12,8 @@
struct PCMSoundHeader
{
int m_id;
int m_channels;
int m_bytes_per_sample;
int m_sample_rate;
int m_length;
};
@@ -31,6 +31,6 @@ struct SoundDesc
m_pHeader = &header;
m_header = header;
m_pData = data;
field_4 = header.m_id * header.m_length * header.m_channels;
field_4 = header.m_channels * header.m_length * header.m_bytes_per_sample;
}
};