Add fdk-aac & AAC request structure
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -76,3 +76,6 @@
|
|||||||
[submodule "third_party/metal-cpp"]
|
[submodule "third_party/metal-cpp"]
|
||||||
path = third_party/metal-cpp
|
path = third_party/metal-cpp
|
||||||
url = https://github.com/Panda3DS-emu/metal-cpp
|
url = https://github.com/Panda3DS-emu/metal-cpp
|
||||||
|
[submodule "third_party/fdk-aac"]
|
||||||
|
path = third_party/fdk-aac
|
||||||
|
url = https://github.com/mstorsjo/fdk-aac/
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(third_party/teakra EXCLUDE_FROM_ALL)
|
add_subdirectory(third_party/teakra EXCLUDE_FROM_ALL)
|
||||||
|
add_subdirectory(third_party/fdk-aac)
|
||||||
|
|
||||||
set(CAPSTONE_ARCHITECTURE_DEFAULT OFF)
|
set(CAPSTONE_ARCHITECTURE_DEFAULT OFF)
|
||||||
set(CAPSTONE_ARM_SUPPORT ON)
|
set(CAPSTONE_ARM_SUPPORT ON)
|
||||||
@@ -478,7 +479,7 @@ set(ALL_SOURCES ${SOURCE_FILES} ${FS_SOURCE_FILES} ${CRYPTO_SOURCE_FILES} ${KERN
|
|||||||
${AUDIO_SOURCE_FILES} ${HEADER_FILES} ${FRONTEND_HEADER_FILES})
|
${AUDIO_SOURCE_FILES} ${HEADER_FILES} ${FRONTEND_HEADER_FILES})
|
||||||
target_sources(AlberCore PRIVATE ${ALL_SOURCES})
|
target_sources(AlberCore PRIVATE ${ALL_SOURCES})
|
||||||
|
|
||||||
target_link_libraries(AlberCore PRIVATE dynarmic cryptopp glad resources_console_fonts teakra)
|
target_link_libraries(AlberCore PRIVATE dynarmic cryptopp glad resources_console_fonts teakra fdk-aac)
|
||||||
target_link_libraries(AlberCore PUBLIC glad capstone)
|
target_link_libraries(AlberCore PUBLIC glad capstone)
|
||||||
|
|
||||||
if(ENABLE_DISCORD_RPC AND NOT ANDROID)
|
if(ENABLE_DISCORD_RPC AND NOT ANDROID)
|
||||||
|
|||||||
@@ -54,6 +54,13 @@ namespace Audio::AAC {
|
|||||||
u32_le sampleCount;
|
u32_le sampleCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct DecodeRequest {
|
||||||
|
u32_le address; // Address of input AAC stream
|
||||||
|
u32_le size; // Size of input AAC stream
|
||||||
|
u32_le destAddrLeft; // Output address for left channel samples
|
||||||
|
u32_le destAddrRight; // Output address for right channel samples
|
||||||
|
};
|
||||||
|
|
||||||
struct Message {
|
struct Message {
|
||||||
u16_le mode = Mode::None; // Encode or decode AAC?
|
u16_le mode = Mode::None; // Encode or decode AAC?
|
||||||
u16_le command = Command::Init;
|
u16_le command = Command::Init;
|
||||||
@@ -62,7 +69,9 @@ namespace Audio::AAC {
|
|||||||
// Info on the AAC request
|
// Info on the AAC request
|
||||||
union {
|
union {
|
||||||
std::array<u8, 24> commandData{};
|
std::array<u8, 24> commandData{};
|
||||||
|
|
||||||
DecodeResponse decodeResponse;
|
DecodeResponse decodeResponse;
|
||||||
|
DecodeRequest decodeRequest;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
1
third_party/fdk-aac
vendored
Submodule
1
third_party/fdk-aac
vendored
Submodule
Submodule third_party/fdk-aac added at 716f439464
Reference in New Issue
Block a user