mirror of https://github.com/jetkvm/kvm.git
Fix: linter errors
This commit is contained in:
parent
e360348829
commit
6ecb829334
|
@ -387,15 +387,15 @@ import "C"
|
||||||
|
|
||||||
// Optimized Go wrappers with reduced overhead
|
// Optimized Go wrappers with reduced overhead
|
||||||
var (
|
var (
|
||||||
errAudioInitFailed = errors.New("failed to init ALSA/Opus")
|
errAudioInitFailed = errors.New("failed to init ALSA/Opus")
|
||||||
errBufferTooSmall = errors.New("buffer too small")
|
errBufferTooSmall = errors.New("buffer too small")
|
||||||
errAudioReadEncode = errors.New("audio read/encode error")
|
errAudioReadEncode = errors.New("audio read/encode error")
|
||||||
errAudioDecodeWrite = errors.New("audio decode/write error")
|
errAudioDecodeWrite = errors.New("audio decode/write error")
|
||||||
errAudioPlaybackInit = errors.New("failed to init ALSA playback/Opus decoder")
|
errAudioPlaybackInit = errors.New("failed to init ALSA playback/Opus decoder")
|
||||||
errEmptyBuffer = errors.New("empty buffer")
|
errEmptyBuffer = errors.New("empty buffer")
|
||||||
errNilBuffer = errors.New("nil buffer")
|
errNilBuffer = errors.New("nil buffer")
|
||||||
errBufferTooLarge = errors.New("buffer too large")
|
errBufferTooLarge = errors.New("buffer too large")
|
||||||
errInvalidBufferPtr = errors.New("invalid buffer pointer")
|
errInvalidBufferPtr = errors.New("invalid buffer pointer")
|
||||||
)
|
)
|
||||||
|
|
||||||
func cgoAudioInit() error {
|
func cgoAudioInit() error {
|
||||||
|
@ -479,10 +479,10 @@ func cgoAudioDecodeWrite(buf []byte) (int, error) {
|
||||||
|
|
||||||
// Wrapper functions for non-blocking audio manager
|
// Wrapper functions for non-blocking audio manager
|
||||||
var (
|
var (
|
||||||
CGOAudioInit = cgoAudioInit
|
CGOAudioInit = cgoAudioInit
|
||||||
CGOAudioClose = cgoAudioClose
|
CGOAudioClose = cgoAudioClose
|
||||||
CGOAudioReadEncode = cgoAudioReadEncode
|
CGOAudioReadEncode = cgoAudioReadEncode
|
||||||
CGOAudioPlaybackInit = cgoAudioPlaybackInit
|
CGOAudioPlaybackInit = cgoAudioPlaybackInit
|
||||||
CGOAudioPlaybackClose = cgoAudioPlaybackClose
|
CGOAudioPlaybackClose = cgoAudioPlaybackClose
|
||||||
CGOAudioDecodeWrite = cgoAudioDecodeWrite
|
CGOAudioDecodeWrite = cgoAudioDecodeWrite
|
||||||
)
|
)
|
||||||
|
|
6
main.go
6
main.go
|
@ -14,10 +14,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
appCtx context.Context
|
appCtx context.Context
|
||||||
isAudioServer bool
|
isAudioServer bool
|
||||||
audioProcessDone chan struct{}
|
audioProcessDone chan struct{}
|
||||||
audioSupervisor *audio.AudioServerSupervisor
|
audioSupervisor *audio.AudioServerSupervisor
|
||||||
)
|
)
|
||||||
|
|
||||||
func runAudioServer() {
|
func runAudioServer() {
|
||||||
|
|
Loading…
Reference in New Issue