WonderSwan Total Sound Driver |
Top |
liberally file | Specification |
---|---|
WTD_SRAM.LIB | DGROUP = S-RAM( Address 0x10000 to 0x1FFFF), WTD can use MIDI. And user application can not use serial port. |
WTDHSRAM.LIB | DGROUP = S-RAM( Address 0x10000 to 0x1FFFF), WTD can not use MIDI. And user application can use serial port. |
WTD_IRAM.LIB | DGROUP = I-RAM( Address 0x00000 to 0x0FFFF), WTD can use MIDI. And user application can not use serial port. |
WTDHIRAM.LIB | DGROUP = I-RAM( Address 0x00000 to 0x0FFFF), WTD can not use MIDI. And user application can use serial port. |
File name | Specification |
---|---|
WTD.FX | This is In-directliberally for the Wonder Witch Application. WTD can use MIDI. And user application can not use serial port. |
WTD_H.FX | This is In-directliberally for the Wonder Witch Application. WTD can not use MIDI. And user application can use serial port. |
Liberally Function | |
---|---|
void WTD_FunctionLoad(&Wtd_Function); | Load of the function struct. (This fanction is liberally version only.) If you want to use the liberally version, you must call this function. |
In-direct liberally functions & WTD controlling functions | |
---|---|
int wtdIL.Stay(); | Open and setup the WTD. |
int wtdIL.StayOut(); | Close and shutdown the WTD. |
void wtdIL.Init(); | Initialize the WTD |
char wtdIL.MusicPlay(char far *Music); | Play the music. |
void wtdIL.MusicStop(); | Stop the music. |
char wtdIL.EffectPlay(char far *Effect) | Play the effect. |
void wtdIL.EffectStop(); | Stop the effect. |
void wtdIL.PcmPlay(char far *PCM); | Play the PCM voice. |
void wtdIL.PcmStop(); | Stop the PCM voice. |
char wtdIL.PcmVoiceSet(char no,char far *wave); | Set the voice. |
char wtdIL.SoftEmbSet(char no,char far *emb); | Set the envelope |
char far *wtdIL.ChangeFar(void far *add); | Convert the far address of the i8086. |
void wtdIL.SoundSetChannel(int mode); | Direct device access.(Do not use.) |
int wtdIL.SoundGetChannel(); | Direct device access.(Do not use.) |
void wtdIL.SoundSetOutput(int mode); | Direct device access.(Do not use.) |
int wtdIL.SoundGetOutput(int mode); | Direct device access.(Do not use.) |
int wtdIL.SoundGetRandom(); | Get Rundom |
void wtdIL.SetPlayMode(int mode); | Direct device access.(Do not use.) |
int wtdIL.GetPlayMode(); | Direct device access.(Do not use.) |
void wtdIL.SetMusicVolume(char volume); | Set the volume of the music. |
int wtdIL.GetMusicVolume(); | Get the volume of the music. |
void wtdIL.SetEffectVolume(char volume); | Set the volume of the effect. |
int wtdIL.GetEffectVolume(); | Get the volume of the effect. |
void wtdIL.SetPcmVolume(char volume); | Set the volume of the PCM voice. |
int wtdIL.GetPcmVolume(); | Get the volume of the PCM voice. |
void wtdIL.SetFIFO(int size,char far *FIFO); | Set the FIFO buffer of the serial communication of the MIDI. |
Address | Area |
---|---|
0x0000 to 0x00FF | Work area for user. |
0x0100 to 0x01FF | Voice table for the PCM of the WonderSwan. |
0x0200 to 0x037F | Envelope table for the expression, pitch bend and panpot. |
0x0380 to 0x03FF | Common structure. |
0x0400 to 0x05FF | Individual structure for the effect. |
0x0600 to 0x0FFF | Individual structure for the music. |