mirror of https://bitbucket.org/ausocean/av.git
audio-player: removed basic file server
This commit is contained in:
parent
328d63f623
commit
ab56f0f597
|
@ -33,10 +33,10 @@ function processData() {
|
|||
// decode adpcm to pcm
|
||||
var decoded = decode(Array.from(bytes))
|
||||
|
||||
// convert raw pcm to wav
|
||||
// convert raw pcm to wav TODO(Trek): make these configurable.
|
||||
var wav = pcmToWav(decoded, 48000, 1, 16);
|
||||
|
||||
// play wav data in player
|
||||
// play wav data in player
|
||||
const blob = new Blob([Uint8Array.from(wav)], {
|
||||
type: 'audio/wav'
|
||||
});
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var (
|
||||
listen = flag.String("listen", ":8080", "listen address")
|
||||
dir = flag.String("dir", ".", "directory to serve")
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
log.Printf("listening on %q...", *listen)
|
||||
log.Fatal(http.ListenAndServe(*listen, http.FileServer(http.Dir(*dir))))
|
||||
}
|
Loading…
Reference in New Issue