mirror of https://bitbucket.org/ausocean/av.git
revid: updated revid to use alsa package instead of audio (renamed audio->alsa)
This commit is contained in:
parent
527472e934
commit
9fc60a6842
|
@ -45,7 +45,7 @@ import (
|
||||||
"bitbucket.org/ausocean/av/container/flv"
|
"bitbucket.org/ausocean/av/container/flv"
|
||||||
"bitbucket.org/ausocean/av/container/mts"
|
"bitbucket.org/ausocean/av/container/mts"
|
||||||
"bitbucket.org/ausocean/av/device"
|
"bitbucket.org/ausocean/av/device"
|
||||||
"bitbucket.org/ausocean/av/device/audio"
|
"bitbucket.org/ausocean/av/device/alsa"
|
||||||
"bitbucket.org/ausocean/av/device/file"
|
"bitbucket.org/ausocean/av/device/file"
|
||||||
"bitbucket.org/ausocean/av/device/geovision"
|
"bitbucket.org/ausocean/av/device/geovision"
|
||||||
"bitbucket.org/ausocean/av/device/raspivid"
|
"bitbucket.org/ausocean/av/device/raspivid"
|
||||||
|
@ -362,8 +362,8 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
|
||||||
r.cfg.Logger.Log(logger.Fatal, pkg+"no audio codec set in config")
|
r.cfg.Logger.Log(logger.Fatal, pkg+"no audio codec set in config")
|
||||||
}
|
}
|
||||||
|
|
||||||
r.input = audio.New(r.cfg.Logger)
|
r.input = alsa.New(r.cfg.Logger)
|
||||||
cs := r.input.(*audio.ALSA).ChunkSize()
|
cs := r.input.(*alsa.ALSA).ChunkSize()
|
||||||
r.lexTo = codecutil.NewByteLexer(&cs).Lex
|
r.lexTo = codecutil.NewByteLexer(&cs).Lex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue