This reference page is linked to from the following overview topics: FBApplication - File I/O and Application Utilities, File Input and Output, Audio / video.
Used to play audio clips and access their properties.
This class permits you to access audio clip's properties to read or change them.
#include <fbaudio.h>

Public Member Functions |
|
| FBAudioClip (char *pFileName, bool pSetToDefaultDest=true, HIObject pObject=NULL) | |
| Constructor. |
|
| virtual void | FBDelete () |
| Virtual FBDelete function. |
|
| bool | Play (FBTriggerStyle pStyle=kFBTriggerStyleContinue, HFBAudioOut pDestination=NULL) |
| Play audio clip now. |
|
| void | Stop (HFBAudioOut pDestination=NULL) |
| Stop any playing triggered audio clip on a
specified destination. |
|
Public Attributes |
|
| FBPropertyString | Filename |
| Read Only Property: Filename of
media. |
|
| FBPropertyString | RelativePath |
| Read Only Property: Relative path of
media. |
|
| FBPropertyInt | Format |
| Read Only Property: Data format of
media, including rate, bits and channels count. |
|
| FBPropertyAudioOut | Destination |
| Read Write Property: The audio output
destination where the clip will be played. |
|
| FBPropertyTime | Duration |
| Read Only Property: Total duration of
this audio clip. |
|
| FBPropertyTime | InPoint |
| Read Write Property: When not used in
the Story, this specify when the clips begin to play. |
|
| FBPropertyAccessMode | AccessMode |
| Read Write Property: Specify the
media data access mode between disk or memory. |
|
| FBPropertyUseChnMode | UseChannelMode |
| Read Write Property: Enables you to
control which track are used with stereo clips. |
|
| FBPropertyBool | Scrubbing |
| Read Write Property: Control which
clip (one at a time) can shuttle when playing a various speeds.
|
|
| FBAudioClip | ( | char * | pFileName, |
| bool | pSetToDefaultDest =
true, |
||
| HIObject | pObject =
NULL |
||
| ) |
Constructor.
| pFileName | The complete file path of the media file to access. |
| pSetToDefaultDest | If true and the media file open successfully, it will automatically be connected to an output device. |
| pObject | For internal use only. |
| virtual void FBDelete | ( | ) | [virtual] |
| bool Play | ( | FBTriggerStyle | pStyle =
kFBTriggerStyleContinue, |
| HFBAudioOut | pDestination =
NULL |
||
| ) |
Play audio clip now.
| pStyle | How the audio clip should be triggered. |
| pDestination | Where the audio clip should be played. If NULL, it will play on the default destination. |
| void Stop | ( | HFBAudioOut | pDestination =
NULL |
) |
Stop any playing triggered audio clip on a specified destination.
| pDestination | Where the audio clip is playing. If NULL, the default destination will be used. |
Read Only Property: Filename of media.
Read Only Property: Relative path of media.
Read Only Property: Data format of media, including rate, bits and channels count.
You can typecast it to a FBAudioFmt.
| FBPropertyAudioOut Destination |
Read Write Property: The audio output destination where the clip will be played.
Read Only Property: Total duration of this audio clip.
Read Write Property: When not used in the Story, this specify when the clips begin to play.
| FBPropertyAccessMode AccessMode |
Read Write Property: Specify the media data access mode between disk or memory.
| FBPropertyUseChnMode UseChannelMode |
Read Write Property: Enables you to control which track are used with stereo clips.
Read Write Property: Control which clip (one at a time) can shuttle when playing a various speeds.