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