Hello,
I want to play a .wav file using the SoundPlayer Class(OpenNETCF.Media) and right afterwards a video file.
The problem is that i cannot find a mechanism to control whether the .wav file is completed or not in order to start playing the video file so the video starts while the sound file is still playing.
I didn't find any event in the SoundPlayer Class that could be fired when the sound file is completed and i didn't find also a property that holds the state (playing or stopped) of the file.
The Player Class (OpenNETCF.Media.WaveAudio) provides the above event and property but takes a stream as an argument and not a file which i think is easier to handle than streams.
Should i work with the Player Class and define streams(how do i define them ) or is there a way to do this with SoundPlayer Class and work with files
George

Problem with OpenNetCF SoundPlayer/Player Classes
M.D.A
SoundPlayer.PlaySync will block until the audio has finished playing
Peter
mickdelaney
The stream is easily created from a file using:
Stream stm = File.OpenRead(filePath)
The event that signifies the end of playback is called DonePlaying