Initialize replayer data. Only call this on start-up.
Stop/Restart music playback.
Stop/Restart music playback.
| void TriloSCC_FadeOut( |
| ) |
Fade out the music. Once the sound is silence the replayer is paused.
| speed u8 | Fade speed (1 - 255) |
| void TriloSCC_SetBalanceSCC( |
| ) |
Set the main volume for the SCC chip. This enables for setting the balance between SCC and PSG as some MSX models default balance differs.
| vol u8 | Master volume (0-7) 0=halve volume, 8=full volume. |
| void TriloSCC_SetBalancePSG( |
| ) |
Set the main volume for the PSG chip. This enables for setting the balance between SCC and PSG as some MSX models default balance differs.
| vol u8 | Master volume (0-7) 0=halve volume, 8=full volume. |
| inline void TriloSCC_SetFrequency( |
| ) |
Set playback frequency.
| freq u8 | Can be TRILO_50HZ (0) or TRILO_60HZ (not 0). |
| void TriloSCC_LoadMusic( |
| ) |
Initialize a music for playback.
| addr const void* | Address of the music data |
| inline void TriloSCC_SetToneTable( |
| ) |
Set a custom tone table.
| addr const void* | Address of the tone table |
Set mixer values to silent.
Decode music data and process instruments and effects.
Output the data to the CHIP registers.
Initialise the sfx player. Sets initial priorities, volume balancce and initial SCC waveform. Note : TriloTracker SFX replayer is ayFX bank format but use 2 bank entry for each Trilo SFX. The first one describe the PSG part of the SFX and the second one the SCC part of the SFX.
| inline void TriloSFX_SetBank( |
| ) |
Set the current SFX bank data
| bank const void* | Address of the ayFX bank data |
| wave const void* | Address of the bank wave table |
Get the number of SFX in the bank.
Number of SFX in the bank. Note: TriloTracker SFX replayer use 2 bank entry for each SFX so return size is half the ayFX bank size.
| void TriloSFX_SetBalanceSCC( |
| ) |
Set the main SFX volume for the SCC chip.
| vol u8 | Master volume (0-15) 0=silenced, 15=full volume. |
| void TriloSFX_SetBalancePSG( |
| ) |
Set the main SFXvolume for the PSG chip.
| vol u8 | Master volume (0-15) 0=silenced, 15=full volume. |
| void TriloSFX_Play( |
| ) |
Start a new SFX.
| sfx u8 | SFX index in the bank. |
| prio u8 | Sound priority (0 is lowest, 255 is highest). |
Decode SFX streams.