Code Monkey home page Code Monkey logo

Comments (7)

filoe avatar filoe commented on July 17, 2024

Thanks for reporting, but I would need the stacktrace to reproduce the issue.

from cscore.

DeadSix27 avatar DeadSix27 commented on July 17, 2024

EDIT: CSCore was built from newest commit: 18ba6ea

Here is the stacktrace:

System.ArgumentOutOfRangeException wurde nicht behandelt.
  HResult=-2146233086
  Message=Specified argument was out of the range of valid values.
Parameter name: count
  Source=CSCore
  ParamName=count
  StackTrace:
       at CSCore.Extensions.ReadBytes(IWaveSource waveSource, Int32 count) in *cscore-master\CSCore\Extensions.cs:line 295
       at CSCore.Codecs.FLAC.FlacFile.set_Position(Int64 value) in *cscore-master\CSCore\Codecs\FLAC\FlacFile.cs:line 338
       at *.MainWindow.Slider_DragCompleted(Object sender, DragCompletedEventArgs e) in **\MainWindow.xaml.cs:line 84
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.Controls.Primitives.Thumb.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run()
       at *.App.Main() in **\obj\x64\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Need anything else?

from cscore.

filoe avatar filoe commented on July 17, 2024

Should work fine now. Could you please test it and give me a short feedback?

from cscore.

DeadSix27 avatar DeadSix27 commented on July 17, 2024

EDIT: Guess the new issue is the Windows 10 64bit Issue reported by that other person. I will test it on Win7 Later and add a new edit to this post.

But for your information about the new(win10 issue) its caused by WasapiOut on my System running Windows 10 Enterprise 64bit

Original Message:

After compiling your fix @ 3c74f39

I get the following exception, (but read edit @ top of comment):

System.ArgumentOutOfRangeException was unhandled by user code
  HResult=-2146233086
  Message=Specified argument was out of the range of valid values.
Parameter name: value
  Source=CSCore
  ParamName=value
  StackTrace:
       at CSCore.SoundOut.WasapiOut.set_Latency(Int32 value) in *\cscore-master\CSCore\SoundOut\WasapiOut.cs:line 176
       at CSCore.SoundOut.WasapiOut.InitializeInternal() in *\cscore-master\CSCore\SoundOut\WasapiOut.cs:line 570
       at CSCore.SoundOut.WasapiOut.Initialize(IWaveSource source) in *\cscore-master\CSCore\SoundOut\WasapiOut.cs:line 215
       at *.MainWindow.player_DoWork(Object sender, DoWorkEventArgs e) in *\MainWindow.xaml.cs:line 179
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
  InnerException: 

from cscore.

filoe avatar filoe commented on July 17, 2024

This is a known issue on windows 10 caused by completely different behaviour of wasapi. Going to release a fix for windows 10 soon. But would still like to know why wasapi got this new, weird behaviour.

Please give me some feedback regarding the flac issue.

from cscore.

DeadSix27 avatar DeadSix27 commented on July 17, 2024

Ok, I tested it on Windows 8.1 64bit (N + with media pack installed) works fine now after your fix.

from cscore.

filoe avatar filoe commented on July 17, 2024

Thanks. Issue #11 should also be fixed.

from cscore.

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.