Fix audio.microphone

This commit is contained in:
Kristóf Tóth 2020-04-29 21:12:33 +02:00
parent 853d590d97
commit 70227d0eff
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func NewMicrophone() (*microphone, error) {
func (m *microphone) Start() error {
m.command = exec.Command("ffmpeg", "-re",
"-f", m.Format,
"-i", m.Device,
"-i", fmt.Sprintf(":%s", m.Device),
"-f", m.Encoding.Codec,
"-ar", fmt.Sprintf("%d", m.Encoding.Bitrate),
"-ac", fmt.Sprintf("%d", m.Encoding.Channels),

View File

@ -53,5 +53,5 @@ func micStreamExample() {
}
func main() {
pulsectlExample()
micStreamExample()
}