26 lines
536 B
Go
26 lines
536 B
Go
//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() {}
|