mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-02 13:37:12 +02:00
Basic audio support
Implement IAudioOut. Small corrections on AudIAudioRenderer. Add glitched audio playback support through OpenAL.
This commit is contained in:
parent
64d34f2882
commit
9f2aea4059
5 changed files with 211 additions and 7 deletions
|
@ -21,10 +21,21 @@ namespace Ryujinx.OsHle.Services
|
|||
|
||||
public static long AudOutOpenAudioOut(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write(48000);
|
||||
Context.ResponseData.Write(2);
|
||||
Context.ResponseData.Write(2);
|
||||
Context.ResponseData.Write(0);
|
||||
MakeObject(Context, new AudIAudioOut());
|
||||
|
||||
Context.ResponseData.Write(48000); //Sample Rate
|
||||
Context.ResponseData.Write(2); //Channel Count
|
||||
Context.ResponseData.Write(2); //PCM Format
|
||||
/*
|
||||
0 - Invalid
|
||||
1 - INT8
|
||||
2 - INT16
|
||||
3 - INT24
|
||||
4 - INT32
|
||||
5 - PCM Float
|
||||
6 - ADPCM
|
||||
*/
|
||||
Context.ResponseData.Write(0); //Unknown
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue