Skip to content

Commit 84b22e4

Browse files
committed
Debug Logging
1 parent c1d167e commit 84b22e4

File tree

1 file changed

+9
-0
lines changed
  • AudioCoder/src/main/java/org/operatorfoundation/audiocoder

1 file changed

+9
-0
lines changed

AudioCoder/src/main/java/org/operatorfoundation/audiocoder/WSPRStation.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,21 @@ class WSPRStation(
316316
// Phase 3: Process collected audio through WSPR decoder
317317
_stationState.value = WSPRStationState.ProcessingAudio
318318

319+
Timber.d("=== PRE-DECODE CHECK ===")
320+
Timber.d("Buffer ready: ${signalProcessor.isReadyForDecode()}")
321+
Timber.d("Buffer samples: ${signalProcessor.audioBuffer.size}")
322+
Timber.d("Buffer duration: ${signalProcessor.getBufferDurationSeconds()}s")
323+
Timber.d("Required samples: ${signalProcessor.getRequiredDecodeSamples()}")
324+
Timber.d("Config: freq=${configuration.operatingFrequencyMHz}, lsb=${configuration.useLowerSidebandMode}")
325+
319326
val nativeDecodeResults = signalProcessor.decodeBufferedWSPR(
320327
dialFrequencyMHz = configuration.operatingFrequencyMHz,
321328
useLowerSideband = configuration.useLowerSidebandMode,
322329
useTimeAlignment = configuration.useTimeAlignedDecoding
323330
)
324331

332+
Timber.d("Native decode returned: ${nativeDecodeResults?.size ?: "null"}")
333+
325334
// Phase 4: Convert and store results
326335
val processedResults = convertNativeResultsToApplicationFormat(nativeDecodeResults)
327336
_decodeResults.value = processedResults

0 commit comments

Comments
 (0)