aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core
AgeCommit message (Collapse)Author
2022-11-29audio_core: sink_stream: Hold the suspend lock when process is stalled.bunnei
- Prevents us from clashing with other callers trying to un/stall.
2022-11-29CMake: Use precompiled headersameerj
2022-11-28CMake: Directly link to SDL2-static when appropriatelat9nq
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.
2022-11-22general: fix compile for Apple ClangLiam
2022-11-22Use the maximum input index for samples buffer span size, not just the input ↵Kelebek1
count
2022-11-13Add break for default casesKyle Kienapfel
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
2022-11-09Initial ARM64 supportLiam
2022-10-26audio_in/out_system: Pass Initialize members by value where applicableLioncash
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.
2022-10-22general: Resolve -Wclass-memaccessMorph
2022-10-22general: Enforce C4800 everywhere except in video_coreMorph
2022-10-22CMakeLists: Remove all redundant warningsMorph
These are already explicitly or implicitly set in src/CMakeLists.txt
2022-10-19Update audio_core for firmware 15.0.0Kelebek1
2022-10-16sdl2_sink: Inline variable init into if conditionlat9nq
Co-authored-by: Mai <mathew1800@gmail.com>
2022-10-16sdl2_sink: Distinguish between capture and non-capture device nameslat9nq
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.
2022-10-16sdl2_sink: Check for null string when loading SDL audio deviceslat9nq
Attempting to place a null string into a vector of strings causes an error that closes the application. Don't.
2022-10-14Merge pull request #9061 from liamwhite/writable-eventliamwhite
kernel: remove KWritableEvent
2022-10-14audio_core: Revert sink name to sdl2Narr the Reg
2022-10-12kernel: remove KWritableEventLiam
2022-10-09Choose the SDL audio backend when Cubeb reports too high of a latencyKelebek1
2022-10-03common: remove "yuzu:" prefix from thread namesLiam
2022-09-23Merge pull request #8941 from Kelebek1/single_core_sucksbunnei
Do not try to pause core timing from the audio thread when using single-core
2022-09-23Merge pull request #8939 from lioncash/renderMorph
audio_renderer: Make GetCommandBuffer() take a u32
2022-09-22Do not try to pause core timing from the audio thread when using single-coreKelebek1
2022-09-21audio_renderer: Make GetCommandBuffer() take a u32Lioncash
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.
2022-09-21audio_manager: Forward declare result typeLioncash
Moves the include into the cpp file to lessen header dependencies.
2022-09-21audio_manager: Remove redundant cast in ThreadFunc()Lioncash
We can just use a local here to get rid of a second cast.
2022-09-21audio_manager: move std::functions in SetOutManager/SetInManagerLioncash
Prevents unnecessary reallocations in the event the captured variables are larger than the internal std::function buffer.
2022-09-21audio_manager: Remove unused forward declarationsLioncash
Allows us to get rid of some unnecessary forward declarations and includes.
2022-09-21audio_manager: Remove unused sessions_started member variableLioncash
This isn't used, so it can be removed.
2022-09-21audio_manager: Remove dependence on system stateLioncash
This isn't used by the class, so this can be removed for the time being.
2022-09-16Merge pull request #8914 from lioncash/audio-constbunnei
audio_core: Mark several member functions as const
2022-09-16Merge pull request #8911 from lioncash/cexpr-stringMorph
audio_device: Make AudioDeviceName constructor constexpr
2022-09-16audio_renderer: Pass command buffer by const referenceLioncash
This is just being copied and isn't modified at all.
2022-09-16sink_stream: Mark GetQueueSize as constLioncash
2022-09-16node_states: Mark relevant member functions as constLioncash
2022-09-16i3dl2/reverb: Mark relevant member functions as constLioncash
These two don't modify member state.
2022-09-16behavior_info: Mark CopyErrorInfo as constLioncash
This doesn't modify member state. We can also mark the parameter of AppendError as const as well, since it isn't modified.
2022-09-16audio_device: Mark GetDeviceVolume as constLioncash
This doesn't modify instance state.
2022-09-16audio_render_manager: Mark several functions as constLioncash
2022-09-16audio_in: Mark several functions as constLioncash
These functions don't modify class state, so we can mark them as such
2022-09-16audio_out: Mark several functions as constLioncash
These don't affect class state, so we can mark them as such.
2022-09-16audio_buffers: Pass by const-ref in AppendBuffersLioncash
This function doesn't modify the passed in buffer, so we can make that explicit.
2022-09-16device_session: Convert for loop into ranged for in AppendBuffersLioncash
Simplifies the indexing code a little bit.
2022-09-16device_session: Pass arguments by const-ref in relevant functionsLioncash
These functions don't modify the passed in audio buffers, so we can signify that in the interface.
2022-09-15Merge pull request #8878 from Kelebek1/remove_pausebunnei
Remove pause callbacks from coretiming
2022-09-15Merge pull request #8901 from lioncash/docsliamwhite
audio_core: Amend documentation comment tags
2022-09-15audio_core: Amend documentation tagsLioncash
Resolves a wackload of -Wdocumentation warnings due to mismatching tags and whatnot.
2022-09-15audio_device: Mark member functions as const where applicableLioncash
These member functions don't modify any internal state.
2022-09-15audio_device: Make AudioDeviceName constructor constexprLioncash
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
2022-09-13compressor: Simplify memset in InitializeCompressorEffectLioncash
Provides equivalent behavior while being significantly smaller.