Class ALDSAudioPlayer.TALDSAudioPlayer
(Automated Syncronization with Documentation) |
(Automated Syncronization with Documentation) |
||
(6 intermediate revisions by one user not shown) | |||
Line 28: | Line 28: | ||
=== C# (.NET): === | === C# (.NET): === | ||
<code> | <code> | ||
− | '''public ref class''' | + | '''public ref class''' DSAudioPlayer : [[Class MLDSPlayer.TMLDSPlayer|Mitov.AudioLab.DSPlayer]] |
</code> | </code> | ||
== Summary == | == Summary == | ||
Line 34: | Line 34: | ||
== Description == | == Description == | ||
− | + | <span style="color:red"><b>Requires DirectShow 8.1 or higher.</b></span> | |
− | + | <span style="color:red"><b>If you don't want to use DirectShow use the | |
− | [[Class ALWavePlayer.TALWavePlayer|TALWavePlayer]] component instead.</ | + | [[Class ALWavePlayer.TALWavePlayer|TALWavePlayer]] component instead.</b></span> |
This DirectShow compionent can be used to play Audio files. | This DirectShow compionent can be used to play Audio files. | ||
To play an Audio file, place the component on a form, set the | To play an Audio file, place the component on a form, set the | ||
− | FileName with the name of an existing Audio file, set the | + | [[Property ALDSAudioPlayer.TALDSAudioPlayer.FileName|FileName]] with the name of an existing Audio file, set the |
component Enabled property to True, and connect the OutputPut | component Enabled property to True, and connect the OutputPut | ||
pin to the InputPin of an [[Class ALAudioOut.TALAudioOut|TALAudioOut]]. | pin to the InputPin of an [[Class ALAudioOut.TALAudioOut|TALAudioOut]]. | ||
+ | |||
+ | |||
+ | |||
+ | <b>Diagram:</b> | ||
+ | |||
+ | [[Image:ALDSAudioPlayer_Preview.png]] | ||
== Properties == | == Properties == | ||
+ | |||
+ | === Published === | ||
+ | *[[Property ALDSAudioPlayer.TALDSAudioPlayer.FileName|FileName]] | ||
=== Public === | === Public === | ||
Line 64: | Line 73: | ||
== Pins == | == Pins == | ||
*[[Pin ALDSAudioPlayer.TALDSAudioPlayer.OutputPin|OutputPin]] - The Audio Output Pin of the player. | *[[Pin ALDSAudioPlayer.TALDSAudioPlayer.OutputPin|OutputPin]] - The Audio Output Pin of the player. | ||
− | |||
− | |||
− | |||
− | |||
== From [[Class MLDSPlayer.TMLDSPlayer|TMLDSPlayer]] == | == From [[Class MLDSPlayer.TMLDSPlayer|TMLDSPlayer]] == | ||
Line 87: | Line 92: | ||
=== Public === | === Public === | ||
− | |||
*[[Property MLDSPlayer.TMLDSPlayer.Opened|Opened]] | *[[Property MLDSPlayer.TMLDSPlayer.Opened|Opened]] | ||
+ | *[[Property MLDSPlayer.TMLDSPlayer.WaveFormat|WaveFormat]] | ||
== Methods == | == Methods == | ||
Line 102: | Line 107: | ||
== Pins == | == Pins == | ||
− | |||
− | |||
*[[Pin MLDSPlayer.TMLDSPlayer.ProgressPin|ProgressPin]] | *[[Pin MLDSPlayer.TMLDSPlayer.ProgressPin|ProgressPin]] | ||
− | |||
*[[Pin MLDSPlayer.TMLDSPlayer.ClockPin|ClockPin]] | *[[Pin MLDSPlayer.TMLDSPlayer.ClockPin|ClockPin]] | ||
*[[Pin MLDSPlayer.TMLDSPlayer.TextOutputPin|TextOutputPin]] | *[[Pin MLDSPlayer.TMLDSPlayer.TextOutputPin|TextOutputPin]] | ||
+ | *[[Pin MLDSPlayer.TMLDSPlayer.RawAudioOutputPin|RawAudioOutputPin]] | ||
== Events == | == Events == | ||
*[[Event MLDSPlayer.TMLDSPlayer.OnProgress|OnProgress]] | *[[Event MLDSPlayer.TMLDSPlayer.OnProgress|OnProgress]] | ||
*[[Event MLDSPlayer.TMLDSPlayer.OnStop|OnStop]] | *[[Event MLDSPlayer.TMLDSPlayer.OnStop|OnStop]] | ||
+ | *[[Event MLDSPlayer.TMLDSPlayer.OnCaptionText|OnCaptionText]] | ||
[[Category:Components]][[Category:Classes]] | [[Category:Components]][[Category:Classes]] |
Latest revision as of 00:30, 26 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: AudioLabEssentialPkg
Unit: ALDSAudioPlayer
Inherits: TMLDSPlayer
Contents |
Syntax
Delphi:
type TALDSAudioPlayer = class( TMLDSPlayer )
C++ Builder:
class TALDSAudioPlayer : public TMLDSPlayer
Visual C++ (MFC):
class CTALDSAudioPlayer : public CTMLDSPlayer
C# (.NET):
public ref class DSAudioPlayer : Mitov.AudioLab.DSPlayer
Summary
Plays audio from Audio file using DirectShow.
Description
Requires DirectShow 8.1 or higher.
If you don't want to use DirectShow use the TALWavePlayer component instead.
This DirectShow compionent can be used to play Audio files.
To play an Audio file, place the component on a form, set the FileName with the name of an existing Audio file, set the component Enabled property to True, and connect the OutputPut pin to the InputPin of an TALAudioOut.
Diagram:
Properties
Published
Public
- DurationTime - The total time of the opened file.
- CurrentTime - Current time being played.
- SamplesCount - Returns the total number of audio samples in the file.
- CurrentSample - Current audio sample being played.
- AudioFilterName - Returns the audio codec filter name.
- AudioCodecName - Returns the audio codec name.
- AudioCodec - Returns the Audio codec FourCC code.
Methods
Public
- function Open() : Boolean - Opens the selected audio file.
Pins
- OutputPin - The Audio Output Pin of the player.
From TMLDSPlayer
Properties
Published
- Graph
- Enabled
- Paused
- ClockSource
- PumpPriority
- Loop
- FileName
- RestartOnNewFile
- PlaybackRate
- PlaybackPrefill
- ExtractRawAudio
Public
Methods
Public
- function Open() : Boolean
- procedure Close()
- procedure Start()
- procedure Stop()
- procedure Pause()
- procedure Resume()
- procedure Pump()