Lime3DS/src/audio_core
Qidi 680cbb559d
Fix aac_decoder memory leak (#1167)
* Fix aac_decoder memory leak

Only call NeAACDecInit on the first AAC frame and create new NeAACDecoder on DecoderCommand::Init request

* update license headers

* fix oversight

* reorganized code

-put open new FAAD2 AAC decoder code into a separate function
-removed LOG_INFO for open/close FAAD2 AAC decoder
-added LOG_ERROR when no decoder is created to handle decode request, either decoder creation failed or DecoderCommand::Init command not received

* Update aac_decoder.cpp

fix clang coding style check

* fix load savestate

Loading a savestate creates a situation where decode requests aren't preceded by an init request, so we open a new decoder by default in the constructor. A new AACDecoder instance is always constructed on load savestate.
2025-06-21 11:50:39 +01:00
..
hle Fix aac_decoder memory leak (#1167) 2025-06-21 11:50:39 +01:00
lle core: De-globalize HLE lock (#7212) 2023-11-28 14:15:27 -08:00
audio_types.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
CMakeLists.txt audio_core: Clean up AAC decoder infrastructure. (#7310) 2024-01-04 11:00:03 -08:00
codec.cpp codec: Make lookup table static constexpr (#5572) 2020-12-07 16:05:45 +01:00
codec.h codec: Make lookup table static constexpr (#5572) 2020-12-07 16:05:45 +01:00
cubeb_input.cpp Fallback to silence when no samples have been captured. (#955) 2025-04-19 15:21:13 +02:00
cubeb_input.h mic: Refactor microphone state and management. (#7134) 2023-11-12 13:03:07 -08:00
cubeb_sink.cpp Updated a myriad of user-facing strings to refer to Azahar, not Citra 2024-11-21 23:30:29 +00:00
cubeb_sink.h audio_core: Implement OpenAL backend (#6450) 2023-05-01 21:17:45 +02:00
dsp_interface.cpp misc: Improve defaults for macOS and handling of missing audio backends. (#7273) 2023-12-22 11:38:06 -08:00
dsp_interface.h audio_core: Only perform audio stretching if below full speed. (#7201) 2023-11-26 12:06:59 -08:00
input_details.cpp core: Eliminate more uses of Core::System::GetInstance(). (#7313) 2024-01-05 12:07:28 -08:00
input_details.h core: Eliminate more uses of Core::System::GetInstance(). (#7313) 2024-01-05 12:07:28 -08:00
input.h Fallback to silence when no samples have been captured. (#955) 2025-04-19 15:21:13 +02:00
interpolate.cpp audio_core: use nested namespaces 2019-02-17 23:41:48 -05:00
interpolate.h audio_core: use nested namespaces 2019-02-17 23:41:48 -05:00
null_input.h Fallback to silence when no samples have been captured. (#955) 2025-04-19 15:21:13 +02:00
null_sink.h audio_core: Make g_sink_details internally linked 2018-12-16 02:44:04 +01:00
openal_input.cpp Fallback to silence when no samples have been captured. (#955) 2025-04-19 15:21:13 +02:00
openal_input.h mic: Refactor microphone state and management. (#7134) 2023-11-12 13:03:07 -08:00
openal_sink.cpp Some build fixes for GCC 13.2.0 and Clang 18.1.1 (#41) 2024-11-07 14:41:32 +01:00
openal_sink.h openal: Enable AL_DIRECT_CHANNELS_SOFT when present. (#7202) 2023-11-22 23:09:22 -08:00
precompiled_headers.h Port yuzu-emu/yuzu#9300: "CMake: Use precompiled headers to improve compile times" (#6213) 2022-12-17 16:06:38 +01:00
sdl2_sink.cpp misc: fix issues pointed out by msvc (#7316) 2024-01-07 12:37:42 -08:00
sdl2_sink.h audio_core: Simplify sink interface 2018-09-08 22:09:26 +01:00
sink_details.cpp misc: Improve defaults for macOS and handling of missing audio backends. (#7273) 2023-12-22 11:38:06 -08:00
sink_details.h misc: Improve defaults for macOS and handling of missing audio backends. (#7273) 2023-12-22 11:38:06 -08:00
sink.h audio_core: Simplify sink interface 2018-09-08 22:09:26 +01:00
static_input.cpp mic: Refactor microphone state and management. (#7134) 2023-11-12 13:03:07 -08:00
static_input.h mic: Refactor microphone state and management. (#7134) 2023-11-12 13:03:07 -08:00
time_stretch.cpp audio_core: Clear time stretcher after flushing to avoid sample bleed. (#7081) 2023-10-24 17:22:10 -07:00
time_stretch.h audio_core: Clear time stretcher after flushing to avoid sample bleed. (#7081) 2023-10-24 17:22:10 -07:00