WavEnd := High(Wavbuffer) div 2;
begin
WavAdd := High(Wavbuffer);
setlength(TempWavbuffer, WavAdd+WavEnd);
// copy the whole main buffer into temp buffer
for i := Low(TempWavbuffer) to WavAdd do
begin
TempWavbuffer[i] := Wavbuffer[i];
end;
// append 50% of main buffer at end
for i := Low(TempWavbuffer) to WavEnd do
begin
TempWavbuffer[WavAdd+i] := Wavbuffer[WavEnd+i];
end;
end
Header.DataBytes := Header.DataBytes + Header.DataBytes div 2;
Kambiz wrote:Windows has a set of APIs for manipulating RIFF files (name of these functions start with mmIO). Why you don't use these functions?
Users browsing this forum: No registered users and 4 guests