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
Kelebek1
967e5b2873
Wait for the terminate event before destroying a system instance
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
Liam
6eaef51cf2
memory: rename global memory references to application memory
3 years ago
Liam
5be8a74b0c
general: fix spelling mistakes
3 years ago
Morph
ddb330121a
core: Promote CPU/GPU threads to time critical
And also demote Audren and CoreTiming to High thread priority.
3 years ago
Liam
ea36f70e02
hle: rename legacy errors to Results
3 years ago
Kelebek1
ed68646fa7
Fix a bug with the Reverb command in reading from the pre_delay line.
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
Kelebek1
4aee835d49
Fix biquad filter command's state buffer offset
3 years ago
Kelebek1
b5421d05cd
Add fallback for memory read/write in case the address goes over a 4K page
3 years ago
Kelebek1
5c8140092f
Fix depop prepare receiving bad mix infos and writing out of bounds, and update aux a bit, may help
3 years ago
Merry
46ce21d3e2
biquad_filter: Clamp f64 in ApplyBiquadFilterFloat
3 years ago
Merry
f35302d4bf
biquad_filter: Fix rounding in ApplyBiquadFilterInt
3 years ago
Narr the Reg
326d8c0905
audio: cubeb: Fix yuzu crashing when it test for latency
3 years ago
Merry
258af9443a
upsample: Fix coefficient format
3 years ago
Merry
fb1b6948c1
audio_core: Fix off-by-one error in upsampler
3 years ago
Liam
0e00bb1111
cmake: make cubeb and SDL2 optional
3 years ago
Kelebek1
501ea58598
Signal buffer event on audio in/out system stop, and force remove all registered audio buffers
3 years ago
Liam
6f23b5f495
audio_core: remove explicitly defaulted and implicitly deleted constructors
3 years ago
Alexandre Bouvier
75f9183846
cmake: use sdl2 imported target
3 years ago
Alexandre Bouvier
325a016cd2
cmake: prefer system libraries
3 years ago
ameerj
fb155dbffc
CMake: Consolidate common PCH headers
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.
3 years ago
ameerj
bbf3e7f313
CMake: Use precompiled headers
3 years ago
lat9nq
868c5ca1cb
CMake: Directly link to SDL2-static when appropriate
Trying to be lazy and alias SDL2 to SDL2-static causes issues in later
versions of CMake. Just use the same condition to tell which one to use.
3 years ago
Liam
5a712bb51a
general: fix compile for Apple Clang
3 years ago
Kelebek1
59c4dc2f32
Use the maximum input index for samples buffer span size, not just the input count
3 years ago
Kyle Kienapfel
d886438754
Add break for default cases
Visual Studio has an option to search all files in a solution, so I
did a search in there for "default:" looking for any missing break
statements.
I've left out default statements that return something, and that throw
something, even if via ThrowInvalidType. UNREACHABLE leads towards throw
R_THROW macro leads towards a return
3 years ago
Liam
9509fb30a4
Initial ARM64 support
3 years ago
Lioncash
a8b7993c88
audio_in/out_system: Pass Initialize members by value where applicable
applet_resource_user_id isn't actually modified and is just assigned to
a member variable, so this doesn't need to be a mutable reference.
Similarly, the device name itself isn't modified and is only moved. We
pass by value here, since we can still perform the move, but eliminate a
sneaky set of calls that can unintentionally destroy the original
string. Given how nested the calls are, it's good to get rid of this
potential vector for a use-after-move bug.
3 years ago
Morph
3dd414f844
general: Resolve -Wclass-memaccess
3 years ago
Morph
9fba74d245
general: Enforce C4800 everywhere except in video_core
3 years ago
Morph
4bad20dc5f
CMakeLists: Remove all redundant warnings
These are already explicitly or implicitly set in src/CMakeLists.txt
3 years ago
Kelebek1
2da6a39c19
Update audio_core for firmware 15.0.0
3 years ago
lat9nq
87b2c9f144
sdl2_sink: Inline variable init into if condition
Co-authored-by: Mai <mathew1800@gmail.com>
3 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.
3 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.
3 years ago
Narr the Reg
34a6ec8d59
audio_core: Revert sink name to sdl2
3 years ago
Liam
09777eea76
kernel: remove KWritableEvent
3 years ago
Kelebek1
8351d39dd0
Choose the SDL audio backend when Cubeb reports too high of a latency
3 years ago
Liam
47fc168030
common: remove "yuzu:" prefix from thread names
3 years ago
Kelebek1
c8f8b9e076
Do not try to pause core timing from the audio thread when using single-core
3 years ago