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