9a78b3e3f1
Release / build (amd64, darwin, macos-latest) (push) Has been cancelled
Release / build (amd64, linux, ubuntu-latest) (push) Has been cancelled
Release / build (amd64, windows, windows-latest) (push) Has been cancelled
Release / build (arm64, darwin, macos-latest) (push) Has been cancelled
Release / build (arm64, linux, ubuntu-latest) (push) Has been cancelled
Release / release (push) Has been cancelled
Release / update-homebrew (push) Has been cancelled
* feat: support media controller on mac * fix(notifications): publish current playback state when media notifier attaches * fix(darwin): lock startup to the Cocoa main thread * refactor: cleanup and simplify * missed cleanup
12 lines
304 B
Go
12 lines
304 B
Go
// player/device_other.go — stub for non-macOS platforms.
|
|
|
|
//go:build !darwin || ios || !cgo
|
|
|
|
package player
|
|
|
|
// DeviceSampleRate returns 0 on platforms where device detection is not
|
|
// implemented. Callers should fall back to a sensible default (e.g. 44100).
|
|
func DeviceSampleRate() int {
|
|
return 0
|
|
}
|