Skip to content

Rare unhandled exception related to audio devices on program startup #45

@Bone008

Description

@Bone008

In some rare occasions at program startup, the following unhandled exception occurs:

System.Exception: Unhandled exception in fire-and-forget task. ---> NAudio.MmException: AlreadyAllocated calling waveOutOpen
   at NAudio.MmException.Try(MmResult result, String function)
   at NAudio.Wave.WaveOut.Init(IWaveProvider waveProvider)
   at NAudio.Wave.WaveExtensionMethods.Init(IWavePlayer wavePlayer, ISampleProvider sampleProvider, Boolean convertTo16Bit)
   at GlowSequencer.Audio.AudioPlayback.Init(ISeekableSampleProvider sampleProvider) in {snip}\GlowSequencer\Audio\AudioPlayback.cs:line 44
   at GlowSequencer.ViewModel....

Recovering works, but kind of breaks music playback, not sure how persistently.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions