mirror of https://bitbucket.org/ausocean/av.git
audio-player: removed basic file server
This commit is contained in:
parent
328d63f623
commit
ab56f0f597
|
@ -33,7 +33,7 @@ function processData() {
|
||||||
// decode adpcm to pcm
|
// decode adpcm to pcm
|
||||||
var decoded = decode(Array.from(bytes))
|
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);
|
var wav = pcmToWav(decoded, 48000, 1, 16);
|
||||||
|
|
||||||
// play wav data in player
|
// play wav data in player
|
||||||
|
|
|
@ -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