Liam
6efe1e932b
oboe_sink: implement channel count querying
3 years ago
Liam
b787b5db2e
android: add oboe audio sink
3 years ago
Liam
c0e37fa65f
audio_core: ignore renderer wait when stream is paused
3 years ago
Liam
d881c9f326
audio: fix shutdown deadlock in audio renderer
3 years ago
Liam
b12322b8fe
audio: allow more latency in cubeb initialization
3 years ago
Kelebek1
5c4e9a276f
Pre-test opening a stream for audio backends, fall back to null if not suitable.
3 years ago
lat9nq
5a2b7f951d
(ui,)settings: Use explicit instantiation
Reduces compile times a tad on clang.
3 years ago
lat9nq
78f92086ca
settings,general: Rename non-confirming enums
3 years ago
lat9nq
d39bfc646f
configure_audio: Implement ui generation
Needs a considerable amount of management specific to some of
the comoboboxes due to the audio engine configuration.
general: Partial audio config implmentation
configure_audio: Implement ui generation
Needs a considerable amount of management specific to some of
the comoboboxes due to the audio engine configuration.
general: Partial audio config implmentation
settings: Make audio settings as enums
3 years ago
Morph
885090dc13
sink_stream: Resolve heap buffer corruption due to out of bounds write
Also, remove the use of ScratchBuffer when upmixing, as other channels may not be initialized with zeroed out data.
3 years ago
Kelebek1
c7430e51e3
Remove memory allocations in some hot paths
3 years ago
Morph
2856fadaa0
core_timing: Use CNTPCT as the guest CPU tick
Previously, we were mixing the raw CPU frequency and CNTFRQ.
The raw CPU frequency (1020 MHz) should've never been used as CNTPCT (whose frequency is CNTFRQ) is the only counter available.
3 years ago
bunnei
5b8f185151
android: audio_core: sink_stream: Remove unnecessary check.
3 years ago
Liam
16bd50f9b4
audio_renderer: resolve adsp thread deadlock shutdown
3 years ago
bunnei
bbd4f9c722
android: audio_core: Avoid shutdown hang.
3 years ago
Kelebek1
29e1cdf7e1
Audren wait as suggested by ByLaws
3 years ago
Kelebek1
ba0d258a3f
Smooth out the DSP callback by adding a 5ms wait time limit
3 years ago
lat9nq
be5eee647e
yuzu-sdl,audio_core: Remove antiquated warning ignore
Issue was fixed a long time ago, both by SDL2 and in yuzu by including
SDL2 as a system library.
3 years ago
Billy Laws
6b2510c7c5
Use GetGlobalTimeNs as opposed to clock ticks
3 years ago
Billy Laws
5dbfd7861a
Add some explicit latency to sample count reporting
Some games have very tight scheduling requirements for their audio which can't really be matched on the host, adding a constant to the reported value helps to provide some leeway.
3 years ago
Billy Laws
1794a33c52
audio_core: No longer stall when sink queue is full
Now the audout and audren update rates are tied to the sink status stalling is no longer necessary.
3 years ago
Billy Laws
91d14c0022
Run clang-format
3 years ago
Billy Laws
d3f0149af2
audio: Wait for samples on the emulated DSP side to avoid desyncs
Waiting on the host side is inaccurate and leads to desyncs in the event of the sink missing a deadline that require stalls to fix. By waiting for the sink to have space before even starting rendering such desyncs can be avoided.
3 years ago
Billy Laws
7e7ad78aaf
audio: Interpolate system manager sample count using host sink sample info
This avoids the need to stall if the host sink sporadically misses the deadline, in such a case the previous implementation would report them samples as being played on-time, causing the guest to send more samples and leading to a gradual buildup.
3 years ago
arades79
60a68839ee
remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
arades79
adcef452e0
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
Liam
c68577384a
general: rename CurrentProcess to ApplicationProcess
3 years ago
Narr the Reg
326d8c0905
audio: cubeb: Fix yuzu crashing when it test for latency
3 years ago
bunnei
9ac846fece
audio_core: sink_stream: Hold the suspend lock when process is stalled.
- Prevents us from clashing with other callers trying to un/stall.
4 years ago
Liam
5a712bb51a
general: fix compile for Apple Clang
4 years ago
lat9nq
87b2c9f144
sdl2_sink: Inline variable init into if condition
Co-authored-by: Mai <mathew1800@gmail.com>
4 years ago
lat9nq
8e23f79384
sdl2_sink: Distinguish between capture and non-capture device names
The function prototype appears to care whether we are loading capture
devices or not, and SDL_GetAudioDeviceName has a parameter to use it,
but for some reason it isn't.
This puts `capture` where it goes.
4 years ago
lat9nq
4e968241f6
sdl2_sink: Check for null string when loading SDL audio devices
Attempting to place a null string into a vector of strings causes an
error that closes the application.
Don't.
4 years ago
Narr the Reg
34a6ec8d59
audio_core: Revert sink name to sdl2
4 years ago
Kelebek1
8351d39dd0
Choose the SDL audio backend when Cubeb reports too high of a latency
4 years ago
Kelebek1
c8f8b9e076
Do not try to pause core timing from the audio thread when using single-core
4 years ago
Lioncash
d4623d8dc8
sink_stream: Mark GetQueueSize as const
4 years ago
Lioncash
af8ce57e18
audio_core: Amend documentation tags
Resolves a wackload of -Wdocumentation warnings due to mismatching tags
and whatnot.
4 years ago
Kelebek1
c6d4071162
Remove pause callbacks from coretiming
4 years ago
Kelebek1
0c01ac7410
Remove a pragma once from a cpp file
4 years ago
Kelebek1
77a30f7286
Don't stall with nvdec
4 years ago
Kelebek1
c3e3874d8d
Rework audio output, connecting AudioOut into coretiming to fix desync during heavy loads.
4 years ago
Kelebek1
26353451be
Do some log memes to help perceived volume
4 years ago
Kelebek1
be1f5f1d9f
Project Andio
4 years ago