
51
Example: The following example illustrates a simple crossfade between audio tracks.
a = CreateObject("roAudioPlayerMx")
track1 = CreateObject("roAssociativeArray")
track1["Filename"] = "file1.mp3"
track1["FadeInLength"] = 4000
track1["FadeOutLength"] = 4000
track1["QueueNext"] = 1
track2 = CreateObject("roAssociativeArray")
track2["Filename"] = "file2.mp3"
track2["FadeInLength"] = 4000
track2["FadeOutLength"] = 4000
track2["QueueNext"] = 1
a.PlayFile(track1)
a.PlayFile(track2)
Interfaces: ifMediaTransport, ifSetMessagePort, ifAudioControl, ifSetMessagePort, ifAudioControlMx
The ifMediaTransport interface provides the following:
• PlayFile(a As Object) As Boolean
• Stop() As Boolean
• Play() As Boolean
• Pause() As Boolean
• Resume() As Boolean
Comentarios a estos manuales