diff --git a/cmd/audio-player/main.js b/cmd/audio-player/main.js index 4f88c9af..3606a653 100644 --- a/cmd/audio-player/main.js +++ b/cmd/audio-player/main.js @@ -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' }); diff --git a/cmd/audio-player/server.go b/cmd/audio-player/server.go deleted file mode 100644 index 407be14b..00000000 --- a/cmd/audio-player/server.go +++ /dev/null @@ -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)))) -} \ No newline at end of file