# Copyright (c) 2026 Dominic Masters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # Sources target_sources(${DUSK_LIBRARY_TARGET_NAME} PUBLIC audiodolphin.c audiostreamdolphin.c ) # No hardware MP3 decoder used on Dolphin (see audiostreammp3decoder.h's # own comment on why libogc's MP3Player wrapper isn't a fit) - use the # same shared libmad-based software backend as Linux, sourced directly # from src/dusk/audio rather than through its own unconditional # CMakeLists.txt so platforms with a hardware decoder (PSP) never pull # libmad in at all. Unlike Linux, libmad here comes bundled with the # devkitPPC/libogc toolchain itself (see cmake/targets/dolphin.cmake's # own "mad" link entry) rather than via find_package() - unnecessary # for, and not reliable when cross-compiling. target_sources(${DUSK_LIBRARY_TARGET_NAME} PUBLIC "${DUSK_SOURCES_DIR}/dusk/audio/stream/audiostreammp3decodersw.c" )