File tree Expand file tree Collapse file tree 8 files changed +60
-1
lines changed
Templates/DefaultProject/Template Expand file tree Collapse file tree 8 files changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ ly_add_target(
42
42
FILES_CMAKE
43
43
miniaudio_private_files.cmake
44
44
${pal_dir} /miniaudio_private_files.cmake
45
+ PLATFORM_INCLUDE_FILES
46
+ ${pal_dir} /platform_${PAL_PLATFORM_NAME_LOWERCASE} .cmake
45
47
TARGET_PROPERTIES
46
48
O3DE_PRIVATE_TARGET TRUE
47
49
INCLUDE_DIRECTORIES
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) Contributors to the Open 3D Engine Project.
3
+ # For complete copyright and license terms please see the LICENSE at the root of this distribution.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
6
+ #
7
+ #
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) Contributors to the Open 3D Engine Project.
3
+ # For complete copyright and license terms please see the LICENSE at the root of this distribution.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
6
+ #
7
+ #
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) Contributors to the Open 3D Engine Project.
3
+ # For complete copyright and license terms please see the LICENSE at the root of this distribution.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
6
+ #
7
+ #
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) Contributors to the Open 3D Engine Project.
3
+ # For complete copyright and license terms please see the LICENSE at the root of this distribution.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
6
+ #
7
+ #
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) Contributors to the Open 3D Engine Project.
3
+ # For complete copyright and license terms please see the LICENSE at the root of this distribution.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
6
+ #
7
+ #
8
+
9
+ find_library (AV_FOUNDATION_LIBRARY AVFoundation)
10
+ find_library (AUDIO_TOOLBOX_GRAPHICS_LIBRARY AudioToolbox)
11
+ find_library (CORE_AUDIO_SERVICES_LIBRARY CoreAudio)
12
+ find_library (FOUNDATION_LIBRARY Foundation)
13
+
14
+ set (LY_BUILD_DEPENDENCIES
15
+ PRIVATE
16
+ ${AV_FOUNDATION_LIBRARY}
17
+ ${AUDIO_TOOLBOX_GRAPHICS_LIBRARY}
18
+ ${CORE_AUDIO_SERVICES_LIBRARY}
19
+ ${FOUNDATION_LIBRARY}
20
+ )
21
+
22
+ add_compile_definitions (MA_NO_RUNTIME_LINKING=1)
23
+
24
+ ly_add_source_properties(
25
+ SOURCES Source /Clients/MiniAudioImplementation.cpp
26
+ PROPERTY COMPILE_OPTIONS
27
+ VALUES -xobjective-c++
28
+ )
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ extern "C" {
19
19
20
20
#define STB_VORBIS_HEADER_ONLY
21
21
#include < stb_vorbis.c> // Enables Vorbis decoding.
22
+ }
22
23
23
24
#define MINIAUDIO_IMPLEMENTATION
24
25
#include < miniaudio.h>
25
26
27
+ extern " C" {
26
28
// The stb_vorbis implementation must come after the implementation of miniaudio.
27
29
#undef STB_VORBIS_HEADER_ONLY
28
30
#include < stb_vorbis.c>
Original file line number Diff line number Diff line change 22
22
" ${Name}" ,
23
23
" Atom" ,
24
24
" AudioSystem" ,
25
- " AWSCore" ,
26
25
" CameraFramework" ,
27
26
" DebugDraw" ,
28
27
" DiffuseProbeGrid" ,
You can’t perform that action at this time.
0 commit comments