Re: [cc65] tgi and joystick experiment

From: Karri Kaksonen <karri1sipo.fi>
Date: 2004-10-25 15:11:11
On Mon, 25 Oct 2004, Groepaz wrote:
> what we would need is a standard sound driver (both capable of playing
> music and sound fx) and maybe also some kind of minimalistic sprite-api.

I got some mail about a tsi-sound library also (Tiny Sound Interface).

Personally I would like to have a multilevel sound interface API where the
lowest level driver could answer to TSI-requests like:

; for digitized sound
tsi_sample(sample)

; for synthesized sound
tsi_note_on(channel, note)
tsi_note_off(channel)
tsi_volume(channel, volume)
tsi_waveform(channel, waveform) ; Choose waveform from pre-defined
settings

; for hardware understanding envelopes (attack, fade)
tsi_envelope(channel, attack, hold, fade)

The top level midi or abc-notation interface could then use the lower
level tsi-library functions.

abc_play_tune(channel, tune)
midi_play_tune(tune)

The sprite-api if hopefully compatible with the way the Lynx handles
sprites. I already used the CONTROL entry in the tgi-driver for the low
level sprite drawing like:

#define tgi_sprite(sprite) tgi_ioctl(0, sprite)

The "sprite" is a structure containing things like the position on screen.

--
Karri
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Oct 25 15:04:05 2004

This archive was generated by hypermail 2.1.8 : 2004-10-25 15:04:14 CEST