-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunsupported.go
More file actions
27 lines (20 loc) · 928 Bytes
/
unsupported.go
File metadata and controls
27 lines (20 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//go:build !darwin && !freebsd && !linux && !netbsd && !windows
package mago
import "errors"
var errUnsupportedPlatform = errors.New("mago: this package is currently supported on darwin, freebsd, linux, netbsd, and windows")
type Library struct{}
type Context struct{}
type Device struct{}
type LibraryOption func(*struct{})
type DataCallback func(*Device, any, any, uint32)
type NotificationCallback func(*Device, NotificationType)
type PlaybackDeviceConfig struct{}
type OpError struct {
Op string
Code Result
Description string
}
func (e *OpError) Error() string { return errUnsupportedPlatform.Error() }
func WithLibraryPath(string) LibraryOption { return func(*struct{}) {} }
func Open(...LibraryOption) (*Library, error) { return nil, errUnsupportedPlatform }
func DefaultPlaybackDeviceConfig() PlaybackDeviceConfig { return PlaybackDeviceConfig{} }