Subject:End Playing files
Posted by: korigan
Date:2/15/2007 1:01:20 AM
Hello, Thank you for giving me advice about the best way to use the API. I've another question : is there a way to be informed when a file has ended playing ? I'd like to play several files, but I want to start one of them when the previous one is finished. Do you have something to do it ? I wanted to tell you also that you have a great tool, it's very powerful since it's linked to a compilator such as .NET. |
Subject:RE: End Playing files
Reply by: _TJ
Date:2/16/2007 11:37:10 AM
no, there is no way to be informed when playback stops. However, it is possible for you to calculate very accurately how long it should take to play. Just take the length of the file and convert from samples to seconds. using ISfFileHost file = app.CurrentFile; double dSeconds = file.PositionToSeconds(file.Length); |