Fix audio.microphone
This commit is contained in:
		| @@ -37,7 +37,7 @@ func NewMicrophone() (*microphone, error) { | |||||||
| func (m *microphone) Start() error { | func (m *microphone) Start() error { | ||||||
| 	m.command = exec.Command("ffmpeg", "-re", | 	m.command = exec.Command("ffmpeg", "-re", | ||||||
| 		"-f", m.Format, | 		"-f", m.Format, | ||||||
| 		"-i", m.Device, | 		"-i", fmt.Sprintf(":%s", m.Device), | ||||||
| 		"-f", m.Encoding.Codec, | 		"-f", m.Encoding.Codec, | ||||||
| 		"-ar", fmt.Sprintf("%d", m.Encoding.Bitrate), | 		"-ar", fmt.Sprintf("%d", m.Encoding.Bitrate), | ||||||
| 		"-ac", fmt.Sprintf("%d", m.Encoding.Channels), | 		"-ac", fmt.Sprintf("%d", m.Encoding.Channels), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user