-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NAudio.MmException: NoDriver calling waveOutSetVolume #1112
Comments
Closing issue, as workaround specific to target environment was found. Code change in NAudio wouldn't do much |
whats the workaround, what did you do, I pretty much have this same problem. |
Hi @jooapa, mine workaround was basically forcing in particular audio device: for (int n = -1; n < WaveOut.DeviceCount; n++)
{
var caps = WaveOut.GetCapabilities(n);
Console.WriteLine($"{n}: {caps.ProductName}"); // in my app, I was checking if I had device called "Intel SST Audio Device"
} Since we're working with tablet devices, when we were performing WinMM calls during putting tablet to the docking station, it was switching to "ThinkPad TabletDock". This has caused loss of MM handle to original device - hence the source of During creation of WaveOutEvent, we've requested the device based on the check above: WaveOutEvent player = new WaveOutEvent {
DeviceNumber = ??? // you take the matching device number from "for" loop above
}; Mine use case is little bit different though (as you try to resume playback, we tried to set the playback volume to mimic fade-in/fade-out). I hope that this could help. |
Thanks man, bro is a legend 🙏 |
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:
Here's exception stack trace:
Let me know if you need additional context related to app logic, and/or additional code snippets.
Thanks!
Sebastian
The text was updated successfully, but these errors were encountered: