This is some code cut from my emulator, it is not complete
but it may help quide you.
I just made the length of the samples 32 no particular reason,yes you can change the volume!
Do you want a noise channel also?
I can make retro tones (square wave or I can code to make sin wave)
but it may help quide you.
I just made the length of the samples 32 no particular reason,yes you can change the volume!
Do you want a noise channel also?
I can make retro tones (square wave or I can code to make sin wave)