back | Last regenerated: 2022-04-20 17:31:36 kio |
#target TZX0x18: CSW recording block#tzx CSW, [FILE=]"audio.wav", [COMPRESSED], [PAUSE=pause], [SAMPLE-RATE=value], [CHANNELS=1|2], [MONO], [STEREO], [SAMPLE-FORMAT=s1|u1|s2|u2|s2x|u2x], [HEADER=bytes], [START=frame], [Pseudo instructions: end, .end This block inserts audio data reduced to 1 bit into the .tzx file. The data is RLE-encoded as a so-called 'compressed square wave' and optionally further compressed with Z-compression. Currently wav files and raw audio files are supported: COMPRESSED: Additionally compress the block using Z-compression. PAUSE: Length of the gap of silence after this block in ms. Assembler directives: #if, #elif, #else, #endif Raw audio settingsDecoding raw audio files requires some informations: SAMPLE-RATE: Sample rate of the audio data in samples per second. (STEREO: frames per second.) CHANNELS: Number of (interleaved) audio channels: 1 or 2. MONO is a short-hand for 1 channel and STEREO is a short-hand for 2 channels. SAMPLE-FORMAT: The sample format defines 3 aspects of each sample: HEADER: optional: size of a file header. The header will be skipped before extracting audio data or measuring the file positions for START, Pseudo instructions: end, .end Limit the range to encodeAssembler directives: #if, #elif, #else, #endif A FRAME is a Pseudo instructions: defl, set and '=' NoteThe CSW block does not define the starting pulse level, therefore a CSW block might be replayed inverted. To correct this problem zasm always stores a 0x2B set signal level block before the CSW block. |