mATkEUpON posted on Aug 18 2004 at 12:16 PM said:
Well, thanks mr.spiv !!!!
mr.mirko, I don't really get the difference between a much lower access to the
memory bus, and increasing the speed...
Anyways, I was setting the flag to 0xFF2 as stated on mr.spiv's website, and the 0xFFA should leave the cache on but just disable the writeback (to get the clearer sound I think). What is the best setting ???
> What is the best setting ???
It depends on how mutch you use the bus, try both ...
>mr.mirko, I don't really get the difference between a much lower access to the
memory bus, and increasing the speed...
once again, youre disabling the cache on the sound DMA buffer, or any other buffer, with fast memory acces, to get a clean sound, and not to speed up something. Disabling cache on a memory region, will slow down the access. And why do we do this? Couse the design of the gp32 soundhardware ( no real soundchip ), needs this.
There is no A-B-C cook book for a work around on the gp32 soundbug.
I found out, that this helped me, developing the modplayer:
- disable write back cache on main sound loop buffer, and all sound related buffers.
- fill the soundbuffer with soundbuffer[x] = *buffer++;
- dont use malloc/free with newlib, the garbage collection will result in sound crap...
- If you still suffer from soundbug, compile memory expensive part with -O0
- try using a high memory region for the main sampleloop, ( near framebuffer )
Sound on gp32 is a real hell, it took me 3 Month developing a clean modplayer, i had to
rewrite all memory access in source...