ÕÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͸ ³ SAMPLE.H & FUNSOUND! ³ ÔÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ; So you want to play samples but don't know how? Well, here comes a solution to your problems. Marq of Fit and Yzi present sample playing routines for C and Pascal! OK, it's not too difficult to code sample playing routines but if you don't have any good books and so on... This packet should include: General.DOC - General nonsense C_ver.DOC - Document for C version Sample.H - Header file for C version CT-voice.H - Header file for C CT-voice version Funsound.PAS - Routines for Pascal version Example.C - Example how to use routines in C Ps.PAS - The same for Pascal Sample.SMP - An example 8 kHz sample Composed by Yzi If someone wants to use some other samples than the normal PC 8-bit unpacked ones the following tips may be useful: -Amiga samples can be converted to PC samples by adding 128 to each sample byte. -VOC-files have a header of 32 bytes and there's also a null-byte at the end of the file. In some cases VOCs may be full of control bytes (=garbage). 4-bit VOCs cannot be played (Use CT-voice.h). -WAVs are somewhat normal 8-bit unpacked samples. (Get yourself a sample editor, for example DigiPlayer...) This whole packet is PD! That means we don't want your money (Don't even try!). So, use it and copy it but don't blame us if something unexpected happens (We are no insurance company!). If you copy this packet to someone make sure that nothing is changed. -= Marq/Fit & YZI =-