filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.15k stars 451 forks source link

Exception: „CSCore.Codecs.MP3.Mp3Frame.InternalEofException” w CSCore.dll #431

Open dewelooper opened 3 years ago

dewelooper commented 3 years ago

Hi, any time when I play mp3 file (even if I use simple player from examples) I get this on Open() file.

` public void Open(string filename, MMDevice device) { CleanupPlayback();

        _waveSource =
            CodecFactory.Instance.GetCodec(filename)
                .ToSampleSource()
                .ToMono()
                .ToWaveSource();
        _soundOut = new WasapiOut() {Latency = 100, Device = device};
        _soundOut.Initialize(_waveSource);
        if (PlaybackStopped != null) _soundOut.Stopped += PlaybackStopped;
    }`

everythink works ok but this is strange ... why I see this exception???

Thank you