hello,
I just started with waveaudio package,
and succeeded in making a recording.
For simple task like recording and playback,
I find the manual quit complex.
So I couldn't find a simple solution (without understanding the complete manual) for my second problem: playing (and displaying) a small part of the recorded signal. I know the start and end times in milliseconds, but then ...
// load the audio file
WaveStorage.Wave.LoadFromFile('D:\Data_TO_exe\aap.wav');
// get the audio length in msec
Nsamp := WaveStorage.Wave.Length ;
// make a copy so we can use a different part later
WaveStorage_part.WaveStream[0].CopyFrom(WaveStorage.WaveStream[0],0);
// delete the end of the audio, that we don't need
// Nsamp is too large but it looks it's accepted
WaveStorage_part.Wave.Delete(5000,Nsamp);
// delete the beginning
WaveStorage_part.Wave.Delete(0,3000);
// so now we have the part to be played and displayed
StockAudioPlayer1.PlayStream ( WaveStorage_part.WaveStream[0] ) ;
I sthis the correct way of doing it, or are there better / simpler ways ?
What's the difference between
Wavestream[0]
and
Wave
they seem to do the same ??
thanks,
Stef Mientki