Play sound from WAV file at a time offset from start in C# -
Play sound from WAV file at a time offset from start in C# -
i'm trying coordinate playing sound displaying other info on graph recorded @ same time. if user drags graph forwards or backwards how can skip forwards or backward in wav file sound still coordinated? can't see time offset in apis soundplayer.
if understood question correctly, utilize wmplib.windowsmediaplayer
, add together reference "windows media player" com , set position using:
wmplib.windowsmediaplayer player = new wmplib.windowsmediaplayer(); player.url = file; //file played player.controls.play(); player.controls.currentposition = x; //set position want here when user drag
or can utilize naudio, free opensource api, download codeplex:
naudio library
c# wav audio-player soundplayer
Comments
Post a Comment