Forums

Full Version: trying to play a specific part of an .ogg file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

bullyellis

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?
Reference URL's