-
Notifications
You must be signed in to change notification settings - Fork 451
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
CSCore.CoreAudioAPI.CoreAudioAPIException (0x80070057): IAudioClient::Initialize caused an error: 0x80070057, "The parameter is incorrect.". #272
Comments
Please provide at least some code which causes the error. |
Hello filoe;
As it's shown above in the code, everything is the exact same as in the example "Recorder", except for changing the function name from "StartCapture" to "ReadyMode" and I triggered it on Form Shown instead of button Click... The program works just fine on Windows 10, but the exception occurs on Windows 8.1 (I didn't try the app on Windows 8 nor 7 as I don't have any PC that works with either of them) |
Are you using loopback capture? Is it reproduceable with the Recorder Sample? |
I can't say Yes definitely, but I set the default capture value (property) to loopback, before the User interferes in changing the ComboBox selection (after the form_shown Completed)
Everything in the form is the same as in your "Recorder" sample |
Well the problem is that I can't reproduce it. The details from msdn regarding your error:
I'm sorry but I really can't help you on this since I've got no idea. You're more or less on your own to determine what causes the error. 😒 |
Well, I used your sample "Recorder" On Windows 8.1 where the Exception occurs on my application, to check whether the Exception occurs due to something in my app or anything else... so now I open your sample "Recorder":
If there's any other thing I can do to help you in finding the reason please let me know, because sooner or later somebody else will face the same problem on their Windows 8.1 Machine, unless they are lucky. |
Would need these information. Maybe we can find a solution. |
I get this error on some Laptops, not all... while the Audio settings (Sound Card options) on all Computers are one the same...
This error doesn't occur On Windows 10 , while on Windows 8.1 it occurs:
This is the thrown Exception:
CSCore.CoreAudioAPI.CoreAudioAPIException (0x80070057): IAudioClient::Initialize caused an error: 0x80070057, "The parameter is incorrect.". at CSCore.CoreAudioAPI.AudioClient.Initialize(AudioClientShareMode shareMode, AudioClientStreamFlags streamFlags, Int64 hnsBufferDuration, Int64 hnsPeriodicity, WaveFormat waveFormat, Guid audioSessionGuid) at CSCore.SoundIn.WasapiCapture.InitializeInternal() at CSCore.SoundIn.WasapiCapture.Initialize() at application.recordForm.ReadyMode() at application.recordForm.recordForm_Shown(Object sender, EventArgs e) at System.Windows.Forms.Form.OnShown(EventArgs e) at System.Windows.Forms.Form.CallShownEvent() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
Any clue about what might be the reason?
The text was updated successfully, but these errors were encountered: