Audio: Update Documentation
This commit is contained in:
parent
dab65b13d7
commit
a3944b4603
5 changed files with 19 additions and 12 deletions
|
@ -4,9 +4,8 @@ using System.Reflection.Emit;
|
||||||
namespace Ryujinx.Audio
|
namespace Ryujinx.Audio
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper to determine the byte size of a type
|
/// Helper to determine the byte size of type <see cref="T"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
|
||||||
public static class TypeSize<T>
|
public static class TypeSize<T>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
namespace Ryujinx.Audio
|
namespace Ryujinx.Audio
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The playback state of a track
|
||||||
|
/// </summary>
|
||||||
public enum PlaybackState
|
public enum PlaybackState
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The track is currently playing
|
||||||
|
/// </summary>
|
||||||
Playing = 0,
|
Playing = 0,
|
||||||
|
/// <summary>
|
||||||
|
/// The track is currently stopped
|
||||||
|
/// </summary>
|
||||||
Stopped = 1
|
Stopped = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -56,9 +56,9 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructs a new instance of a <see cref="SoundIoAudioTrack"/>
|
/// Constructs a new instance of a <see cref="SoundIoAudioTrack"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="trackId"></param>
|
/// <param name="trackId">The track ID</param>
|
||||||
/// <param name="audioContext"></param>
|
/// <param name="audioContext">The SoundIO audio context</param>
|
||||||
/// <param name="audioDevice"></param>
|
/// <param name="audioDevice">The SoundIO audio device</param>
|
||||||
public SoundIoAudioTrack(int trackId, SoundIO audioContext, SoundIODevice audioDevice)
|
public SoundIoAudioTrack(int trackId, SoundIO audioContext, SoundIODevice audioDevice)
|
||||||
{
|
{
|
||||||
TrackID = trackId;
|
TrackID = trackId;
|
||||||
|
|
|
@ -116,8 +116,7 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the <see cref="SoundIoAudioTrack"/> associated with the specified <paramref name="trackId"/> from the pool
|
/// Retrieves the <see cref="SoundIoAudioTrack"/> associated with the specified <paramref name="trackId"/> from the pool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="trackId"></param>
|
/// <param name="trackId">The ID of the track to retrieve</param>
|
||||||
/// <returns></returns>
|
|
||||||
public SoundIoAudioTrack Get(int trackId)
|
public SoundIoAudioTrack Get(int trackId)
|
||||||
{
|
{
|
||||||
if (m_TrackList.TryGetValue(trackId, out SoundIoAudioTrack track))
|
if (m_TrackList.TryGetValue(trackId, out SoundIoAudioTrack track))
|
||||||
|
@ -129,7 +128,7 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attempers to get a <see cref="SoundIoAudioTrack"/> from the pool
|
/// Attempers to get a <see cref="SoundIoAudioTrack"/> from the pool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="track"></param>
|
/// <param name="track">The track retrieved from the pool</param>
|
||||||
/// <returns>True if retrieve was successful</returns>
|
/// <returns>True if retrieve was successful</returns>
|
||||||
public bool TryGet(out SoundIoAudioTrack track)
|
public bool TryGet(out SoundIoAudioTrack track)
|
||||||
{
|
{
|
||||||
|
@ -140,8 +139,8 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attempts to get the <see cref="SoundIoAudioTrack" /> associated with the specified <paramref name="trackId"/> from the pool
|
/// Attempts to get the <see cref="SoundIoAudioTrack" /> associated with the specified <paramref name="trackId"/> from the pool
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="trackId"></param>
|
/// <param name="trackId">The ID of the track to retrieve</param>
|
||||||
/// <param name="track"></param>
|
/// <param name="track">The track retrieved from the pool</param>
|
||||||
public bool TryGet(int trackId, out SoundIoAudioTrack track)
|
public bool TryGet(int trackId, out SoundIoAudioTrack track)
|
||||||
{
|
{
|
||||||
return m_TrackList.TryGetValue(trackId, out track);
|
return m_TrackList.TryGetValue(trackId, out track);
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructs a new instance of a <see cref="SoundIoBuffer"/>
|
/// Constructs a new instance of a <see cref="SoundIoBuffer"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="tag"></param>
|
/// <param name="tag">The buffer tag</param>
|
||||||
/// <param name="length"></param>
|
/// <param name="length">The size of the buffer</param>
|
||||||
public SoundIoBuffer(long tag, int length)
|
public SoundIoBuffer(long tag, int length)
|
||||||
{
|
{
|
||||||
Tag = tag;
|
Tag = tag;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue