Closed
Description
Hello,
I'm getting random exception, when I'm changing WaveOutEvent
volume, during longer runs of my program (>24h).
I'm using WaveOut as my output driver.
Environment, where this issue could be reproduced is Lenovo ThinkPad 10 (Type 20E3).
Device paths for device outputs are:
SWD\MMDEVAPI\{0.0.0.00000000}.{9065EB97-5291-4481-9DC0-C8CB3CC08DBD}
(Intel SST Audio Device)
SWD\MMDEVAPI\{0.0.0.00000000}.{2B7EF839-49FB-49E1-97CC-0CF0A6A6B26C}
(ThinkPad TabletDock)
Issue context is, that I'm trying to do volume fade-in:
if (breakPlayTime <= 30)
{
player.Volume = (float) breakPlayTime / 30f; // exception originates from this line - basically I'd like to do fade-in using this line
}
else
{
player.Volume = 1;
}
Here's exception stack trace:
NAudio.MmException: NoDriver calling waveOutSetVolume
w NAudio.Wave.WaveOutUtils.SetWaveOutVolume(Single value, IntPtr hWaveOut, Object lockObject)
w RTOR.RtorBreakPlayer.Start() w S:\rtor-tablet-client\RtorBreakPlayer.cs:wiersz 118
w System.Threading.ThreadHelper.ThreadStart_Context(Object state)
w System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
w System.Threading.ThreadHelper.ThreadStart()
Let me know if you need additional context related to app logic, and/or additional code snippets.
Thanks!
Sebastian
Metadata
Assignees
Labels
No labels
Activity