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
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.
3 years ago
Lioncash
b224cf3809
audio_manager: Forward declare result type
Moves the include into the cpp file to lessen header dependencies.
3 years ago
Lioncash
bf679951d1
audio_manager: Remove redundant cast in ThreadFunc()
We can just use a local here to get rid of a second cast.
3 years ago
Lioncash
d268f6fc9e
audio_manager: move std::functions in SetOutManager/SetInManager
Prevents unnecessary reallocations in the event the captured variables
are larger than the internal std::function buffer.
3 years ago
Lioncash
6ac5fbc81b
audio_manager: Remove unused forward declarations
Allows us to get rid of some unnecessary forward declarations and
includes.
3 years ago
Lioncash
d10f7af6cb
audio_manager: Remove unused sessions_started member variable
This isn't used, so it can be removed.
3 years ago
Lioncash
1019e52885
audio_manager: Remove dependence on system state
This isn't used by the class, so this can be removed for the time being.
3 years ago
Lioncash
98396de8f3
audio_renderer: Pass command buffer by const reference
This is just being copied and isn't modified at all.
3 years ago
Lioncash
d4623d8dc8
sink_stream: Mark GetQueueSize as const
3 years ago
Lioncash
80bcd1a873
node_states: Mark relevant member functions as const
3 years ago
Lioncash
f7da76494b
i3dl2/reverb: Mark relevant member functions as const
These two don't modify member state.
3 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.
3 years ago
Lioncash
a66000f077
audio_device: Mark GetDeviceVolume as const
This doesn't modify instance state.
3 years ago
Lioncash
7ed5490b2f
audio_render_manager: Mark several functions as const
3 years ago
Lioncash
7ee4876f17
audio_in: Mark several functions as const
These functions don't modify class state, so we can mark them as such
3 years ago
Lioncash
1e6ce3d3c9
audio_out: Mark several functions as const
These don't affect class state, so we can mark them as such.
3 years ago
Lioncash
12b4a200e9
audio_buffers: Pass by const-ref in AppendBuffers
This function doesn't modify the passed in buffer, so we can make that
explicit.
3 years ago
Lioncash
f726bcbf56
device_session: Convert for loop into ranged for in AppendBuffers
Simplifies the indexing code a little bit.
3 years ago
Lioncash
0bf42e31e4
device_session: Pass arguments by const-ref in relevant functions
These functions don't modify the passed in audio buffers, so we can
signify that in the interface.
3 years ago
Lioncash
af8ce57e18
audio_core: Amend documentation tags
Resolves a wackload of -Wdocumentation warnings due to mismatching tags
and whatnot.
3 years ago
Lioncash
1747b5ae6c
audio_device: Mark member functions as const where applicable
These member functions don't modify any internal state.
3 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
3 years ago
Lioncash
b3c364d18b
compressor: Simplify memset in InitializeCompressorEffect
Provides equivalent behavior while being significantly smaller.
3 years ago
Lioncash
d145c663c3
compressor: Mark params parameters as const
These functions don't modify the parameters.
3 years ago