Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
html-audio-elements
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JadeProListening
html-audio-elements
Commits
9675ca3a
Commit
9675ca3a
authored
Oct 07, 2016
by
Stephanus Volke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove destination.js
parent
b2ca613d
Pipeline
#754
passed with stages
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
71 deletions
+0
-71
html-audio-destination.js
src/html-audio-destination.js
+0
-71
No files found.
src/html-audio-destination.js
deleted
100755 → 0
View file @
b2ca613d
import
{
AudioNodeInterface
}
from
'./audio-node-interface.js'
;
export
class
HTMLAudioDestination
extends
AudioNodeInterface
{
/**
* The HTMLAudioSource class is a custom element projecting the
* AudioSource interface of the WebAudio API into an html tag
* `<html-audio-source>`. It handles the playback of a specific audio
* buffer. There is no hard dependenciy to any other element but
* assumes that there also exist an `<html-audio-buffer>` element in
* the same document.
*
* ## Usage
*
* ``` html
* <html-audio-source id="source"
* buffer-id="buffer"
* state="playing"></html-audio-buffer>
* ```
*
* >! Note: It is required to specify an `id` and a `buffer-id` attribute for this element.
*
* ## API Reference
*
* ### Properties
*
* - **id**{string}: unique identifyer for this element. Access:
* (attr|api) *Required*
*
* - **buffer-id**{string}: identifyer of a `html-audio-buffer`
* element. Access: (attr|api) *Required*
*
*
* - **state**{string}: current state of audio source. Can be
* {waiting, ready, playing, paused, stopped}. This attribute
* controls audio playback. Access: (attr|api)
*
* - **start-pos**{float}: playback start position in seconds. Access: (attr|api)
*
* - **cur-pos**{float}: while playback this attribute shows the
* current playback position. Access: (attr|api) *read only*
*
* - **exclusive**{bool}: If this bool attribute is set, all other
* sources were stopped before playback starts. Access: (attr|api)
*
* ### Methods
*
* - **play()**: Starts playback at `start-pos`.
*
* - **pause()**: Playback pauses at `cur-pos`.
*
* - **stop()**: Playback stopps and `cur-pos` will be set to 0.
*/
constructor
()
{
super
();
this
.
isSourceNode
=
false
;
}
static
get
observedAttributes
()
{
}
connectedCallback
()
{
super
.
connectedCallback
();
this
.
node
=
this
.
_context
.
destination
;
}
attributeChangedCallback
(
attrName
,
oldVal
,
newVal
)
{
}
}
window
.
customElements
.
define
(
'html-audio-destination'
,
HTMLAudioDestination
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment