Ajout version Release/x64 avec les libraries x64 et tuning de la version Debug
This commit is contained in:
68
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.cbp
vendored
Normal file
68
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.cbp
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE CodeBlocks_project_file>
|
||||
<CodeBlocks_project_file>
|
||||
<FileVersion major="1" minor="1"/>
|
||||
<Project>
|
||||
<Option title="05.Effects"/>
|
||||
<Option makefile="Makefile"/>
|
||||
<Option makefile_is_custom="0"/>
|
||||
<Option active_target="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="..\..\bin\win32-gcc\05.Effects.exe"/>
|
||||
<Option working_dir="."/>
|
||||
<Option object_output="Debug"/>
|
||||
<Option deps_output=".deps"/>
|
||||
<Option type="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Option projectResourceIncludeDirsRelation="1"/>
|
||||
<Compiler>
|
||||
<Add option="-DWIN32"/>
|
||||
<Add option="-D_DEBUG"/>
|
||||
<Add option="-D_CONSOLE"/>
|
||||
<Add option="-W"/>
|
||||
<Add option="-O0"/>
|
||||
<Add directory="..\..\include"/>
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add directory="..\..\lib\win32-gcc"/>
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release">
|
||||
<Option output="..\..\bin\win32-gcc\05.Effects.exe"/>
|
||||
<Option working_dir="."/>
|
||||
<Option object_output="Release"/>
|
||||
<Option deps_output=".deps"/>
|
||||
<Option type="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Option projectResourceIncludeDirsRelation="1"/>
|
||||
<Compiler>
|
||||
<Add option="-DWIN32"/>
|
||||
<Add option="-DNDEBUG"/>
|
||||
<Add option="-D_CONSOLE"/>
|
||||
<Add option="-W"/>
|
||||
<Add option="-g"/>
|
||||
<Add directory="..\..\include"/>
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add directory="..\..\lib\win32-gcc"/>
|
||||
</Linker>
|
||||
</Target>
|
||||
</Build>
|
||||
<Compiler>
|
||||
<Add option="-Os"/>
|
||||
<Add option="-O1"/>
|
||||
<Add option="-O"/>
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-s"/>
|
||||
<Add library="..\..\lib\win32-gcc\libirrklang.a"/>
|
||||
</Linker>
|
||||
<Unit filename="main.cpp">
|
||||
<Option compilerVar="CPP"/>
|
||||
<Option target="Debug"/>
|
||||
<Option target="Release"/>
|
||||
</Unit>
|
||||
</Project>
|
||||
</CodeBlocks_project_file>
|
21
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.sln
vendored
Normal file
21
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.sln
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Express 2013 for Windows Desktop
|
||||
VisualStudioVersion = 12.0.21005.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05.Effects", "05.Effects.vcxproj", "{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Debug|x64.Build.0 = Debug|x64
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Release|x64.ActiveCfg = Release|x64
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
93
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.vcxproj
vendored
Normal file
93
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.vcxproj
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>12.0.21005.1</_ProjectFileVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<TargetName>../../bin/Winx64-visualStudio/$(ProjectName)</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<OutputFile>../../bin/Winx64-visualStudio/05.Effects.exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>../../lib/Winx64-visualStudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>$(OutDir)05.Effects.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<OutputFile>../../bin/Winx64-visualStudio/05.Effects.exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>../../lib/Winx64-visualStudio;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="main.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
245
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.xcodeproj/project.pbxproj
vendored
Normal file
245
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/05.Effects.xcodeproj/project.pbxproj
vendored
Normal file
@@ -0,0 +1,245 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 42;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
23CDAB110C51F05E003DA087 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 23CDAB100C51F05E003DA087 /* main.cpp */; };
|
||||
23CDAB130C51F082003DA087 /* libirrklang.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 23CDAB120C51F082003DA087 /* libirrklang.dylib */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
8DD76F690486A84900D96B5E /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 8;
|
||||
dstPath = /usr/share/man/man1/;
|
||||
dstSubfolderSpec = 0;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 1;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
23CDAB100C51F05E003DA087 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
|
||||
23CDAB120C51F082003DA087 /* libirrklang.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libirrklang.dylib; path = "../../bin/macosx-gcc/libirrklang.dylib"; sourceTree = SOURCE_ROOT; };
|
||||
8DD76F6C0486A84900D96B5E /* 05.Effects */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = 05.Effects; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8DD76F660486A84900D96B5E /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
23CDAB130C51F082003DA087 /* libirrklang.dylib in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
08FB7794FE84155DC02AAC07 /* macosx_xcode */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
23CDAB120C51F082003DA087 /* libirrklang.dylib */,
|
||||
08FB7795FE84155DC02AAC07 /* Source */,
|
||||
C6859E8C029090F304C91782 /* Documentation */,
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */,
|
||||
);
|
||||
name = macosx_xcode;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB7795FE84155DC02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
23CDAB100C51F05E003DA087 /* main.cpp */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DD76F6C0486A84900D96B5E /* 05.Effects */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
C6859E8C029090F304C91782 /* Documentation */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = Documentation;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8DD76F620486A84900D96B5E /* macosx_xcode */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "macosx_xcode" */;
|
||||
buildPhases = (
|
||||
8DD76F640486A84900D96B5E /* Sources */,
|
||||
8DD76F660486A84900D96B5E /* Frameworks */,
|
||||
8DD76F690486A84900D96B5E /* CopyFiles */,
|
||||
23CDAAE90C51E99B003DA087 /* ShellScript */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = macosx_xcode;
|
||||
productInstallPath = "$(HOME)/bin";
|
||||
productName = macosx_xcode;
|
||||
productReference = 8DD76F6C0486A84900D96B5E /* 05.Effects */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "05.Effects" */;
|
||||
compatibilityVersion = "Xcode 2.4";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 08FB7794FE84155DC02AAC07 /* macosx_xcode */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8DD76F620486A84900D96B5E /* macosx_xcode */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
23CDAAE90C51E99B003DA087 /* ShellScript */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"$(BUILT_PRODUCTS_DIR)/$(PRODUCT_NAME)",
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/libirrklang.dylib \"$TARGET_BUILD_DIR/$PRODUCT_NAME\"";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8DD76F640486A84900D96B5E /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
23CDAB110C51F05E003DA087 /* main.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1DEB923208733DC60010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(LIBRARY_SEARCH_PATHS_QUOTED_1)",
|
||||
"$(LIBRARY_SEARCH_PATHS_QUOTED_2)",
|
||||
);
|
||||
LIBRARY_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../../../bin/macosx-gcc\"";
|
||||
LIBRARY_SEARCH_PATHS_QUOTED_2 = "\"$(SRCROOT)/../../bin/macosx-gcc\"";
|
||||
PRODUCT_NAME = 05.Effects;
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923308733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
|
||||
ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_MODEL_TUNING = G5;
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(LIBRARY_SEARCH_PATHS_QUOTED_1)",
|
||||
"$(LIBRARY_SEARCH_PATHS_QUOTED_2)",
|
||||
);
|
||||
LIBRARY_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../../../bin/macosx-gcc\"";
|
||||
LIBRARY_SEARCH_PATHS_QUOTED_2 = "\"$(SRCROOT)/../../bin/macosx-gcc\"";
|
||||
PRODUCT_NAME = 05.Effects;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
1DEB923608733DC60010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CONFIGURATION_BUILD_DIR = "../../bin/macosx-gcc";
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = ../../include;
|
||||
OBJROOT = "../../bin/macosx-gcc";
|
||||
PREBINDING = NO;
|
||||
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923708733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
|
||||
ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
|
||||
CONFIGURATION_BUILD_DIR = "../../bin/macosx-gcc";
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = ../../include;
|
||||
OBJROOT = "../../bin/macosx-gcc";
|
||||
PREBINDING = NO;
|
||||
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "macosx_xcode" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923208733DC60010E9CD /* Debug */,
|
||||
1DEB923308733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "05.Effects" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923608733DC60010E9CD /* Debug */,
|
||||
1DEB923708733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
8
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/Makefile
vendored
Normal file
8
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/Makefile
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
CPP = g++
|
||||
OPTS = -I"../../include" -L"/usr/lib" ../../bin/linux-gcc-64/libIrrKlang.so -pthread
|
||||
|
||||
all:
|
||||
$(CPP) main.cpp -o example $(OPTS)
|
||||
|
||||
clean:
|
||||
rm example
|
135
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/main.cpp
vendored
Normal file
135
SQCSim2021/external/irrKlang-64bit-1.6.0/examples/05.Effects/main.cpp
vendored
Normal file
@@ -0,0 +1,135 @@
|
||||
// This example will show how to use sound effects such as echo, reverb and distortion.
|
||||
// irrKlang supports the effects Chorus, Compressor, Distortion, Echo, Flanger
|
||||
// Gargle, 3DL2Reverb, ParamEq and WavesReverb.
|
||||
|
||||
// Lets start: include the irrKlang headers and other input/output stuff
|
||||
// needed to print and get user input from the console. And as exlained
|
||||
// in the first tutorial, we use the namespace irr and audio and
|
||||
// link to the irrKlang.dll file.
|
||||
#if defined(WIN32)
|
||||
#include <conio.h>
|
||||
#else
|
||||
#include "../common/conio.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <irrKlang.h>
|
||||
using namespace irrklang;
|
||||
|
||||
#pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll
|
||||
|
||||
|
||||
// Now let's start with the irrKlang 3D sound engine example 05,
|
||||
// demonstrating sound effects. Simply startup the engine using
|
||||
// using createIrrKlangDevice() with default options/parameters.
|
||||
int main(int argc, const char** argv)
|
||||
{
|
||||
// start the sound engine with default parameters
|
||||
ISoundEngine* engine = createIrrKlangDevice();
|
||||
|
||||
if (!engine)
|
||||
return 0; // error starting up the engine
|
||||
|
||||
// we play a .xm file as music here. Note that the last parameter
|
||||
// named 'enableSoundEffects' has been set to 'true' here. If this
|
||||
// is not done, sound effects cannot be used with this sound.
|
||||
// After this, we print some help text and start a loop which reads
|
||||
// user keyboard input.
|
||||
|
||||
const char* filename = "../../media/MF-W-90.XM";
|
||||
|
||||
#ifdef __BIG_ENDIAN__
|
||||
filename = "../../media/ophelia.mp3"; // no xm playback on power pcs currently
|
||||
#endif
|
||||
|
||||
ISound* music = engine->play2D(filename,
|
||||
true, false, true, ESM_AUTO_DETECT, true);
|
||||
|
||||
// Print some help text and start the display loop
|
||||
|
||||
printf("\nSound effects example. Keys:\n");
|
||||
printf("\nESCAPE: quit\n");
|
||||
printf("w: enable/disable waves reverb\n");
|
||||
printf("d: enable/disable distortion\n");
|
||||
printf("e: enable/disable echo\n");
|
||||
printf("a: disable all effects\n");
|
||||
|
||||
while(true) // endless loop until user exits
|
||||
{
|
||||
int key = getch();
|
||||
|
||||
if (key == 27)
|
||||
break; // user pressed ESCAPE key
|
||||
else
|
||||
{
|
||||
// user maybe pressed an effects key,
|
||||
// now enable or disable a sound effect.
|
||||
|
||||
// We get a pointer to the ISoundEffectControl interface,
|
||||
// but this only exists if the sound driver supports sound effects
|
||||
// and if the sound was started setting the 'enableSoundeffects' flag
|
||||
// to 'true' as we did above. This pointer is only valid as long as
|
||||
// we don't call music->drop() and delete the music with this.
|
||||
|
||||
ISoundEffectControl* fx = 0;
|
||||
if (music)
|
||||
fx = music->getSoundEffectControl();
|
||||
|
||||
if (!fx)
|
||||
{
|
||||
// some sound devices do not support sound effects.
|
||||
printf("This device or sound does not support sound effects.\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
// here we disable or enable the sound effects of the music depending
|
||||
// on what key the user pressed. Note that every enableXXXSoundEffect()
|
||||
// method also accepts a lot of parameters, so it is easily possible
|
||||
// to influence the details of the effect. If the sound effect is
|
||||
// already active, it is also possible to simply call the
|
||||
// enableXXXSoundEffect() method again to just change the effect parameters,
|
||||
// although we aren't doing this here.
|
||||
|
||||
if (key < 'a') // make key lower
|
||||
key += 'a' - 'A';
|
||||
|
||||
switch(key)
|
||||
{
|
||||
case 'd':
|
||||
if (fx->isDistortionSoundEffectEnabled())
|
||||
fx->disableDistortionSoundEffect();
|
||||
else
|
||||
fx->enableDistortionSoundEffect();
|
||||
break;
|
||||
|
||||
case 'e':
|
||||
if (fx->isEchoSoundEffectEnabled())
|
||||
fx->disableEchoSoundEffect();
|
||||
else
|
||||
fx->enableEchoSoundEffect();
|
||||
break;
|
||||
|
||||
case 'w':
|
||||
if (fx->isWavesReverbSoundEffectEnabled())
|
||||
fx->disableWavesReverbSoundEffect();
|
||||
else
|
||||
fx->enableWavesReverbSoundEffect();
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
fx->disableAllEffects();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// don't forget to release the resources
|
||||
|
||||
if (music)
|
||||
music->drop(); // release music stream.
|
||||
|
||||
engine->drop(); // delete Engine
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user