cscore icon indicating copy to clipboard operation
cscore copied to clipboard

Internal "Stream is EOF" Exception on MP3 Playback & Playback Freeze After Completion

Open itsAbhi650 opened this issue 6 months ago • 1 comments

Behavior Observed: The audio continues playing normally, but this exception appears only in debug mode, suggesting it's silently caught internally.

After the audio finishes playing, no further audio can be played unless CSCore is completely reinitialized (i.e., re-creating the audio pipeline and disposing of existing objects).

This issue is consistent across all MP3 files tested, not file-specific.

Steps to Reproduce:

  • Load and play any MP3 file using CSCore.
  • Run the application in debug mode.
  • Observe the Stream is EOF exception.
  • Wait for the playback to finish.
  • Try to play another file or replay the same file – it will fail silently or not play unless CSCore is reinitialized.

Expected Behavior:

  • No internal exceptions during normal playback.

itsAbhi650 avatar Jun 19 '25 03:06 itsAbhi650

you could just replace throw new InternalEofException("Stream is EOF."); with return false;.

trivalik avatar Sep 30 '25 16:09 trivalik