Comments (5)
could you please check 253
from micswitch.
With 253 I had no crash "on its own", but some cases where mute did not work (hotkey, main window, icon).
When I changed the microphone in the main window, it crashed:
`Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.
at IntPtr System.StubHelpers.StubHelpers.GetCOMIPFromRCW(object objSrc, IntPtr pCPCMD, out IntPtr ppTarget, out bool pfNeedsRelease)
at int NAudio.CoreAudioApi.Interfaces.IAudioEndpointVolume.GetMasterVolumeLevelScalar(out float pfLevel)
at float? MicSwitch.Services.MultimediaDeviceController.get_Volume() in C:/BuildAgent/work/61454f6050c7a045/Sources/MicSwitch/Services/MultimediaDeviceController.cs:line 85
at MicSwitch.MainWindow.ViewModels.MicrophoneControllerViewModel(IMMCaptureDeviceProvider deviceProvider, IFactory<IMMDeviceControllerEx, IMMDeviceProvider> deviceControllerFactory, IComplexHotkeyTracker hotkeyTracker, IFactory hotkeyTrackerFactory, IFactory hotkeyEditorFactory, IConfigProvider configProvider, IConfigProvider hotkeyConfigProvider, IScheduler uiScheduler)+((IMMDeviceController Previous, IMMDeviceController Current) x) => { } [50] in C:/BuildAgent/work/61454f6050c7a045/Sources/MicSwitch/MainWindow/ViewModels/MicrophoneControllerViewModel.cs:line 210
at void System.Reactive.AnonymousSafeObserver.OnNext(T value) in //Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs:line 54
at void System.Reactive.Linq.ObservableImpl.Scan<TSource, TAccumulate>+.OnNext(TSource value) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/Scan.cs:line 49
at void System.Reactive.Linq.ObservableImpl.Switch++InnerObserver.OnNext(TSource value) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/Switch.cs:line 104
at void System.Reactive.Subjects.Subject.OnNext(T value) in //Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:line 145
--- End of inner exception stack trace ---
at object RuntimeMethodHandle.InvokeMethod(object target, in Span arguments, Signature sig, bool constructor, bool wrapExceptions)
at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
at object Delegate.DynamicInvokeImpl(object[] args)
at void PoeShared.Scaffolding.ConcurrentNpcEventInvoker.Raise(string propertyName) in C:/BuildAgent/work/61454f6050c7a045/Sources/PoeShared/Scaffolding/ConcurrentNpcEventInvoker.cs:line 111
at void MicSwitch.Services.ComplexMMDeviceController.set_ActiveController(IMMDeviceController value) in C:/BuildAgent/work/61454f6050c7a045/Sources/MicSwitch/Services/ComplexMMDeviceController.cs:line 92
at MicSwitch.Services.ComplexMMDeviceController(IFactory<MultimediaDeviceController, IMMDeviceProvider> multimediaControllerFactory, IFactory<CollectionMMDevicesController, IReadOnlyObservableCollection> collectionControllerFactory, IMMDeviceProvider deviceProvider)+((IMMDeviceController Previous, IMMDeviceController Current) x) => { } [2] in C:/BuildAgent/work/61454f6050c7a045/Sources/MicSwitch/Services/ComplexMMDeviceController.cs:line 53
at IDisposable PoeShared.Scaffolding.ObservableExtensions.SubscribeSafe(IObservable source, Action onNext, Action onError)+(T x) => { } in C:/BuildAgent/work/61454f6050c7a045/Sources/PoeShared/Scaffolding/ObservableExtensions.cs:line 71
Message:
Exception has been thrown by the target of an invocation.StackTrace:
at object RuntimeMethodHandle.InvokeMethod(object target, in Span arguments, Signature sig, bool constructor, bool wrapExceptions)
at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
at object Delegate.DynamicInvokeImpl(object[] args)
at void PoeShared.Scaffolding.ConcurrentNpcEventInvoker.Raise(string propertyName) in C:/BuildAgent/work/61454f6050c7a045/Sources/PoeShared/Scaffolding/ConcurrentNpcEventInvoker.cs:line 111
at void MicSwitch.Services.ComplexMMDeviceController.set_ActiveController(IMMDeviceController value) in C:/BuildAgent/work/61454f6050c7a045/Sources/MicSwitch/Services/ComplexMMDeviceController.cs:line 92
at MicSwitch.Services.ComplexMMDeviceController(IFactory<MultimediaDeviceController, IMMDeviceProvider> multimediaControllerFactory, IFactory<CollectionMMDevicesController, IReadOnlyObservableCollection> collectionControllerFactory, IMMDeviceProvider deviceProvider)+((IMMDeviceController Previous, IMMDeviceController Current) x) => { } [2] in C:/BuildAgent/work/61454f6050c7a045/Sources/MicSwitch/Services/ComplexMMDeviceController.cs:line 53
at IDisposable PoeShared.Scaffolding.ObservableExtensions.SubscribeSafe(IObservable source, Action onNext, Action onError)+(T x) => { } in C:/BuildAgent/work/61454f6050c7a045/Sources/PoeShared/Scaffolding/ObservableExtensions.cs:line 71`
from micswitch.
What type of inputs/outputs are you using ? How are they connected?
from micswitch.
All these exceptions that you're getting basically mean that even if I will handle them micswitch won't be able to mute/unmute device. Probably it is related to issues with audio library that I am using (NAudio). As this issue is not reproducing on any of my PCs I won't be able to find the reason why it breaks, so you probably better try some other solution
from micswitch.
I am mainly using a Jabra headset which is connected via bluetooth.
In addition there are laptop speaker, laptop mic and camera mic available (but typically not used).
The setup is not changed since several months where MicSwitch worked without any problem. No sure when which updates of MicSwitch, Jabra and Windows were done. All are on latest versions.
from micswitch.
Related Issues (20)
- Option to lock selected microphone HOT 5
- Output volume control is lagging behind
- Frequent crashes since some weeks HOT 7
- Output device resets on every launch V1.0.253.0
- Left click mouse button...
- Doesn't mute mic HOT 3
- charch when open pc
- Overlay is not working properly HOT 2
- [workaround/documentation] - Push to talk with Discord does not work HOT 4
- After upgrading from version 1.0.242 to 1.0.253 mute does not work
- Not working for RODE NT-USB+
- Icon in Windows systray not visible with dark start menu bar
- [Feature Request] add an Onscreen Feedback option
- [Feature Request] Taskbar icon option (black / white)
- [Feature Request]Hotkey
- [Feature Request] Always On Top function HOT 3
- [bug] [Windows 10] Another icon on top of default icon. v1.0.242 HOT 2
- The microphone and volume levels are reset when the application starts HOT 16
- Sound alert stops working randomly V1.0.242.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micswitch.