All pastes #10183 Raw Edit

Miscellany

public cpp v1 · immutable
#10183 ·published 2005-04-24 09:43 UTC
rendered paste body
    // Get sample info        for(int i=0;i<31;i++)    {            char temp[2];            moduleFile.read( sample[i].sampleName, 22 );                        moduleFile.read( temp, 2 );//          sample[i].sampleLength = (atoi(temp[0]) << 1) + atoi(temp[1]);            sample[i].sampleLength = temp[1]; //(temp[0] << 8); temp[1];            moduleFile.read( temp, 1 );  // Padding            moduleFile.read( temp, 1 );  // Padding            moduleFile.read( temp, 2 );  // Padding            moduleFile.read( temp, 2 );  // Padding            //            moduleFile.read( sample[i].loop_start, 2);//            moduleFile.read( sample[i].loop_lenght, 2);            sample[i].sampleName[22]=0; // Null terminate            cout << "Sample Name: " << sample[i].sampleName << endl;            cout << "Sample Length: " << sample[i].sampleLength << endl;    }