summaryrefslogtreecommitdiff
path: root/src/audio_core (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Signal buffer event on audio in/out system stop, and force remove all ↵Gravatar Kelebek12022-12-165-7/+26
| | | | registered audio buffers
* audio_core: remove explicitly defaulted and implicitly deleted constructorsGravatar Liam2022-12-102-2/+0
|
* cmake: use sdl2 imported targetGravatar Alexandre Bouvier2022-12-061-5/+1
|
* cmake: prefer system librariesGravatar Alexandre Bouvier2022-12-041-2/+2
|
* Merge pull request #9300 from ameerj/pchGravatar liamwhite2022-12-032-0/+11
|\ | | | | CMake: Use precompiled headers to improve compile times
| * CMake: Consolidate common PCH headersGravatar ameerj2022-11-301-7/+1
| |
| * CMake: Use precompiled headersGravatar ameerj2022-11-292-0/+17
| |
* | Merge pull request #9289 from liamwhite/fruit-companyGravatar liamwhite2022-12-039-4/+14
|\ \ | | | | | | general: fix compile for Apple Clang
| * | general: fix compile for Apple ClangGravatar Liam2022-11-229-4/+14
| | |
* | | Merge pull request #9320 from yuzu-emu/fix-audio-suspendGravatar Fernando S2022-11-302-7/+9
|\ \ \ | | | | | | | | AudioCore: Take suspend lock when stalling the running process.
| * | | audio_core: sink_stream: Hold the suspend lock when process is stalled.Gravatar bunnei2022-11-292-7/+9
| |/ / | | | | | | | | | - Prevents us from clashing with other callers trying to un/stall.
* | / CMake: Directly link to SDL2-static when appropriateGravatar lat9nq2022-11-281-1/+5
| |/ |/| | | | | | | 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.
* | Use the maximum input index for samples buffer span size, not just the input ↵Gravatar Kelebek12022-11-221-6/+8
|/ | | | count
* Add break for default casesGravatar Kyle Kienapfel2022-11-131-0/+1
| | | | | | | | | | | 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
* Initial ARM64 supportGravatar Liam2022-11-091-1/+1
|
* audio_in/out_system: Pass Initialize members by value where applicableGravatar Lioncash2022-10-264-6/+6
| | | | | | | | | | | 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.
* general: Resolve -Wclass-memaccessGravatar Morph2022-10-223-3/+3
|
* general: Enforce C4800 everywhere except in video_coreGravatar Morph2022-10-221-0/+1
|
* CMakeLists: Remove all redundant warningsGravatar Morph2022-10-221-10/+0
| | | | These are already explicitly or implicitly set in src/CMakeLists.txt
* Update audio_core for firmware 15.0.0Gravatar Kelebek12022-10-193-33/+72
|
* sdl2_sink: Inline variable init into if conditionGravatar lat9nq2022-10-161-2/+1
| | | | Co-authored-by: Mai <mathew1800@gmail.com>
* sdl2_sink: Distinguish between capture and non-capture device namesGravatar lat9nq2022-10-161-1/+1
| | | | | | | | 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.
* sdl2_sink: Check for null string when loading SDL audio devicesGravatar lat9nq2022-10-161-1/+4
| | | | | | | Attempting to place a null string into a vector of strings causes an error that closes the application. Don't.
* Merge pull request #9061 from liamwhite/writable-eventGravatar liamwhite2022-10-143-8/+8
|\ | | | | kernel: remove KWritableEvent
| * kernel: remove KWritableEventGravatar Liam2022-10-123-8/+8
| |
* | audio_core: Revert sink name to sdl2Gravatar Narr the Reg2022-10-141-2/+2
| |
* | Choose the SDL audio backend when Cubeb reports too high of a latencyGravatar Kelebek12022-10-096-30/+93
|/
* common: remove "yuzu:" prefix from thread namesGravatar Liam2022-10-032-2/+2
|
* Merge pull request #8941 from Kelebek1/single_core_sucksGravatar bunnei2022-09-231-2/+7
|\ | | | | Do not try to pause core timing from the audio thread when using single-core
| * Do not try to pause core timing from the audio thread when using single-coreGravatar Kelebek12022-09-221-2/+7
| |
* | Merge pull request #8939 from lioncash/renderGravatar Morph2022-09-232-2/+2
|\ \ | | | | | | audio_renderer: Make GetCommandBuffer() take a u32
| * | audio_renderer: Make GetCommandBuffer() take a u32Gravatar Lioncash2022-09-212-2/+2
| |/ | | | | | | | | | | 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.
* | audio_manager: Forward declare result typeGravatar Lioncash2022-09-212-1/+3
| | | | | | | | Moves the include into the cpp file to lessen header dependencies.
* | audio_manager: Remove redundant cast in ThreadFunc()Gravatar Lioncash2022-09-211-3/+5
| | | | | | | | We can just use a local here to get rid of a second cast.
* | audio_manager: move std::functions in SetOutManager/SetInManagerGravatar Lioncash2022-09-211-2/+2
| | | | | | | | | | Prevents unnecessary reallocations in the event the captured variables are larger than the internal std::function buffer.
* | audio_manager: Remove unused forward declarationsGravatar Lioncash2022-09-212-10/+0
| | | | | | | | | | Allows us to get rid of some unnecessary forward declarations and includes.
* | audio_manager: Remove unused sessions_started member variableGravatar Lioncash2022-09-211-2/+0
| | | | | | | | This isn't used, so it can be removed.
* | audio_manager: Remove dependence on system stateGravatar Lioncash2022-09-213-10/+4
|/ | | | This isn't used by the class, so this can be removed for the time being.
* Merge pull request #8914 from lioncash/audio-constGravatar bunnei2022-09-1625-82/+87
|\ | | | | audio_core: Mark several member functions as const
| * audio_renderer: Pass command buffer by const referenceGravatar Lioncash2022-09-164-4/+4
| | | | | | | | This is just being copied and isn't modified at all.
| * sink_stream: Mark GetQueueSize as constGravatar Lioncash2022-09-161-1/+1
| |
| * node_states: Mark relevant member functions as constGravatar Lioncash2022-09-161-2/+2
| |
| * i3dl2/reverb: Mark relevant member functions as constGravatar Lioncash2022-09-162-4/+4
| | | | | | | | These two don't modify member state.
| * behavior_info: Mark CopyErrorInfo as constGravatar Lioncash2022-09-164-6/+6
| | | | | | | | | | | | | | This doesn't modify member state. We can also mark the parameter of AppendError as const as well, since it isn't modified.
| * audio_device: Mark GetDeviceVolume as constGravatar Lioncash2022-09-162-2/+2
| | | | | | | | This doesn't modify instance state.
| * audio_render_manager: Mark several functions as constGravatar Lioncash2022-09-162-6/+6
| |
| * audio_in: Mark several functions as constGravatar Lioncash2022-09-164-18/+18
| | | | | | | | These functions don't modify class state, so we can mark them as such
| * audio_out: Mark several functions as constGravatar Lioncash2022-09-164-16/+17
| | | | | | | | These don't affect class state, so we can mark them as such.
| * audio_buffers: Pass by const-ref in AppendBuffersGravatar Lioncash2022-09-163-13/+17
| | | | | | | | | | This function doesn't modify the passed in buffer, so we can make that explicit.
| * device_session: Convert for loop into ranged for in AppendBuffersGravatar Lioncash2022-09-161-5/+5
| | | | | | | | Simplifies the indexing code a little bit.