Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
56f1dc8d
There was an error fetching the commit references. Please try again later.
Commit
56f1dc8d
authored
2 years ago
by
Kelebek1
Browse files
Options
Downloads
Patches
Plain Diff
Implement AudRenU:RequestUpdateAuto, and use C descriptors when B reports as empty.
parent
2e58491c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/service/audio/audren_u.cpp
+21
-6
21 additions, 6 deletions
src/core/hle/service/audio/audren_u.cpp
with
21 additions
and
6 deletions
src/core/hle/service/audio/audren_u.cpp
+
21
−
6
View file @
56f1dc8d
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
{
7
,
&
IAudioRenderer
::
QuerySystemEvent
,
"QuerySystemEvent"
},
{
7
,
&
IAudioRenderer
::
QuerySystemEvent
,
"QuerySystemEvent"
},
{
8
,
&
IAudioRenderer
::
SetRenderingTimeLimit
,
"SetRenderingTimeLimit"
},
{
8
,
&
IAudioRenderer
::
SetRenderingTimeLimit
,
"SetRenderingTimeLimit"
},
{
9
,
&
IAudioRenderer
::
GetRenderingTimeLimit
,
"GetRenderingTimeLimit"
},
{
9
,
&
IAudioRenderer
::
GetRenderingTimeLimit
,
"GetRenderingTimeLimit"
},
{
10
,
nullptr
,
"RequestUpdateAuto"
},
{
10
,
&
IAudioRenderer
::
RequestUpdate
,
"RequestUpdateAuto"
},
{
11
,
nullptr
,
"ExecuteAudioRendererRendering"
},
{
11
,
nullptr
,
"ExecuteAudioRendererRendering"
},
};
};
// clang-format on
// clang-format on
...
@@ -113,15 +113,30 @@ private:
...
@@ -113,15 +113,30 @@ private:
// These buffers are written manually to avoid an issue with WriteBuffer throwing errors for
// These buffers are written manually to avoid an issue with WriteBuffer throwing errors for
// checking size 0. Performance size is 0 for most games.
// checking size 0. Performance size is 0 for most games.
const
auto
buffers
{
ctx
.
BufferDescriptorB
()};
std
::
vector
<
u8
>
output
(
buffers
[
0
].
Size
(),
0
);
std
::
vector
<
u8
>
output
{};
std
::
vector
<
u8
>
performance
(
buffers
[
1
].
Size
(),
0
);
std
::
vector
<
u8
>
performance
{};
auto
is_buffer_b
{
ctx
.
BufferDescriptorB
()[
0
].
Size
()
!=
0
};
if
(
is_buffer_b
)
{
const
auto
buffersB
{
ctx
.
BufferDescriptorB
()};
output
.
resize
(
buffersB
[
0
].
Size
(),
0
);
performance
.
resize
(
buffersB
[
1
].
Size
(),
0
);
}
else
{
const
auto
buffersC
{
ctx
.
BufferDescriptorC
()};
output
.
resize
(
buffersC
[
0
].
Size
(),
0
);
performance
.
resize
(
buffersC
[
1
].
Size
(),
0
);
}
auto
result
=
impl
->
RequestUpdate
(
input
,
performance
,
output
);
auto
result
=
impl
->
RequestUpdate
(
input
,
performance
,
output
);
if
(
result
.
IsSuccess
())
{
if
(
result
.
IsSuccess
())
{
ctx
.
WriteBufferB
(
output
.
data
(),
output
.
size
(),
0
);
if
(
is_buffer_b
)
{
ctx
.
WriteBufferB
(
performance
.
data
(),
performance
.
size
(),
1
);
ctx
.
WriteBufferB
(
output
.
data
(),
output
.
size
(),
0
);
ctx
.
WriteBufferB
(
performance
.
data
(),
performance
.
size
(),
1
);
}
else
{
ctx
.
WriteBufferC
(
output
.
data
(),
output
.
size
(),
0
);
ctx
.
WriteBufferC
(
performance
.
data
(),
performance
.
size
(),
1
);
}
}
else
{
}
else
{
LOG_ERROR
(
Service_Audio
,
"RequestUpdate failed error 0x{:02X}!"
,
result
.
description
);
LOG_ERROR
(
Service_Audio
,
"RequestUpdate failed error 0x{:02X}!"
,
result
.
description
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment