First of all you could probably get a better answer here
https://github.com/filoe/cscore/issues[
^]
When it comes to your code snippet you can simplify like this
private void songProgress_ValueChanged(object sender, ValueChangedEventArgs e)
{
player.Position = TimeSpan.FromSeconds(songProgress.ProgressValue);
}
Then you put a break-point at this line and check the value of
player.Position
before and after execution of the line.
[UPDATE]
As you have the source code for the player you can debug into that code too.
public TimeSpan Position
{
get
{
if (_waveSource != null)
return _waveSource.GetPosition();
return TimeSpan.Zero;
}
set
{
if (_waveSource != null)
_waveSource.SetPosition(value);
}
}
I guess you have to dig into
IWaveSource.SetPosition
as well to see what happens there.
The only other thing I can think of is that the slider control is behaving strangely, but that seems unlikely.
Also check if you have any event going on when you release the mouse.