[ scummvm-Bugs-1153648 ] MP3 compressed *.BUN MacOS X

SourceForge.net noreply at sourceforge.net
Mon Feb 28 18:33:00 CET 2005


Bugs item #1153648, was opened at 2005-02-28 18:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1153648&group_id=37116

Category: SFX/Talkie
Group: Monkey Island 3
Status: Open
Resolution: None
Priority: 5
Submitted By: Pierre Denouel (pdenouel)
Assigned to: Nobody/Anonymous (nobody)
Summary: MP3 compressed *.BUN MacOS X

Initial Comment:
SYMPTOM:

 When using mp3 compressed .BUN file (compressed with
compress_scumm_bun) there is noise instead of music &
voices 

REASON:

 There is an endianness problem in mp3.cpp for MacOS X
version of ScummVM during the scaling of the samples in
the function MP3InputStream::readBuffer

SOLUTION EXAMPLE (MAC OS X only):

*buffer = (int16) scale_sample (frame);
*buffer = (*buffer >> 8) & 0xFF |  (*buffer << 8) & 0xFF00;
*buffer++;



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1153648&group_id=37116




More information about the Scummvm-tracker mailing list