mirror of https://github.com/jetkvm/kvm.git
Remove additional redundant comments
This commit is contained in:
parent
12d7ac69b9
commit
cd2d4d752c
|
|
@ -38,15 +38,12 @@
|
||||||
// Compile-time trace logging - disabled for production (zero overhead)
|
// Compile-time trace logging - disabled for production (zero overhead)
|
||||||
#define TRACE_LOG(...) ((void)0)
|
#define TRACE_LOG(...) ((void)0)
|
||||||
|
|
||||||
// ALSA device handles
|
|
||||||
static snd_pcm_t *pcm_capture_handle = NULL; // OUTPUT: TC358743 HDMI audio → client
|
static snd_pcm_t *pcm_capture_handle = NULL; // OUTPUT: TC358743 HDMI audio → client
|
||||||
static snd_pcm_t *pcm_playback_handle = NULL; // INPUT: Client microphone → device speakers
|
static snd_pcm_t *pcm_playback_handle = NULL; // INPUT: Client microphone → device speakers
|
||||||
|
|
||||||
// ALSA device names
|
|
||||||
static const char *alsa_capture_device = NULL;
|
static const char *alsa_capture_device = NULL;
|
||||||
static const char *alsa_playback_device = NULL;
|
static const char *alsa_playback_device = NULL;
|
||||||
|
|
||||||
// Opus codec instances
|
|
||||||
static OpusEncoder *encoder = NULL;
|
static OpusEncoder *encoder = NULL;
|
||||||
static OpusDecoder *decoder = NULL;
|
static OpusDecoder *decoder = NULL;
|
||||||
|
|
||||||
|
|
@ -390,7 +387,6 @@ int jetkvm_audio_capture_init() {
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure encoder with optimized settings
|
|
||||||
opus_encoder_ctl(encoder, OPUS_SET_BITRATE(opus_bitrate));
|
opus_encoder_ctl(encoder, OPUS_SET_BITRATE(opus_bitrate));
|
||||||
opus_encoder_ctl(encoder, OPUS_SET_COMPLEXITY(opus_complexity));
|
opus_encoder_ctl(encoder, OPUS_SET_COMPLEXITY(opus_complexity));
|
||||||
opus_encoder_ctl(encoder, OPUS_SET_VBR(OPUS_VBR));
|
opus_encoder_ctl(encoder, OPUS_SET_VBR(OPUS_VBR));
|
||||||
|
|
|
||||||
2
usb.go
2
usb.go
|
|
@ -9,7 +9,6 @@ import (
|
||||||
|
|
||||||
var gadget *usbgadget.UsbGadget
|
var gadget *usbgadget.UsbGadget
|
||||||
|
|
||||||
// initUsbGadget initializes the USB gadget.
|
|
||||||
// call it only after the config is loaded.
|
// call it only after the config is loaded.
|
||||||
func initUsbGadget() {
|
func initUsbGadget() {
|
||||||
gadget = usbgadget.NewUsbGadget(
|
gadget = usbgadget.NewUsbGadget(
|
||||||
|
|
@ -44,7 +43,6 @@ func initUsbGadget() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// open the keyboard hid file to listen for keyboard events
|
|
||||||
if err := gadget.OpenKeyboardHidFile(); err != nil {
|
if err := gadget.OpenKeyboardHidFile(); err != nil {
|
||||||
usbLogger.Error().Err(err).Msg("failed to open keyboard hid file")
|
usbLogger.Error().Err(err).Msg("failed to open keyboard hid file")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue