Class ALOggPlayer.TALOggPlayer
From Mitov Wiki Doc
(Difference between revisions)
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
Line 38: | Line 38: | ||
will pass it to an Ogg compatible decompressor, such as | will pass it to an Ogg compatible decompressor, such as | ||
[[Class ALVorbisDecompressor.TALVorbisDecompressor|TALVorbisDecompressor]]. | [[Class ALVorbisDecompressor.TALVorbisDecompressor|TALVorbisDecompressor]]. | ||
+ | |||
+ | |||
+ | |||
+ | <b>Diagram:</b> | ||
+ | |||
+ | [[Image:ALOggPlayer_Preview.png]] | ||
== Properties == | == Properties == | ||
Line 60: | Line 66: | ||
=== Public === | === Public === | ||
− | *[[Method procedure ALOggPlayer.TALOggPlayer.Pump()|procedure Pump()]] - Plays one buffer if enabled and [[Property ALOggPlayer.TALOggPlayer.ClockSource|ClockSource]] is [[Enum item | + | *[[Method procedure ALOggPlayer.TALOggPlayer.Pump()|procedure Pump()]] - Plays one buffer if enabled and [[Property ALOggPlayer.TALOggPlayer.ClockSource|ClockSource]] is [[Enum item SLTypes.TSLClockSource.csExternal|csExternal]]. |
*[[Method function ALOggPlayer.TALOggPlayer.Open() : Boolean|function Open() : Boolean]] - Opens the file and prepares it to be played. | *[[Method function ALOggPlayer.TALOggPlayer.Open() : Boolean|function Open() : Boolean]] - Opens the file and prepares it to be played. | ||
*[[Method procedure ALOggPlayer.TALOggPlayer.Close()|procedure Close()]] - Closes the file. | *[[Method procedure ALOggPlayer.TALOggPlayer.Close()|procedure Close()]] - Closes the file. | ||
Line 70: | Line 76: | ||
== Pins == | == Pins == | ||
*[[Pin ALOggPlayer.TALOggPlayer.OutputPin|OutputPin]] - The Audio Output Pin of the player. | *[[Pin ALOggPlayer.TALOggPlayer.OutputPin|OutputPin]] - The Audio Output Pin of the player. | ||
− | |||
*[[Pin ALOggPlayer.TALOggPlayer.ProgressPin|ProgressPin]] - The Play Progress Pin of the player. | *[[Pin ALOggPlayer.TALOggPlayer.ProgressPin|ProgressPin]] - The Play Progress Pin of the player. | ||
− | |||
− | |||
*[[Pin ALOggPlayer.TALOggPlayer.ClockPin|ClockPin]] - The external clock pin for the player. | *[[Pin ALOggPlayer.TALOggPlayer.ClockPin|ClockPin]] - The external clock pin for the player. | ||
Revision as of 20:29, 10 June 2013
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: AudioLabPkg
Unit: ALOggPlayer
Inherits: TLPComponent
Contents |
Syntax
Delphi:
type TALOggPlayer = class( TLPComponent )
C++ Builder:
class TALOggPlayer : public TLPComponent
Visual C++ (MFC):
class CTALOggPlayer : public CTLPComponent
C# (.NET):
public ref class TALOggPlayer : Mitov.AudioLab.Component
Summary
Plays audio from Ogg file.
Description
Plays Ogg format files. The component does not decompress the data. It will extract the data from the Ogg structures, and will pass it to an Ogg compatible decompressor, such as TALVorbisDecompressor.
Diagram:
Properties
Published
- FileName - Name of the Ogg file to be Played.
- RestartOnNewFile - Send Stop/Start notification when switching files.
- PumpPriority - Specifies the priority of the component as a pump.
- Enabled - Enables/Disables the player.
- Paused - Pauses or resumes the playback.
- Loop - Replayed again after the end.
- ClockSource - Specifies the clock source - internal or external.
- PlaySegment - A segment of the file to be played.
- Rate - Specifies the sample rate of the Ogg player.
- BufferSize - Desired size of the audio buffer.
- Streaming - Configure for URL remote streaming.
Public
- Opened - Indicates if the file is opened.
Methods
Public
- procedure Pump() - Plays one buffer if enabled and ClockSource is csExternal.
- function Open() : Boolean - Opens the file and prepares it to be played.
- procedure Close() - Closes the file.
- procedure Start() - Starts the playback.
- procedure Stop() - Stops the playback.
- procedure Pause() - Pauses the playback.
- procedure Resume() - Resumes paused playback.
Pins
- OutputPin - The Audio Output Pin of the player.
- ProgressPin - The Play Progress Pin of the player.
- ClockPin - The external clock pin for the player.
Events
- OnProgress - Player progress notification event.
- OnStop - Occurs when the playback stops.
- OnError - Occurs on Ogg file error.