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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -