1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-18 20:52:00 +00:00

Basic audio support2

This commit is contained in:
AcK77 2018-02-08 18:20:07 +01:00
parent 9f2aea4059
commit 44a87bc78e

View file

@ -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]);