import { HTMLMediaAssembler } from './media'

const { HTMLAudioElement } = window

export class Audio extends HTMLMediaAssembler {
    // todo
    /**
     * @returns {window.HTMLAudioElement}
     */
    static get interface() {
        return HTMLAudioElement
    }
}

/**
 * @param {*} [init]
 * @returns {Audio}
 */
export function audio(...init) {
    return new Audio(...init)
}

@@ -75,16 +75,236 @@
  window%0A
+const LOCAL_NAME = 'audio'%0A%0A/**%0A * The %60HTML%60 prefix is used to avoid a confilct%0A * with the Audio class from the HTML standard%0A * https://www.w3.org/TR/html/semantics-embedded-content.html#dom-htmlaudioelement-audio%0A */
 %0Aexport 
@@ -309,16 +309,20 @@
 t class 
+HTML
 Audio ex
@@ -357,14 +357,105 @@
    /
-/ todo
+**%0A     * @returns %7BString%7D%0A     */%0A    static get localName() %7B%0A        return LOCAL_NAME%0A    %7D%0A
 %0A   
@@ -617,16 +617,20 @@
 eturns %7B
+HTML
 Audio%7D%0A 
@@ -680,16 +680,20 @@
 urn new 
+HTML
 Audio(..

complete interface