babbleberry / rpi4-osdev

Tutorial: Writing a "bare metal" operating system for Raspberry Pi 4
https://www.rpi4os.com
Creative Commons Zero v1.0 Universal
3.43k stars 255 forks source link

Part 9 - Sound 16 bit audio #54

Open Preciseful opened 2 weeks ago

Preciseful commented 2 weeks ago

Hey, I've tried messing around with the code (the CPU sound more specifically), in order to get my audio running at signed 16 bit. I tried changing all values that I found to be relevant, and tried some other stuff. Is it possible even? And if it is, how would I go on about doing it?

babbleberry commented 1 week ago

Hi,

I must confess that I haven't looked at this. Perhaps you could share your code with comments and I'll be happy to point out anything I think might be causing the problem?

Thanks, Adam

Preciseful commented 1 week ago

The code is the same as the file in this repository. What I was asking if there's any way to make the audio run at 16 bit, than the usual 8 bit. What values would I have to change? Using ffmpeg and making the 16 bit audio to 8 bit works just fine, but the quality is not as good as I'd want it to be.

babbleberry commented 1 week ago

Oh? I thought you said you'd "messed around" with the code? Just changing the bit resolution in the file won't be enough...

Preciseful commented 1 week ago

I did mess around but it wasn't anything more than like.. some slight different values that I eventually reverted because it did not work. I also had no clue what I was doing