Wav files

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
jimhawkins2
Posts: 22
Joined: Thu Dec 03, 2009 11:58 am
Location: HUll, UK
Contact:

Wav files

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Wav files

Post by Sergey Tkachenko »

You should also assign
RvMicrophone1.SourceType := rvsstWAV;
jimhawkins2
Posts: 22
Joined: Thu Dec 03, 2009 11:58 am
Location: HUll, UK
Contact:

Re: Wav files

Post by jimhawkins2 »

As you can see from the comment in that code fragment, it is assigned.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Wav files

Post by Sergey Tkachenko »

TRVCamMicrophone supports only uncompressed Wav files.
You can send a file sample to me (email richviewgmailcom), I'll check it.
jimhawkins2
Posts: 22
Joined: Thu Dec 03, 2009 11:58 am
Location: HUll, UK
Contact:

Re: Wav files

Post by jimhawkins2 »

OK - It does work with uncompressed WAVs. Maybe you could add that to the documentation.

Thanks
Post Reply