VOGONS

Common searches


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

I'd like to get some source code that drives the audio chips,
something that can control the amplitude, frequency and other low level stuff.
Or any good books that I can grab from the public library?
Thanks
Jack

Reply 1 of 5, by Stojke

User metadata
Rank l33t
Rank
l33t

Depends on what do you want to do and with what.
I think what would mostly be interesting is an example of a certain chip and some background info on sound programming from somebody who tried quite a bit of this.
There are a lot of different types of chips and different types of sound generation.

Note | LLSID | "Big boobs are important!"

Reply 2 of 5, by bristlehog

User metadata
Rank Oldbie
Rank
Oldbie

I don't know any books, but of all multitude of DOS sound libraries some have their source code now available over the internet.

These are ones I know of:

AIL 2.0 (Audio Interface Library)
AIL/32 (Audio Interface Library for protected mode)
Allegro
BWSB (Bells, Whistles and Sound Boards)
DSIK (Digital Sound Interface Kit)
HMQ (Housemarque Sound System)
SEAL (Synthetic Audio Library)
STK (Diamondware Sound ToolKit)
STMIK (Scream Tracker Music Interface Kit)

Hardware comparisons and game system requirements: https://technical.city

Reply 3 of 5, by Auzner

User metadata
Rank Member
Rank
Member

You want the source code for drivers essentially? Look to linux. Or read through some datasheets of the parts to get an idea of how to talk to the chip. http://en.wikipedia.org/wiki/Chiptune#Technology
http://www.classiccmp.org/cini/pdf/Commodore/ds_6581.pdf
http://www.oplx.com/opl3/docs/ymf262.pdf
An easier learning approach might to get Parallax Propeller. It is designed mainly for education, but it is decently powerful, and there are several audio synth projects out there with source code: forums.parallax.com/showthread.php/1182 ... -the-OBEX)
Free online digital signal processing book: http://www.dspguide.com/pdfbook.htm

Reply 4 of 5, by obobskivich

User metadata
Rank l33t
Rank
l33t
Stojke wrote:

Depends on what do you want to do and with what.
I think what would mostly be interesting is an example of a certain chip and some background info on sound programming from somebody who tried quite a bit of this.
There are a lot of different types of chips and different types of sound generation.

Agreed. I'm not entirely clear on what you intend to do here - on one hand I'm remembering my Apple II and a few programs that friends had made that would get it to "play" various little musical clips (like the Star Wars or Star Trek themes) as a series of beeps from the system speaker. Those weren't terribly complicated to put together, just very very tedious (and could be turned into very annoying programs if they were locked into an infinite loop).

On the other hand, I'm thinking you may be wanting to address something like a modern audio DSP (like a Creative Labs Audigy for the sake of example), but it sounds like you want to create music or sound effects - not write your own driver (which is really all addressing the chip "directly" would do - also keep in mind that writing third-party drivers can be a legal gray area, because it may or may not involve reverse engineering the OEM drivers (which usually violates their EULA)). In general you don't need direct hardware access to create music or sound effects - just an audio editing program (or suite of programs) and the time and willingness to learn and experiment until you get what you want. Something like FL Studio or Acid would let you do quite a lot of "making music" without a lot of external controllers or instruments (it won't sound exactly like if you were recording an acoustic instrument though). Alternately, like bristlehog suggested, you may find what you want going towards a sound library.

Controlling amplitude is easily handled through the device's drivers, I'm not sure what you mean by "frequency and other low level stuff" though.

Reply 5 of 5, by Auzner

User metadata
Rank Member
Rank
Member
lucky7456969 wrote:
I'd like to get some source code that drives the audio chips, something that can control the amplitude, frequency and other low […]
Show full quote

I'd like to get some source code that drives the audio chips,
something that can control the amplitude, frequency and other low level stuff.
Or any good books that I can grab from the public library?
Thanks
Jack

Your post history is really entertaining.