Has anyone got any sound libraries for use in C programs? I'm looking for various sound effects to supplement/replace the ROM routines.
In particular, anything metallic (clash of swords, hammer on anvil? etc)
Any advice would be welcome.
C Sound Libraries
- barnsey123
- Flight Lieutenant
- Posts: 379
- Joined: Fri Mar 18, 2011 10:04 am
- Location: Birmingham
You can try to use the following function:
void w8912(unsigned char reg,unsigned char value);
It's very low level, but with that you have access to all the registers of the sound-chip.
Alternatively, if you have some free memory, and if you can afford to not do anything while a sound is playing, then possibly you could just replay sample sounds, either using 8 bits or 4 bit samples.
As usual, it's a size/cost/quality trade-off
Imo, if you have few kilobytes free, sample sounds could be cool, because with that you can even have voices, growls, laughs, etc...
void w8912(unsigned char reg,unsigned char value);
It's very low level, but with that you have access to all the registers of the sound-chip.
Alternatively, if you have some free memory, and if you can afford to not do anything while a sound is playing, then possibly you could just replay sample sounds, either using 8 bits or 4 bit samples.
As usual, it's a size/cost/quality trade-off

Imo, if you have few kilobytes free, sample sounds could be cool, because with that you can even have voices, growls, laughs, etc...
Who is online
Users browsing this forum: No registered users and 2 guests