From 485d9e0b926e03d4fe759a8015602535c84641fd Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Fri, 21 Nov 2025 11:14:53 -0500 Subject: [PATCH] Update audio.py --- libs/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audio.py b/libs/audio.py index 2ea2c62..161b907 100644 --- a/libs/audio.py +++ b/libs/audio.py @@ -121,7 +121,7 @@ except OSError as e: class AudioEngine: """Initialize an audio engine for playing sounds and music.""" def __init__(self, device_type: int, sample_rate: float, buffer_size: int, volume_presets: VolumeConfig): - self.device_type = device_type + self.device_type = max(device_type, 0) if sample_rate < 0: self.target_sample_rate = 44100 else: