sound :-(

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
sound :-(
by on (#13140)
Im really very ungry, the interface with sound with directsound in my emulator is a s**t.
All that i know about Digital Sound Processing is nothing and all i did in my life was to put a 555 with and a resistor and a 8 ohm speaker to generate tones with the potenciometer.
I just want to tell that even i dont understand whats going on on the APU (althought is well emulated), the only thing i know about sampling is that i have a 22050 dsound buffer and i divide it by 1789772.5 / 22050 = 81~.. and i take the output of the DAC (that i dont know how it works too) and ^ 0x80 it and i fill the next byte in my "NES" buffer when passed a frame (367~ samples) then it goes to the dsound one.

Anyway all i wanna do is a NES emulator so i asked my self how to improve thing in the emu.. so i got these answers:

1) Use the blargg's lib of APU (wich i really dont understand how it works well) and interface it with dsound.

2) Take a formal course about sound and DSP (wich is not a good idea in this country, cos nobody will give it to me)

3) Sit the a*s down in the chair and start studying electronics by myself and the read the Blargg's recomended book about DSP.

But... we can say im cought in the middle..

1) i dont want to use a alrady made library (i want to do the sound by myself).

2) Formal course where i live?

3) This would be the best choice but it takes a lot of time.

anyway..

what would you recommend me to do?

by on (#13145)
Bores Intro to Digital Signal Processing isn't boring.

by on (#13151)
Try my Blip_Buffer library. The demos show the waveform on screen and play it live, making it great for learning about synthesis. It lets you work at the level of the waveform, rather than samples.

http://www.slack.net/~ant/libs/audio.html#Blip_Buffer
I know your feeling...
by on (#13733)
I wrote my own NES, GB/GBC emulators all by myself easily.
But they don't have any sound until now. :(
My knowledge about sound is limited. :(
I'm learning.