naudio / NLayer

MPEG 1 & 2 Decoder for Layers 1, 2, & 3
MIT License
124 stars 30 forks source link

Async write to mpeg Stream #28

Closed tkslan closed 1 year ago

tkslan commented 1 year ago

Hi, seems like we have a finite stream support only. When there is a streaming mp3 file read out from a network resource then adding data to stream seems to be ignored by the decoder.

tkslan commented 1 year ago

After some time spent, I found out that data needs to be read in such way that it's always had one frame of mpeg data ahead. Otherwise, it will read all stream data till EOF is reached.