cscore
cscore copied to clipboard
Internal "Stream is EOF" Exception on MP3 Playback & Playback Freeze After Completion
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.
you could just replace throw new InternalEofException("Stream is EOF."); with return false;.