Copyright© Kambiz R. Khojasteh. All rights reserved.
Get future component updates from http://www.delphiarea.com.
DESCRIPTION
TWavePlayer is a non-visual component, which can store a wave file as a form resource and play it with different options.
PROPERTIES
- Active: Boolean
When set to True, the stored wave data will be played.
- Loop: Boolean
Indicates whether the sound should be played continuously.
- StopOthers: Boolean
Indicates whether the component should stop other sounds before starting this one. When this property is False and another wave file is playing, the component does not play.
- WaitToStop: Boolean
Indicates whether the component should wait until playing completes. If set to False, the sound will be played asynchronously.
- Sound: TWave
TWave = TMemoryStream
Contains the wave audio data.
- Empty: Boolean (Read-only)
Indicates whether any wave is loaded into the component.
METHODS
- procedure Clear
Clears the sound property.
- procedure Play
Plays the wave sound if any is loaded into the component.
- Procedure Stop
Stops the playing wave sound.
- Procedure LoadFromResourceName(Instance: THandle; ResName: String)
Loads the component with a wave sound from the application resource by a resource name.
- Procedure LoadFromResourceID(Instance: THandle; ResID: Integer)
Loads the component with a wave sound from the application resource by a resource ID.
- procedure LoadFromStream(Stream: TStream)
Loads the component with a wave sound from the stream
- procedure SaveToStream(Stream: TStream)
Saves the wave sound into the stream.
- procedure LoadFromFile(const FileName: String)
Loads the component with a wave sound from a wave file.
- procedure SaveToFile(const Filename: String)
Saves the wave sound into a file.
EVENTS
No event.
HISTORY
- 1.02 (November 18, 2008)
- Now supports up to Delphi 2009.
- 1.01 (December 27, 2001)
- Now supports Delphi 5 and Delphi 6.
- 1.00 (October 27, 1999)
- Initial release.
LICENSE
TWavePlayer component is freeware. You may copy component's files AS LONG AS YOU COPY ALL OF THEM. If you want to change the source code in order to improve the component's features, performance, etc. please send me the new source code so that I can have a look at it. The changed source code should contain descriptions what you have changed, and of course your name. The only thing you MAY NOT CHANGE is the ORIGINAL COPYRIGHT INFORMATION.
DISCLAIMER
TWavePlayer is provided "AS IS" without any warranty of any kind, either express or implied. The entire risk as to the quality and performance of the software is with you. The author is NOT liable for any DAMAGES resulting from the use and misuse of the component, especially he is NOT liable for DAMAGES that were caused BY ANY VERSION WHICH HAS NOT BEEN PROGRAMMED BY THE AUTHOR HIMSELF.