Audio
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//go:build !windows
|
||||
|
||||
package mic
|
||||
|
||||
import "errors"
|
||||
|
||||
func List() ([]Device, error) {
|
||||
return nil, errors.New("microphone is only available on Windows")
|
||||
}
|
||||
|
||||
func Chunk(int) ([]byte, error) {
|
||||
return nil, errors.New("microphone is only available on Windows")
|
||||
}
|
||||
|
||||
func StartRecord(int) (string, error) {
|
||||
return "", errors.New("microphone is only available on Windows")
|
||||
}
|
||||
|
||||
func StopRecord() (string, int64, error) {
|
||||
return "", 0, errors.New("microphone is only available on Windows")
|
||||
}
|
||||
|
||||
func Recording() bool { return false }
|
||||
|
||||
func Stop() {}
|
||||
Reference in New Issue
Block a user