- Added comprehensive logging of audio device configuration when opening input stream
- Included host API name, device details, channel count, and latency parameters in logs
- Added PortAudio version logging to help with troubleshooting
- Implemented error handling for device query failures with warning log output
- Added persistence of demo stream type and count to maintain user preferences across sessions
- Enhanced demo stream selection to automatically restore previously selected configuration
- Added fallback logic to match saved sampling rate and stream count when exact demo type not found
- Updated secondary stream initialization to track total demo streams across primary/secondary configs
- Modified settings storage to include demo_stream_type and demo
- Changed audio capture rate to fixed 48kHz instead of using device default to prevent resampling latency and 44.1kHz compatibility issues
- Updated device detection to use get_alsa_usb_inputs() instead of get_usb_pw_inputs() for more accurate USB audio device discovery
- Maintains original channel count logic to use maximum of 2 channels based on device capabilities