2020-08-18 01:49:37 +00:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2021-02-26 00:11:56 +00:00
|
|
|
namespace Ryujinx.Audio.Common
|
2020-08-18 01:49:37 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
/// Audio user buffer.
|
2020-08-18 01:49:37 +00:00
|
|
|
/// </summary>
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
2021-02-26 00:11:56 +00:00
|
|
|
public struct AudioUserBuffer
|
2020-08-18 01:49:37 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
/// Pointer to the next buffer (ignored).
|
|
|
|
/// </summary>
|
|
|
|
public ulong NextBuffer;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Pointer to the user samples.
|
2020-08-18 01:49:37 +00:00
|
|
|
/// </summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
public ulong Data;
|
2020-08-18 01:49:37 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
/// Capacity of the buffer (unused).
|
2020-08-18 01:49:37 +00:00
|
|
|
/// </summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
public ulong Capacity;
|
2020-08-18 01:49:37 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
/// Size of the user samples region.
|
2020-08-18 01:49:37 +00:00
|
|
|
/// </summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
public ulong DataSize;
|
2020-08-18 01:49:37 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
/// Offset in the user samples region (unused).
|
2020-08-18 01:49:37 +00:00
|
|
|
/// </summary>
|
2021-02-26 00:11:56 +00:00
|
|
|
public ulong DataOffset;
|
2020-08-18 01:49:37 +00:00
|
|
|
}
|
|
|
|
}
|