Giter Site home page Giter Site logo

Comments (5)

iXab3r avatar iXab3r commented on June 23, 2024

could you please check 253

from micswitch.

nametobechosen avatar nametobechosen commented on June 23, 2024

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.

iXab3r avatar iXab3r commented on June 23, 2024

What type of inputs/outputs are you using ? How are they connected?

from micswitch.

iXab3r avatar iXab3r commented on June 23, 2024

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.

nametobechosen avatar nametobechosen commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.