mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-28 22:59:46 +01:00
7b66cb0d90
* audio: Cleanup SoundIO and fix OpenAL issue * fix tabs by spaces * Fix extra spaces * Fix SoundIO.cs * Fix ContainsAudioOutBuffer
30 lines
No EOL
786 B
C#
30 lines
No EOL
786 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SoundIOSharp
|
|
{
|
|
public struct SoundIOChannelArea
|
|
{
|
|
internal SoundIOChannelArea(Pointer<SoundIoChannelArea> handle)
|
|
{
|
|
this.handle = handle;
|
|
}
|
|
|
|
Pointer<SoundIoChannelArea> handle;
|
|
|
|
public IntPtr Pointer
|
|
{
|
|
get { return Marshal.ReadIntPtr(handle, ptr_offset); }
|
|
set { Marshal.WriteIntPtr(handle, ptr_offset, value); }
|
|
}
|
|
|
|
static readonly int ptr_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("ptr");
|
|
|
|
public int Step
|
|
{
|
|
get { return Marshal.ReadInt32(handle, step_offset); }
|
|
}
|
|
|
|
static readonly int step_offset = (int)Marshal.OffsetOf<SoundIoChannelArea>("step");
|
|
}
|
|
} |