uli / basicengine-firmware

BASIC Engine Firmware
78 stars 16 forks source link

RAW SOUND command #4

Open darkhog opened 6 years ago

darkhog commented 6 years ago

It would be used to push audio data directly into the audio buffer. It would require an array containing sound values and sample rate. All sounds would be 8bit. Obviously, due to memory constraints, this would need to be used sparingly, but it could provide that extra "oomph" when you need it.

uli commented 6 years ago

That sounds like a solid idea, something like "SOUND sample$, rate". Probably also want something like "ON SOUND CALL ..." for callbacks to refill the sample buffer.