Skip to content

Commit

Permalink
Make the VideoPlayer track extensions public
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Jan 2, 2025
1 parent 5418901 commit 8fb847d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Media/Xiph/Video.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ public static Video FromUriEXT(Uri uri, GraphicsDevice graphicsDevice)
return new Video(path, graphicsDevice);
}

// FIXME: These should be in VideoPlayer instead!

internal int audioTrack = -1;
internal int videoTrack = -1;
internal VideoPlayer parent;
Expand Down
7 changes: 3 additions & 4 deletions src/Media/Xiph/VideoPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -824,20 +824,19 @@ public void Resume()

#endregion

#region Internal Extensions
#region Public Extensions

// FIXME: These should replace the Video extensions!
// FIXME: Maybe store these to carry over to future videos?

internal void SetAudioTrackEXT(int track)
public void SetAudioTrackEXT(int track)
{
if (theora != IntPtr.Zero)
{
Theorafile.tf_setaudiotrack(theora, track);
}
}

internal void SetVideoTrackEXT(int track)
public void SetVideoTrackEXT(int track)
{
if (theora != IntPtr.Zero)
{
Expand Down

0 comments on commit 8fb847d

Please sign in to comment.