Kelebek1
6f7cb69c94
Use spans over guest memory where possible instead of copying data.
3 years ago
Kelebek1
5da70f7197
Remove memory allocations in some hot paths
3 years ago
Morph
8e56a84566
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
Liam
e96a3a1713
audio_renderer: resolve adsp thread deadlock shutdown
3 years ago
Kelebek1
d75bcdd077
Smooth out the DSP callback by adding a 5ms wait time limit
3 years ago
Kelebek1
2feb40f14d
Wait for the terminate event before destroying a system instance
3 years ago
Billy Laws
237934b736
Run clang-format
3 years ago
Billy Laws
ea5dd02db9
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
d8fc3f403b
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
41d99aa89d
memory: rename global memory references to application memory
3 years ago
Liam
600f325d87
general: fix spelling mistakes
3 years ago
Morph
3053a62375
core: Promote CPU/GPU threads to time critical
And also demote Audren and CoreTiming to High thread priority.
3 years ago
Liam
1d0fe75e7c
hle: rename legacy errors to Results
3 years ago
Kelebek1
104cb6aa0a
Fix a bug with the Reverb command in reading from the pre_delay line.
3 years ago
arades79
683019878f
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
45e13b03f3
add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
Liam
ceda2d280e
general: rename CurrentProcess to ApplicationProcess
3 years ago
Kelebek1
3a90ed99be
Fix biquad filter command's state buffer offset
3 years ago
Kelebek1
2e02ed8bb5
Add fallback for memory read/write in case the address goes over a 4K page
3 years ago
Kelebek1
19e1ea6a02
Fix depop prepare receiving bad mix infos and writing out of bounds, and update aux a bit, may help
3 years ago
Merry
3c60bc36a1
biquad_filter: Clamp f64 in ApplyBiquadFilterFloat
3 years ago
Merry
9bdcb1070f
biquad_filter: Fix rounding in ApplyBiquadFilterInt
3 years ago
Merry
a0e8e5b22e
upsample: Fix coefficient format
3 years ago
Merry
122a8faa38
audio_core: Fix off-by-one error in upsampler
3 years ago
Liam
e532b74e11
audio_core: remove explicitly defaulted and implicitly deleted constructors
3 years ago
Liam
9737615948
general: fix compile for Apple Clang
4 years ago
Kelebek1
84d4da89a5
Use the maximum input index for samples buffer span size, not just the input count
4 years ago
Kyle Kienapfel
6fa3faec65
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
4 years ago
Morph
6908ea2284
general: Resolve -Wclass-memaccess
4 years ago
Kelebek1
7bd3930939
Update audio_core for firmware 15.0.0
4 years ago
Liam
a9ace6856d
kernel: remove KWritableEvent
4 years ago
Liam
35d3e7db2a
common: remove "yuzu:" prefix from thread names
4 years ago
Lioncash
c891497b61
audio_renderer: Make GetCommandBuffer() take a u32
This function is only ever called with unsigned types, and all of the
other interface functions take session_id as a u32, so this makes the
class a little more consistent.
4 years ago
Lioncash
7e3cdfc453
audio_renderer: Pass command buffer by const reference
This is just being copied and isn't modified at all.
4 years ago
Lioncash
6b1cb73350
node_states: Mark relevant member functions as const
4 years ago
Lioncash
e4bc7b8611
i3dl2/reverb: Mark relevant member functions as const
These two don't modify member state.
4 years ago
Lioncash
b2c2138af7
behavior_info: Mark CopyErrorInfo as const
This doesn't modify member state.
We can also mark the parameter of AppendError as const as well, since it
isn't modified.
4 years ago
Lioncash
b862d5d8d8
audio_device: Mark GetDeviceVolume as const
This doesn't modify instance state.
4 years ago
Lioncash
2c91fbf7f1
audio_core: Amend documentation tags
Resolves a wackload of -Wdocumentation warnings due to mismatching tags
and whatnot.
4 years ago
Lioncash
d55046c5e9
audio_device: Mark member functions as const where applicable
These member functions don't modify any internal state.
4 years ago
Lioncash
1c7dae966d
audio_device: Make AudioDeviceName constructor constexpr
These are used as read-only arrays, so we can make the data read-only
and available at compile-time.
Now constructing an AudioDevice no longer needs to initialize some
tables
4 years ago
Lioncash
f08046f4d7
compressor: Simplify memset in InitializeCompressorEffect
Provides equivalent behavior while being significantly smaller.
4 years ago
Lioncash
fd876f200f
compressor: Mark params parameters as const
These functions don't modify the parameters.
4 years ago
Lioncash
bdb866af1d
compressor: Remove unneeded casts in ApplyCompressorEffect
Same behavior, but also silences a -Wcast-qual warning, since the second
cast casts away const.
4 years ago
Kelebek1
e93e898df5
Remove pause callbacks from coretiming
4 years ago
Kelebek1
ea9ff71725
Rework audio output, connecting AudioOut into coretiming to fix desync during heavy loads.
4 years ago
Liam
73a87edc45
audio_core: fix -Wuninitialized when compiling with ASan
4 years ago
Kelebek1
6c47b43a60
Avoid depop out of bounds
4 years ago
Kelebek1
458da8a948
Project Andio
4 years ago