LiveAudio and codecs
First of all, thank you for waveaudio components.
Can you point me few steps to use correctlly windows installed ACM codecs between LiveAudioRecorder/Player and UDP. I plan to use GSM610 for example.
Just to test, I put one audioredirector and liveaudioplayer on a form, set both to NON_PCM and write on both OnFormat event :
Application activates both components in OnCreate event.
When starts, rise EWaveAudioSysError with 'Specific format is not supported...' and after few secconds I can hear what I just live insert on mic input, but no processed at all, like pure PCM.
Sorry for english, is not native.
Thanks in advance,
Can you point me few steps to use correctlly windows installed ACM codecs between LiveAudioRecorder/Player and UDP. I plan to use GSM610 for example.
Just to test, I put one audioredirector and liveaudioplayer on a form, set both to NON_PCM and write on both OnFormat event :
- Code: Select all
procedure TForm1.playFormat(Sender: TObject;
out pWaveFormat: PWaveFormatEx; var FreeIt: Boolean);
begin
GetMem(pWaveFormat, SizeOf(TWaveFormatEx)); // allocate memory
FreeIt := True; // let the component release the allocated memory
pWaveFormat^.wFormatTag :=49; // GSM structure
pWaveFormat^.nChannels :=1;
pWaveFormat^.nSamplesPerSec :=8000;
pWaveFormat^.nAvgBytesPerSec :=1625;
pWaveFormat^.nBlockAlign := 65;
pWaveFormat^.wBitsPerSample:=0;
pWaveFormat^.cbSize :=2;
end;
Application activates both components in OnCreate event.
When starts, rise EWaveAudioSysError with 'Specific format is not supported...' and after few secconds I can hear what I just live insert on mic input, but no processed at all, like pure PCM.
Sorry for english, is not native.
Thanks in advance,