debug: add quality logging to diagnose issue #34
- Log requested vs returned format_id and sample_rate in get_stream_url_with_fallback - Log quality_str, parsed quality, and format_id in play_track and prefetch_track commands - Add console.log in getStreamingQuality for frontend debugging This will help diagnose why 192kHz is played despite lower quality settings.
This commit is contained in:
1 parent
e1771db099
commit
f83eed1076
3 files changed
+20
-4
No files matched your search
@@ -9,10 +9,14 @@ import { invoke } from '@tauri-apps/api/core';
|
||||
|
||||
/**
|
||||
* Get the preferred streaming quality from localStorage
|
||||
* Valid values: 'MP3', 'CD Quality', 'Hi-Res', 'Hi-Res+'
|
||||
*/
|
||||
function getStreamingQuality(): string {
|
||||
if (typeof localStorage === 'undefined') return 'Hi-Res+';
|
||||
return localStorage.getItem('qbz-streaming-quality') || 'Hi-Res+';
|
||||
const saved = localStorage.getItem('qbz-streaming-quality');
|
||||
// Log for debugging issue #34
|
||||
console.log('[Quality] getStreamingQuality called, localStorage value:', saved);
|
||||
return saved || 'Hi-Res+';
|
||||
}
|
||||
import { listen, type UnlistenFn } from '@tauri-apps/api/event';
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user