C Sound Libraries

Since we do not have native C compilers on the Oric, this forum will be mostly be used by people using CC65 or the OSDK. But any general C related post will be welcome !
Post Reply
User avatar
barnsey123
Flight Lieutenant
Posts: 379
Joined: Fri Mar 18, 2011 10:04 am
Location: Birmingham

C Sound Libraries

Post by barnsey123 » Fri Apr 29, 2011 4:06 pm

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.

User avatar
Dbug
Site Admin
Posts: 2303
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Fri Apr 29, 2011 6:03 pm

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...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest