I've starting to work with CLAM and have come across something that I don't understand. I started with the FilePlayback_example.cxx to get a basic idea how Audio is worked with. I changed the main loop of the program around to see what can be done with the Audio class, during one such test I did the following:<br><br>                while( reader.Do( incomingAudioChannels ) )<br>                {<br>                  count += incomingAudioChannels[0].GetSize();<br>                  time += incomingAudioChannels[0].GetDuration();<br>                 
 <br>                  for ( int i = 0; i < audioOutputs.Size(); i++ ){<br>                    audioOutputs[i].Do( incomingAudioChannels[i] );<br>                  }<br>                  std::cout << "Durr: " << incomingAudioChannels[0].GetEndTime() << "\n"; // I added this line.<br>                }<br><br><br>when I compile and run this program the first few lines output to stdout are:<br>audioMixer examples # ./FilePlayback_example blue_serge.wav <br>Durr: 23.22<br>Durr: 23.2432<br>Durr: 23.2664<br>Durr: 23.2896<br>Durr:
 23.3128<br>Durr: 23.3361<br>Durr: 23.3593<br><br><br>Shouldn't the first line be 0.002322 and aren't the subsequent lines off by 23.22?<br>It's my understanding that GetEndTime() returns the end time of the audio in ms, and that the first chunk is only 1024 samples long. Am I misunderstanding the correct use?<br><br><br>James<br><br><br><br><br><p>

<hr size=1>
<a href="http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL"> Get your own web address.</a><br> Have a HUGE year through <a href="
http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domains/?p=BESTDEAL">Yahoo! Small Business.</a>