Fernando Sahmkow
b206089ea7
Core: Clang format and other small issues.
2 years ago
Fernando Sahmkow
9db159da71
SMMU: Initial adaptation to video_core.
2 years ago
Viktor Szépe
8f8a15827f
Fix more typos
2 years ago
Liam
445d504f94
ci: fix new codespell errors
3 years ago
Kelebek1
ae492d8a74
Do not consider voice commands in time estimation, fix adpcm estimate
3 years ago
Kelebek1
0d50c09352
Fix data source version 1 command looping
3 years ago
Kelebek1
4ef3915a8c
Do not reset the command buffer command count each time
3 years ago
Kelebek1
de326e42bb
Rework ADSP into a wrapper for apps
3 years ago
Kelebek1
007b1e9652
Fix node id index in DropVoices
3 years ago
Kelebek1
42638691b5
Use spans over guest memory where possible instead of copying 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
Liam
16bd50f9b4
audio_renderer: resolve adsp thread deadlock shutdown
3 years ago
Kelebek1
ba0d258a3f
Smooth out the DSP callback by adding a 5ms wait time limit
3 years ago
Kelebek1
967e5b2873
Wait for the terminate event before destroying a system instance
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
Merry
258af9443a
upsample: Fix coefficient format
3 years ago
Merry
fb1b6948c1
audio_core: Fix off-by-one error in upsampler
3 years ago
Liam
6f23b5f495
audio_core: remove explicitly defaulted and implicitly deleted constructors
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
Morph
3dd414f844
general: Resolve -Wclass-memaccess
4 years ago
Kelebek1
2da6a39c19
Update audio_core for firmware 15.0.0
4 years ago
Liam
09777eea76
kernel: remove KWritableEvent
4 years ago
Liam
47fc168030
common: remove "yuzu:" prefix from thread names
4 years ago
Lioncash
17a8113847
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
98396de8f3
audio_renderer: Pass command buffer by const reference
This is just being copied and isn't modified at all.
4 years ago
Lioncash
80bcd1a873
node_states: Mark relevant member functions as const
4 years ago
Lioncash
f7da76494b
i3dl2/reverb: Mark relevant member functions as const
These two don't modify member state.
4 years ago
Lioncash
5629e0e145
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
a66000f077
audio_device: Mark GetDeviceVolume as const
This doesn't modify instance state.
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
Lioncash
1747b5ae6c
audio_device: Mark member functions as const where applicable
These member functions don't modify any internal state.
4 years ago
Lioncash
0f1024b334
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