[Component] Playing and storing WAV files in RVF

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Component] Playing and storing WAV files in RVF

Post by Sergey Tkachenko »

http://www.trichview.com/support/files/wavbutton.zip

This component shows how to store additional binary data together with components in RVF file.
In this example, we create the new component TWavButton inherited from TButton. It plays the specified WAV file on clicking. But the main feature of this component is an ability to store this WAV file, like components store their properties. This feature allows to distribute applications without WAV files.
If placed on form, this component can store WAV data assigned at design time. If inserted in TRichView, this component can store WAV data in RVF files.

--

A similar example: http://www.trichview.com/forums/viewtopic.php?t=72
Nostradamus
Posts: 67
Joined: Sat May 13, 2006 1:56 pm
Location: Australia

Re: [Component] Playing and storing WAV files in RVF

Post by Nostradamus »

This component does not compile

can't find TWavbutton unit
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: [Component] Playing and storing WAV files in RVF

Post by Sergey Tkachenko »

WavButton.pas is in the root folder of this ZIP file
Post Reply