audio: Cleanup Ryujinx.Audio and fix OpenAL issue (#1746)
* audio: Cleanup SoundIO and fix OpenAL issue * fix tabs by spaces * Fix extra spaces * Fix SoundIO.cs * Fix ContainsAudioOutBuffer
This commit is contained in:
parent
0108004691
commit
7b66cb0d90
25 changed files with 1459 additions and 1322 deletions
|
@ -1,61 +1,58 @@
|
|||
using System;
|
||||
namespace SoundIOSharp
|
||||
{
|
||||
public class SoundIORingBuffer : IDisposable
|
||||
{
|
||||
internal SoundIORingBuffer (IntPtr handle)
|
||||
{
|
||||
this.handle = handle;
|
||||
}
|
||||
public class SoundIORingBuffer : IDisposable
|
||||
{
|
||||
internal SoundIORingBuffer(IntPtr handle)
|
||||
{
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
IntPtr handle;
|
||||
IntPtr handle;
|
||||
|
||||
public int Capacity {
|
||||
get { return Natives.soundio_ring_buffer_capacity (handle); }
|
||||
}
|
||||
public int Capacity
|
||||
{
|
||||
get { return Natives.soundio_ring_buffer_capacity(handle); }
|
||||
}
|
||||
|
||||
public void Clear ()
|
||||
{
|
||||
Natives.soundio_ring_buffer_clear (handle);
|
||||
}
|
||||
public void Clear()
|
||||
{
|
||||
Natives.soundio_ring_buffer_clear(handle);
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
Natives.soundio_ring_buffer_destroy (handle);
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
Natives.soundio_ring_buffer_destroy(handle);
|
||||
}
|
||||
|
||||
public int FillCount {
|
||||
get {
|
||||
return Natives.soundio_ring_buffer_fill_count (handle);
|
||||
}
|
||||
}
|
||||
public int FillCount
|
||||
{
|
||||
get { return Natives.soundio_ring_buffer_fill_count(handle); }
|
||||
}
|
||||
|
||||
public int FreeCount {
|
||||
get {
|
||||
return Natives.soundio_ring_buffer_free_count (handle);
|
||||
}
|
||||
}
|
||||
public int FreeCount
|
||||
{
|
||||
get { return Natives.soundio_ring_buffer_free_count(handle); }
|
||||
}
|
||||
|
||||
public IntPtr ReadPointer {
|
||||
get {
|
||||
return Natives.soundio_ring_buffer_read_ptr (handle);
|
||||
}
|
||||
}
|
||||
public IntPtr ReadPointer
|
||||
{
|
||||
get { return Natives.soundio_ring_buffer_read_ptr(handle); }
|
||||
}
|
||||
|
||||
public IntPtr WritePointer {
|
||||
get {
|
||||
return Natives.soundio_ring_buffer_write_ptr (handle);
|
||||
}
|
||||
}
|
||||
public IntPtr WritePointer
|
||||
{
|
||||
get { return Natives.soundio_ring_buffer_write_ptr(handle); }
|
||||
}
|
||||
|
||||
public void AdvanceReadPointer (int count)
|
||||
{
|
||||
Natives.soundio_ring_buffer_advance_read_ptr (handle, count);
|
||||
}
|
||||
public void AdvanceReadPointer(int count)
|
||||
{
|
||||
Natives.soundio_ring_buffer_advance_read_ptr(handle, count);
|
||||
}
|
||||
|
||||
public void AdvanceWritePointer (int count)
|
||||
{
|
||||
Natives.soundio_ring_buffer_advance_write_ptr (handle, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
public void AdvanceWritePointer(int count)
|
||||
{
|
||||
Natives.soundio_ring_buffer_advance_write_ptr(handle, count);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue