mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Fix bad names in the PCM sound header. Audio now works well :)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user