mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-22 23:55:47 +00:00
Basic audio support2
This commit is contained in:
parent
9f2aea4059
commit
44a87bc78e
1 changed files with 7 additions and 5 deletions
|
@ -1,12 +1,14 @@
|
||||||
using ChocolArm64.Memory;
|
using ChocolArm64.Memory;
|
||||||
using Ryujinx.OsHle.Handles;
|
using Ryujinx.OsHle.Handles;
|
||||||
using Ryujinx.OsHle.Ipc;
|
using Ryujinx.OsHle.Ipc;
|
||||||
|
using static Ryujinx.OsHle.Objects.ObjHelper;
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using static Ryujinx.OsHle.Objects.ObjHelper;
|
|
||||||
using OpenTK.Audio;
|
using OpenTK.Audio;
|
||||||
using OpenTK.Audio.OpenAL; // https://openal.org/downloads/OpenAL11CoreSDK.zip Needed!
|
using OpenTK.Audio.OpenAL;
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Ryujinx.OsHle.Objects
|
namespace Ryujinx.OsHle.Objects
|
||||||
{
|
{
|
||||||
|
@ -52,7 +54,7 @@ namespace Ryujinx.OsHle.Objects
|
||||||
OpenALInstalled = false;
|
OpenALInstalled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(OpenALInstalled) AL.Listener(ALListenerf.Gain, (float)8.0); //Add more gain to it
|
if (OpenALInstalled) AL.Listener(ALListenerf.Gain, (float)8.0); //Add more gain to it
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -123,7 +125,7 @@ namespace Ryujinx.OsHle.Objects
|
||||||
{
|
{
|
||||||
long TempKey = 0;
|
long TempKey = 0;
|
||||||
|
|
||||||
if(KeysQueue.Count > 0)
|
if (KeysQueue.Count > 0)
|
||||||
{
|
{
|
||||||
TempKey = KeysQueue[KeysQueue.Count - 1];
|
TempKey = KeysQueue[KeysQueue.Count - 1];
|
||||||
KeysQueue.Remove(KeysQueue[KeysQueue.Count - 1]);
|
KeysQueue.Remove(KeysQueue[KeysQueue.Count - 1]);
|
||||||
|
|
Loading…
Reference in a new issue