mirror of https://github.com/jetkvm/kvm.git
58 lines
1.0 KiB
Go
58 lines
1.0 KiB
Go
//go:build nolint
|
|
|
|
package audio
|
|
|
|
import "errors"
|
|
|
|
// Stub implementations for linting (no CGO dependencies)
|
|
|
|
func cgoAudioInit() error {
|
|
return errors.New("audio not available in lint mode")
|
|
}
|
|
|
|
func cgoAudioClose() {
|
|
// No-op
|
|
}
|
|
|
|
func cgoAudioReadEncode(buf []byte) (int, error) {
|
|
return 0, errors.New("audio not available in lint mode")
|
|
}
|
|
|
|
func cgoAudioPlaybackInit() error {
|
|
return errors.New("audio not available in lint mode")
|
|
}
|
|
|
|
func cgoAudioPlaybackClose() {
|
|
// No-op
|
|
}
|
|
|
|
func cgoAudioDecodeWrite(buf []byte) (int, error) {
|
|
return 0, errors.New("audio not available in lint mode")
|
|
}
|
|
|
|
// Uppercase wrapper functions (called by nonblocking_audio.go)
|
|
|
|
func CGOAudioInit() error {
|
|
return cgoAudioInit()
|
|
}
|
|
|
|
func CGOAudioClose() {
|
|
cgoAudioClose()
|
|
}
|
|
|
|
func CGOAudioReadEncode(buf []byte) (int, error) {
|
|
return cgoAudioReadEncode(buf)
|
|
}
|
|
|
|
func CGOAudioPlaybackInit() error {
|
|
return cgoAudioPlaybackInit()
|
|
}
|
|
|
|
func CGOAudioPlaybackClose() {
|
|
cgoAudioPlaybackClose()
|
|
}
|
|
|
|
func CGOAudioDecodeWrite(buf []byte) (int, error) {
|
|
return cgoAudioDecodeWrite(buf)
|
|
}
|