AudioContext

Overview

The AudioContext interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode.

Location

Required Methods


createMediaElementSource

Creates a MediaElementAudioSourceNode associated with an HTMLMediaElement. This can be used to play and manipulate audio from ) embeds a media player which supports video playback into the document. You can use <video> for audio content as well, but the <audio> element may provide a more appropriate user experience."><video> or element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream."><audio> elements.

 

method createMediaElementSource(parmyMediaElement: dynamic): MediaElementAudioSourceNode

 

MediaElementAudioSourceNode createMediaElementSource(dynamic parmyMediaElement)

 

func createMediaElementSource(_ parmyMediaElement: dynamic) -> MediaElementAudioSourceNode

 

MediaElementAudioSourceNode createMediaElementSource(dynamic parmyMediaElement)

 

Function createMediaElementSource(parmyMediaElement As dynamic) As MediaElementAudioSourceNode

Parameters:

  • parmyMediaElement:

createMediaStreamDestination

Creates a MediaStreamAudioDestinationNode associated with a MediaStream representing an audio stream which may be stored in a local file or sent to another computer.

 

method createMediaStreamDestination: MediaStream

 

MediaStream createMediaStreamDestination()

 

func createMediaStreamDestination() -> MediaStream

 

MediaStream createMediaStreamDestination()

 

Function createMediaStreamDestination() As MediaStream

createMediaStreamSource

Creates a MediaStreamAudioSourceNode associated with a MediaStream representing an audio stream which may come from the local computer microphone or other sources.

 

method createMediaStreamSource(parstream: dynamic): MediaStream

 

MediaStream createMediaStreamSource(dynamic parstream)

 

func createMediaStreamSource(_ parstream: dynamic) -> MediaStream

 

MediaStream createMediaStreamSource(dynamic parstream)

 

Function createMediaStreamSource(parstream As dynamic) As MediaStream

Parameters:

  • parstream:

createMediaStreamTrackSource

Creates a MediaStreamTrackAudioSourceNode associated with a MediaStream representing an media stream track.

 

method createMediaStreamTrackSource(partrack: dynamic): MediaStream

 

MediaStream createMediaStreamTrackSource(dynamic partrack)

 

func createMediaStreamTrackSource(_ partrack: dynamic) -> MediaStream

 

MediaStream createMediaStreamTrackSource(dynamic partrack)

 

Function createMediaStreamTrackSource(partrack As dynamic) As MediaStream

Parameters:

  • partrack:

getOutputTimestamp

Returns a new AudioTimestamp object containing two audio timestamp values relating to the current audio context.

 

method getOutputTimestamp: DateTime

 

DateTime getOutputTimestamp()

 

func getOutputTimestamp() -> DateTime

 

DateTime getOutputTimestamp()

 

Function getOutputTimestamp() As DateTime