Type
SmplLoop = record
loopIdentifier: LongInt;
loopType: LongInt;
loopStart: LongInt;
loopEnd: LongInt;
loopFraction: LongInt;
loopPlayCount: LongInt;
end;
Type
SmplChunk = record
ChunkID: Array[0..3] of Char; // 'smpl'
ChunkSize: LongInt;
Manufacturer: LongInt;
Product: LongInt;
SamplePeriod: LongInt;
MIDIUnityNote: LongInt;
MIDIPitchFraction: LongInt;
SMPTEFormat: LongInt;
SMPTEOffset: LongInt;
SampleLoops: LongInt;
SamplerData: LongInt;
SampleLoop: SmplLoop;
end;
Seek(F, FileSize(F));
BlockWrite(F, WriteSmpl, SizeOf(WriteSmpl));
LoopBuffer: arry of SmallInt;
SetLength(LoopBuffer, Header.DataBytes);
LoopBuffer := 0;
BlockWrite(F, LoopBuffer, Length(LoopBuffer));
Johnny_Bit wrote:tru using SizeOf
BlockWrite(F, LoopBuffer[0], Header.DataBytes);
Users browsing this forum: No registered users and 5 guests