Mercurial > hg > dmlib
diff jssplr.h @ 193:b778cc2fe7c8
Create a separate new frequency flag (vs. new pitch), for future changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 19:13:20 +0300 |
parents | 0e02b81b05e1 |
children | 9fa8e9326d18 |
line wrap: on
line diff
--- a/jssplr.h Sat Oct 06 19:11:49 2012 +0300 +++ b/jssplr.h Sat Oct 06 19:13:20 2012 +0300 @@ -20,15 +20,16 @@ // Channel New-Data flags -#define cdfNONE (0x00) // Set nothing -#define cdfNewInstr (0x01) // Set a new instrument -#define cdfNewPitch (0x02) // Set a new pitch -#define cdfNewPos (0x04) // Set a new position -#define cdfNewVolume (0x08) // Set a new volume -#define cdfNewPanPos (0x10) // Set a new panning position -#define cdfNewGlobalVol (0x20) // Set a new global volume -#define cdfPlay (0x40) // Start or restart playing sample -#define cdfStop (0x80) // Stop channel playing +#define cdfNONE (0x000) // Set nothing +#define cdfNewInstr (0x001) // Set a new instrument +#define cdfNewPitch (0x002) // Set a new pitch +#define cdfNewPos (0x004) // Set a new position +#define cdfNewVolume (0x008) // Set a new volume +#define cdfNewPanPos (0x010) // Set a new panning position +#define cdfNewGlobalVol (0x020) // Set a new global volume +#define cdfNewFreq (0x040) // New frequency +#define cdfPlay (0x100) // Start or restart playing sample +#define cdfStop (0x200) // Stop channel playing // Player envelope data @@ -60,6 +61,7 @@ nextInstrument, note, // Current note pitch, // Pitch (NOT actual frequency!) + freq, cfreq, oldPitch, position, // Sample position volume, // Volume