Skip to content

Commit

Permalink
Added SteamAudio library to project
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 31, 2024
1 parent 6b30049 commit 8c47998
Show file tree
Hide file tree
Showing 10 changed files with 5,675 additions and 1 deletion.
Binary file added sdk/binaries/x64/phonon.dll
Binary file not shown.
Binary file added sdk/binaries/x86/phonon.dll
Binary file not shown.
3,544 changes: 3,544 additions & 0 deletions sdk/include/phonon.h

Large diffs are not rendered by default.

2,094 changes: 2,094 additions & 0 deletions sdk/include/phonon_interfaces.h

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions sdk/include/phonon_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2017-2023 Valve Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef IPL_PHONON_VERSION_H
#define IPL_PHONON_VERSION_H

#define STEAMAUDIO_VERSION_MAJOR 4
#define STEAMAUDIO_VERSION_MINOR 5
#define STEAMAUDIO_VERSION_PATCH 3
#define STEAMAUDIO_VERSION (((IPLuint32)(STEAMAUDIO_VERSION_MAJOR) << 16) | \
((IPLuint32)(STEAMAUDIO_VERSION_MINOR) << 8) | \
((IPLuint32)(STEAMAUDIO_VERSION_PATCH)))

#endif
Binary file added sdk/libraries/x64/phonon.lib
Binary file not shown.
Binary file added sdk/libraries/x86/phonon.lib
Binary file not shown.
5 changes: 5 additions & 0 deletions src/xrSound/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
#include "xrCDB/xrCDB.h"

#include "Sound.h"

#if __has_include(<phonon.h>) && defined(XR_PLATFORM_WINDOWS)
# include <phonon.h>
# define USE_PHONON
#endif
5 changes: 4 additions & 1 deletion src/xrSound/xrSound.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PreprocessorDefinitions>_USRDLL;XRSOUND_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<AdditionalDependencies>OpenAL32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>OpenAL32.lib;phonon.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ImageHasSafeExceptionHandlers Condition="'$(Platform)'=='Win32'" />
</Link>
</ItemDefinitionGroup>
Expand Down Expand Up @@ -91,6 +91,9 @@
<CopyFileToFolders Include="..\..\sdk\binaries\$(PlatformShortName)\OpenAL32.dll">
<FileType>Document</FileType>
</CopyFileToFolders>
<CopyFileToFolders Include="..\..\sdk\binaries\$(PlatformShortName)\phonon.dll">
<FileType>Document</FileType>
</CopyFileToFolders>
</ItemGroup>
<ItemGroup>
<Natvis Include="..\OpenXRay.natvis" />
Expand Down
1 change: 1 addition & 0 deletions src/xrSound/xrSound.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@
<ItemGroup>
<CopyFileToFolders Include="..\..\sdk\binaries\$(PlatformShortName)\soft_oal.dll" />
<CopyFileToFolders Include="..\..\sdk\binaries\$(PlatformShortName)\OpenAL32.dll" />
<CopyFileToFolders Include="..\..\sdk\binaries\$(PlatformShortName)\phonon.dll" />
</ItemGroup>
</Project>

0 comments on commit 8c47998

Please sign in to comment.