mirror of
https://github.com/jorio/Pomme.git
synced 2024-06-10 06:29:31 +00:00
Fix mp3 playback on big-endian targets
This commit is contained in:
parent
084842445d
commit
6e4ea042ba
|
@ -64,8 +64,13 @@ SndListHandle Pomme::Sound::LoadMP3AsResource(std::istream& stream)
|
|||
}
|
||||
|
||||
Pomme::Sound::SampledSoundInfo info = {};
|
||||
info.compressionType = 'swot';
|
||||
#if __BIG_ENDIAN__
|
||||
info.compressionType = 'twos';
|
||||
info.bigEndian = true;
|
||||
#else
|
||||
info.compressionType = 'sowt';
|
||||
info.bigEndian = false;
|
||||
#endif
|
||||
info.isCompressed = false;
|
||||
info.baseNote = 60; // Middle C
|
||||
info.codecBitDepth = 8 * sizeof(mp3d_sample_t);
|
||||
|
|
Loading…
Reference in New Issue
Block a user