Page 1 of 1

Wav files

Posted: Thu Jun 10, 2021 9:50 am
by jimhawkins2
I cannot get playing from Wav files to work. According to the documentation, this should be OK:

procedure TfrmMain.btn_audiofileClick(Sender: TObject);
begin
// Microphone has SourceType rvsstWav
if opendialog1.Execute then
begin
rvmicrophone1.WavFileName:= opendialog1.FileName;
rvmicrophone1.active := true;
end;
end;

I tried this by adding a button to the Conference demo. None of the audio events fire, and the file does not play. Is some other step needed?

Re: Wav files

Posted: Fri Jun 11, 2021 3:10 pm
by Sergey Tkachenko
You should also assign
RvMicrophone1.SourceType := rvsstWAV;

Re: Wav files

Posted: Fri Jun 11, 2021 4:29 pm
by jimhawkins2
As you can see from the comment in that code fragment, it is assigned.

Re: Wav files

Posted: Sat Jun 12, 2021 10:51 am
by Sergey Tkachenko
TRVCamMicrophone supports only uncompressed Wav files.
You can send a file sample to me (email richviewgmailcom), I'll check it.

Re: Wav files

Posted: Sun Jun 13, 2021 10:07 am
by jimhawkins2
OK - It does work with uncompressed WAVs. Maybe you could add that to the documentation.

Thanks