SDL 8-bit audio support

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
spongebob
Posts: 3
Joined: Wed Jul 13, 2005 10:09 pm

SDL 8-bit audio support

Post by spongebob »

I'm currently porting Stella 1.4.2, and the only remaining problem I have is with the sound output. From what I can gather, Stella outputs an unsigned 8-bit audio stream, but when the emulator is run it sounds incorrect (like the stream is played back at 16-bit resolution).

Does anyone know if the PSP port of SDL has full support for 8-bit audio formats?

Cheers
ector
Posts: 195
Joined: Thu May 12, 2005 10:22 pm

Post by ector »

Why not just add a simple loop to upconvert 8bit audio to 16-bit? You should have processing power to spare..
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

From my understanding of SDL audio, the SDL audio driver is supposed to automatically convert 8-bit to 16-bit (at least it looks like that's what it's supposed to be doing). I can take another look at it.
Post Reply