When using in Unity3d, I can not close app.
In Unity3D editor, it does work.
Test sample can be downloaded from below.
https://skydrive.live.com/redir?resid=A75A74307455C939!117&authkey=!ALwBE-R92Qc6x6k
Comments: It looks like Unity3D is based on the Mono framework, which offers cross-platform .NET, but NAudio can only work on Windows. You might find using WaveOutEvent helps you in this case as the code you have written is probably using Function callbacks which are prone to hanging issues on close.
In Unity3D editor, it does work.
Test sample can be downloaded from below.
https://skydrive.live.com/redir?resid=A75A74307455C939!117&authkey=!ALwBE-R92Qc6x6k
Comments: It looks like Unity3D is based on the Mono framework, which offers cross-platform .NET, but NAudio can only work on Windows. You might find using WaveOutEvent helps you in this case as the code you have written is probably using Function callbacks which are prone to hanging issues on close.