We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e26428f commit 632cf66Copy full SHA for 632cf66
1 file changed
AudioCoder/src/main/java/org/operatorfoundation/audiocoder/WSPRAudioSource.kt
@@ -94,6 +94,14 @@ interface WSPRAudioSource
94
*/
95
suspend fun cleanup()
96
97
+ /**
98
+ * Discards all buffered audio samples.
99
+ * Call immediately before starting a decode collection window to ensure
100
+ * only time-aligned audio is fed to the decoder.
101
+ * Default implementation is a no-op for sources that don't buffer.
102
+ */
103
+ suspend fun flushBuffer() {}
104
+
105
/**
106
* Gets current status and diagnostic information about the audio source.
107
*
0 commit comments