aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core
AgeCommit message (Collapse)Author
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.
2022-09-13compressor: Mark params parameters as constLioncash
These functions don't modify the parameters.
2022-09-13compressor: Remove unneeded casts in ApplyCompressorEffectLioncash
Same behavior, but also silences a -Wcast-qual warning, since the second cast casts away const.
2022-09-13Remove pause callbacks from coretimingKelebek1
2022-09-12Remove a pragma once from a cpp fileKelebek1
2022-09-04Don't stall with nvdecKelebek1
2022-09-02Rework audio output, connecting AudioOut into coretiming to fix desync ↵Kelebek1
during heavy loads.
2022-08-12Do some log memes to help perceived volumeKelebek1
2022-07-29audio_core: fix -Wuninitialized when compiling with ASanLiam
2022-07-27Avoid depop out of boundsKelebek1
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-07-22Project AndioKelebek1
2022-07-10Rework CoreTimingKelebek1
2022-06-26core: Replace all instances of ResultCode with Resultgerman77
2022-06-14Merge pull request #8383 from Morph1984/shadow-of-the-pastMai
yuzu: Make variable shadowing a compile-time error
2022-06-13common: Change semantics of UNREACHABLE to unconditionally crashLiam
2022-06-13audio_core: Remove -Werror=unused-parameterMorph
Removing this as we don't enforce unused parameter warnings elsewhere in the project, and explicitly specify -Wno-unused-parameter in the main CMakeLists.
2022-06-13CMakeLists: Make variable shadowing a compile-time errorMorph
Now that the entire project is free of variable shadowing, we can enforce this as a compile time error to prevent any further introduction of this logic bug.
2022-05-13command_generator: Use u8 for tap index lutMorph
Using this smaller type saves 1024 bytes in the compiled executable.
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-01audio_core: remove time stretcherAndrea Pappacoda
Also drop the SoundTouch dependency
2022-02-11audio_core: Update current process revisionlat9nq
Update CURRENT_PROCESS_REVISION from REV9 to REVA. Used by Nintendo Entertainment System - Nintendo Switch Online 6.0.0 and Super Nintendo Entertainment System - Nintendo Switch Online 3.0.0.
2022-01-15audio/stream: Adjust volume scale factorgerman77
2021-12-05general: Add missing copyright noticesameerj
2021-10-01common/logging: Move Log::Entry declaration to a separate headerameerj
This reduces the load of requiring to include std::chrono in all files which include log.h
2021-07-12Merge pull request #6571 from Kelebek1/Mixbunnei
audio_core: Replace NaN mix volume samples with silence
2021-07-08Merge pull request #6539 from lat9nq/default-settingAmeer J
general: Move most settings' defaults and labels into their definition
2021-07-08Replace NaN mix volume samples with silence.Kelebek1
Fixes Xenoblade Chronicles 2 blowing out the audio.
2021-07-08Merge pull request #6564 from Kelebek1/AudioMorph
Support more PCM formats
2021-07-08audio_core: Preserve front channel volume after 6 to 2 downmixKelebek1
Many games report 6 channel output while only providing data for 2. We only output 2-channel audio regardless, and in the downmixing, front left/right only provide 36% of their volume. This is done assuming all of the other channels also contain valid data, but in many games they don't. This PR alters the downmixing to preserve front left/right, so volume is not lost. This improves volume in Link's Awakening, New Super Mario Bros U, Disgaea 6, Super Kirby Clash.
2021-07-06Support more PCM formats. Fixes Ys IX audio.Kelebek1