Forums
trying to play a specific part of an .ogg file - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: .NET 2.0 - 4.0 Components (/forum-8.html)
+--- Forum: AudioLab (/forum-16.html)
+--- Thread: trying to play a specific part of an .ogg file (/thread-94.html)



trying to play a specific part of an .ogg file - bullyellis - 01-11-2012 12:02 AM

I am trying to play a specific part of an .ogg file. Here is my relevant code. As I understand it, the .ogg file should start playing in the middle, unfortunately it starts at the beginning. So it is either a bug or I am using the library incorrectly.

Code:
//.ogg file is 163 samples

oggPlayer1.PlaySegment.StartSample = 80;

oggPlayer1.PlaySegment.StopSample = 163;

oggPlayer1.PlaySegment.Enabled = true;

oggPlayer1.Start();

Should the code be changed in anyway?