Re: [AD] Speed wav loader way up |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Attached is a patch (against Trent's latest copy) that loads wav data via a single unconditional fread. On a big endian system, the bytes are then swapped. It also removes the read16/32 wrappers. Trent's patch doesn't work because a) the BIG_ENDIAN is missing an underscore and b) it uses void arithmetic. I've tested the patch on OS X 10.4 PPC against 8-bit and 16-bit samples. If there are no objections, I will commit it. -- Matthew Leverton On Wed, Apr 14, 2010 at 10:01 AM, Trent Gamblin <trent@xxxxxxxxxx> wrote: > On Tue, April 13, 2010 9:58 pm, Peter Wang said: >> Are you able to test it on a big endian processor? > > No. > > Trent :{)> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > -- > https://lists.sourceforge.net/lists/listinfo/alleg-developers >
Attachment:
wav.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |