/* (5th of may 2007) */ /* testSkizzo() */ /* Rip_Skizzo() */ /* Depack_Skizzo() */ #include "globals.h" #include "extern.h" short testSkizzo ( void ) { /* test #1 */ PW_Start_Address = PW_i-24; if ((PW_i + 38) > PW_in_size) { /*printf ("[1] PW_Start_Address : %ld\n", PW_Start_Address);*/ return BAD; } PW_j = in_data[PW_Start_Address+22]; /* nbr of samples */ if ((PW_j > 31) || (PW_j==0)) { /*printf ("[2] (nbr of samples:%ld) PW_Start_Address : %ld\n", PW_j,PW_Start_Address);*/ return BAD; } return GOOD; } void Rip_Skizzo ( void ) { /* PW_j is the nbr of samples */ /* get nbr of stored patts */ PW_k = in_data[PW_Start_Address+23]; /* get size of patlist */ PW_m = in_data[PW_Start_Address+20] & 0x7f; PW_WholeSampleSize = 0; for ( PW_l=0 ; PW_l