void Cut::freeze( const char* path ) { if ( !m_frames ) return; FileWrite freeze; freeze.open( path, N_CHANNELS, FileWrite::FILE_WAV, FileWrite::STK_SINT16 ); freeze.write( *m_frames ); freeze.close(); }
void main(void) { FileRead f("mars.pal"); FileWrite fw; f.Get((uchar *) &P.Cols,768); f.Close(); for (uint i=0;i<256;i++) { uchar t=P(i).red; P(i).red=P(i).green; P(i).green = t; } fw.Open("green.pal"); fw.Write((uchar*)&P.Cols,768); fw.Close(); }
bool Dem_Packet_FileWrite_Internal(FileWrite& demofile, DemMsg::Dem_Packet* data) { demofile.WriteCmdInfo(data->cmdInfo); demofile.WriteSequenceInfo(data->sequenceNum1, data->sequenceNum2); return demofile.IsOk(); }