Subject:SfAudioSelection
Posted by: korigan
Date:10/20/2005 3:12:55 AM
Hello, I'd like to copy for example 15sec of a wave file to another what's the best way to it ? (since SfAudioSelection use length do I have to calculate to get my 15sec ?) |
Subject:RE: SfAudioSelection
Reply by: _TJ
Date:10/21/2005 9:50:29 PM
if you have a file, then you can call it's SecondsToPosition(double dSec) method to convert an absolute time value into the proper scale for use in a SfAudioSelection() object. ... ISfFileHost file = app.CurrentFile; Int64 ccLength = file.SecondsToPosition(15.0); SfAudioSelection asel = new SfAudioSelection(0, ccLength); ... |