Class ALASFPlayer.TALASFPlayer
(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''' ASFPlayer : [[Class MLASFPlayer.TMLASFBasicPlayer|Mitov.AudioLab.ASFBasicPlayer]] |
</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 | |
− | TVLAVIPlayer component instead.</ | + | TVLAVIPlayer component instead.</b></span> |
− | + | <span style="color:red"><b>This component also requires Windows Media | |
− | Encoder. Please visit:</ | + | Encoder. Please visit:</b></span> |
− | [[http://www.microsoft.com/windows/windowsmedia/forpros/encoder/default.mspx]] | + | [[http://www.microsoft.com/windows/windowsmedia/forpros/encoder/default.mspx]]<span style="color:red"><b>to obtain a copy of Windows Media Encoder.</b></span> |
This DirectShow component can be used to play ASF and WMA | This DirectShow component can be used to play ASF and WMA | ||
Line 48: | Line 48: | ||
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 ALASFPlayer.TALASFPlayer.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]] or [[Class ALDSAudioOut.TALDSAudioOut|TALDSAudioOut]] | pin to the InputPin of an [[Class ALAudioOut.TALAudioOut|TALAudioOut]] or [[Class ALDSAudioOut.TALDSAudioOut|TALDSAudioOut]] | ||
component. | component. | ||
+ | |||
+ | |||
+ | |||
+ | <b>Diagram:</b> | ||
+ | |||
+ | [[Image:ALASFPlayer_Preview.png]] | ||
== Properties == | == Properties == | ||
+ | |||
+ | === Published === | ||
+ | *[[Property ALASFPlayer.TALASFPlayer.FileName|FileName]] | ||
=== Public === | === Public === | ||
Line 67: | Line 76: | ||
=== Published === | === Published === | ||
− | |||
*[[Property MLASFPlayer.TMLASFBasicPlayer.FileName|FileName]] | *[[Property MLASFPlayer.TMLASFBasicPlayer.FileName|FileName]] | ||
+ | *[[Property MLASFPlayer.TMLASFBasicPlayer.Enabled|Enabled]] | ||
*[[Property MLASFPlayer.TMLASFBasicPlayer.Credentials|Credentials]] | *[[Property MLASFPlayer.TMLASFBasicPlayer.Credentials|Credentials]] | ||
*[[Property MLASFPlayer.TMLASFBasicPlayer.Timeout|Timeout]] | *[[Property MLASFPlayer.TMLASFBasicPlayer.Timeout|Timeout]] | ||
*[[Property MLASFPlayer.TMLASFBasicPlayer.Paused|Paused]] | *[[Property MLASFPlayer.TMLASFBasicPlayer.Paused|Paused]] | ||
+ | *[[Property MLASFPlayer.TMLASFBasicPlayer.Loop|Loop]] | ||
*[[Property MLASFPlayer.TMLASFBasicPlayer.PlaybackSpeed|PlaybackSpeed]] | *[[Property MLASFPlayer.TMLASFBasicPlayer.PlaybackSpeed|PlaybackSpeed]] | ||
*[[Property MLASFPlayer.TMLASFBasicPlayer.ClockSource|ClockSource]] | *[[Property MLASFPlayer.TMLASFBasicPlayer.ClockSource|ClockSource]] | ||
Line 95: | Line 105: | ||
== Pins == | == Pins == | ||
− | |||
− | |||
− | |||
*[[Pin MLASFPlayer.TMLASFBasicPlayer.ClockPin|ClockPin]] | *[[Pin MLASFPlayer.TMLASFBasicPlayer.ClockPin|ClockPin]] | ||
*[[Pin MLASFPlayer.TMLASFBasicPlayer.ProgressPin|ProgressPin]] | *[[Pin MLASFPlayer.TMLASFBasicPlayer.ProgressPin|ProgressPin]] | ||
Line 103: | Line 110: | ||
== Events == | == Events == | ||
*[[Event MLASFPlayer.TMLASFBasicPlayer.OnPlayerStatus|OnPlayerStatus]] | *[[Event MLASFPlayer.TMLASFBasicPlayer.OnPlayerStatus|OnPlayerStatus]] | ||
+ | *[[Event MLASFPlayer.TMLASFBasicPlayer.OnProgress|OnProgress]] | ||
+ | *[[Event MLASFPlayer.TMLASFBasicPlayer.OnStop|OnStop]] | ||
== From [[Class MLWMFBaseComponent.TMLWMFBaseComponent|TMLWMFBaseComponent]] == | == From [[Class MLWMFBaseComponent.TMLWMFBaseComponent|TMLWMFBaseComponent]] == |
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: AudioLabPkg
Unit: ALASFPlayer
Inherits: TMLASFBasicPlayer
Contents |
Syntax
Delphi:
type TALASFPlayer = class( TMLASFBasicPlayer )
C++ Builder:
class TALASFPlayer : public TMLASFBasicPlayer
Visual C++ (MFC):
class CTALASFPlayer : public CTMLASFBasicPlayer
C# (.NET):
public ref class ASFPlayer : Mitov.AudioLab.ASFBasicPlayer
Summary
Plays ASF and WMA Audio Files.
Description
Requires DirectShow 8.1 or higher.
If you don't want to use DirectShow use the TVLAVIPlayer component instead.
This component also requires Windows Media Encoder. Please visit:
[[1]]to obtain a copy of Windows Media Encoder.
This DirectShow component can be used to play ASF and WMA 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 or TALDSAudioOut component.
Diagram:
Properties
Published
Public
- SamplesCount - Returns the total number of audio samples in the file.
- WaveFormat - Returns the wave format of the file.
Pins
- OutputPin - The Audio Output Pin of the player.
From TMLASFBasicPlayer
Properties
Published
Public
Methods
Public
- function GetBufferingState(var APercentDone : Integer; var ATimeRemaining : Int64) : Boolean
- function Open() : Boolean
- procedure Close()
- procedure Pause()
- procedure Resume()
- procedure Start()
- procedure Stop()
- procedure Pump()
- procedure StopBuffering()