Alxandr / SpotiFire

A project to make a SpotifyClient in C#
http://nudoc.azurewebsites.net/SpotiFire
40 stars 19 forks source link

Retain reference to "Player"-objects when using NAudio #49

Closed Alxandr closed 10 years ago

Alxandr commented 10 years ago

I just ran into a small issue in the sample-applications where music stopped playing after a few seconds. This seemed to be caused by the fact that the WaveOut object was garbage collected. A reference should be retained in the Player-class.