Skip to content
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

"UnspecifiedError calling waveOutOpen" #112

Closed
tgiachi opened this issue Aug 22, 2016 · 5 comments
Closed

"UnspecifiedError calling waveOutOpen" #112

tgiachi opened this issue Aug 22, 2016 · 5 comments

Comments

@tgiachi
Copy link

tgiachi commented Aug 22, 2016

Hello!,
When I play mp3 , Randomically throw this error

UnspecifiedError calling waveOutOpen

@markheath
Copy link
Contributor

This error comes from the soundcard driver itself. Are you making sure you close any previously opened WaveOut instances? Also, is there anything unusual about the sample rate or channel count of the files that won't play?

@tgiachi
Copy link
Author

tgiachi commented Aug 23, 2016

Yes, all instances are closed/disposed!. but maybe is corrupted mp3? With VLC is files are ok!

@tgiachi
Copy link
Author

tgiachi commented Aug 23, 2016

It's possibile to enable verbose debug on NAudio? Only for know where is the problem! Thanks Mark, you have done great library 😄

@markheath
Copy link
Contributor

there isn't a verbose debug setting, your error is coming from a call to the waveOutOpen API. Most useful thing you can do is look at the WaveFormat of the stream that you are initializing your WaveOut instance with. Maybe there is something strange about it.

@FutureInfinite
Copy link

I am using naudio to play audio files and is working fine. But I have a scenario where I am depositing an app on a Windows VM - and connected to it via MS RDP. I connect with audio being sent to system that the RDP is done one (i.e. client of VM). Audio will not play on client system and getting the
naudio BadDeviceId calling waveOutOpen
error in event viewer

Should it be possible to run this scenario and get audio playback on local system?

Note: I play the audio manually and comes across ok - so file is a good audio file

Peter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants