audio-player: removed basic file server

This commit is contained in:
Trek H 2019-09-06 14:05:22 +09:30
parent 328d63f623
commit ab56f0f597
2 changed files with 2 additions and 20 deletions

View File

@ -33,7 +33,7 @@ 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

View File

@ -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))))
}