Fix: linter errors

This commit is contained in:
Alex P 2025-08-22 22:28:15 +00:00
parent e360348829
commit 6ecb829334
3 changed files with 102 additions and 102 deletions

View File

@ -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
) )

View File

@ -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() {