Ajouts de musique et irrKlang.
This commit is contained in:
65
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.cbp
vendored
Normal file
65
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.cbp
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE CodeBlocks_project_file>
|
||||
<CodeBlocks_project_file>
|
||||
<FileVersion major="1" minor="1"/>
|
||||
<Project>
|
||||
<Option title="01.HelloWorld"/>
|
||||
<Option makefile="Makefile"/>
|
||||
<Option makefile_is_custom="0"/>
|
||||
<Option active_target="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="..\..\bin\win32-gcc\01.HelloWorld.exe"/>
|
||||
<Option working_dir="."/>
|
||||
<Option object_output="Debug"/>
|
||||
<Option deps_output=".deps"/>
|
||||
<Option type="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Option projectResourceIncludeDirsRelation="1"/>
|
||||
<Compiler>
|
||||
<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\01.HelloWorld.exe"/>
|
||||
<Option working_dir="."/>
|
||||
<Option object_output="Release"/>
|
||||
<Option deps_output=".deps"/>
|
||||
<Option type="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Option projectResourceIncludeDirsRelation="1"/>
|
||||
<Compiler>
|
||||
<Add option="-W"/>
|
||||
<Add option="-g"/>
|
||||
<Add option="-DWIN32"/>
|
||||
<Add option="-DNDEBUG"/>
|
||||
<Add option="-D_CONSOLE"/>
|
||||
<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>
|
19
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.sln
vendored
Normal file
19
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.sln
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01.HelloWorld", "01.HelloWorld.vcproj", "{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.vcproj
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.vcproj
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="01.HelloWorld"
|
||||
ProjectGUID="{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/01.HelloWorld.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/01.HelloWorld.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/01.HelloWorld.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\main.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
251
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.xcodeproj/project.pbxproj
vendored
Normal file
251
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01.HelloWorld.xcodeproj/project.pbxproj
vendored
Normal file
@@ -0,0 +1,251 @@
|
||||
// !$*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 /* 01.HelloWorld */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = 01.HelloWorld; 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 /* 01.HelloWorld */,
|
||||
);
|
||||
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 /* 01.HelloWorld */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "01.HelloWorld" */;
|
||||
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 = {
|
||||
CONFIGURATION_BUILD_DIR = "../../bin/macosx-gcc";
|
||||
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\"";
|
||||
OBJROOT = "../../bin/macosx-gcc";
|
||||
PRODUCT_NAME = 01.HelloWorld;
|
||||
SYMROOT = "../../bin/macosx-gcc";
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923308733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
CONFIGURATION_BUILD_DIR = "../../bin/macosx-gcc";
|
||||
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 = 01.HelloWorld;
|
||||
};
|
||||
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";
|
||||
SYMROOT = "../../bin/macosx-gcc";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923708733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)";
|
||||
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";
|
||||
SYMROOT = "../../bin/macosx-gcc";
|
||||
};
|
||||
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 "01.HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923608733DC60010E9CD /* Debug */,
|
||||
1DEB923708733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
90
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01_HelloWorld.dsp
vendored
Normal file
90
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01_HelloWorld.dsp
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# Microsoft Developer Studio Project File - Name="01_HelloWorld" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=01_HelloWorld - Win32 Debug
|
||||
!MESSAGE Dies ist kein g<>ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f<>hren Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "01_HelloWorld.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie k<>nnen beim Ausf<73>hren von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "01_HelloWorld.mak" CFG="01_HelloWorld - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE F<>r die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "01_HelloWorld - Win32 Release" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE "01_HelloWorld - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "01_HelloWorld - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "01_HelloWorld___Win32_Release"
|
||||
# PROP BASE Intermediate_Dir "01_HelloWorld___Win32_Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "01_HelloWorld___Win32_Release"
|
||||
# PROP Intermediate_Dir "01_HelloWorld___Win32_Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
|
||||
# ADD RSC /l 0xc07 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/win32-visualstudio/01.HelloWorld.exe" /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ELSEIF "$(CFG)" == "01_HelloWorld - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0xc07 /d "_DEBUG"
|
||||
# ADD RSC /l 0xc07 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/win32-visualstudio/01.HelloWorld.exe" /pdbtype:sept /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "01_HelloWorld - Win32 Release"
|
||||
# Name "01_HelloWorld - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01_HelloWorld.dsw
vendored
Normal file
29
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/01_HelloWorld.dsw
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL<45>SCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "01_HelloWorld"=.\01_HelloWorld.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
8
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/Makefile
vendored
Normal file
8
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/Makefile
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
CPP = g++
|
||||
OPTS = -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread
|
||||
|
||||
all:
|
||||
$(CPP) main.cpp -m32 -o example $(OPTS)
|
||||
|
||||
clean:
|
||||
rm example
|
78
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/main.cpp
vendored
Normal file
78
SQCSim2021/external/irrKlang-1.6.0/examples/01.HelloWorld/main.cpp
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
// This example will show how to play sounds using irrKlang.
|
||||
// It will play a looped background music and a sound every
|
||||
// time the user presses a key.
|
||||
|
||||
// At the beginning, we need to include the irrKlang headers (irrKlang.h) and
|
||||
// the iostream headers needed to print text to the console.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <irrKlang.h>
|
||||
|
||||
// include console I/O methods (conio.h for windows, our wrapper in linux)
|
||||
#if defined(WIN32)
|
||||
#include <conio.h>
|
||||
#else
|
||||
#include "../common/conio.h"
|
||||
#endif
|
||||
|
||||
// Also, we tell the compiler to use the namespaces 'irrklang'.
|
||||
// All classes and functions of irrKlang can be found in the namespace 'irrklang'.
|
||||
// If you want to use a class of the engine,
|
||||
// you'll have to type an irrklang:: before the name of the class.
|
||||
// For example, to use the ISoundEngine, write: irrklang::ISoundEngine. To avoid having
|
||||
// to put irrklang:: before of the name of every class, we tell the compiler that
|
||||
// we use that namespaces here.
|
||||
|
||||
using namespace irrklang;
|
||||
|
||||
// To be able to use the irrKlang.dll file, we need to link with the irrKlang.lib.
|
||||
// We could set this option in the project settings, but to make it easy we use
|
||||
// a pragma comment:
|
||||
|
||||
#pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll
|
||||
|
||||
// Now lets start with irrKlang 3D sound engine example 01, demonstrating simple 2D sound.
|
||||
// Start up the sound engine using createIrrKlangDevice(). You can specify several
|
||||
// options as parameters when invoking that function, but for this example, the default
|
||||
// parameters are enough.
|
||||
int main(int argc, const char** argv)
|
||||
{
|
||||
// start the sound engine with default parameters
|
||||
ISoundEngine* engine = createIrrKlangDevice();
|
||||
|
||||
if (!engine)
|
||||
{
|
||||
printf("Could not startup engine\n");
|
||||
return 0; // error starting up the engine
|
||||
}
|
||||
|
||||
// To play a sound, we only to call play2D(). The second parameter
|
||||
// tells the engine to play it looped.
|
||||
|
||||
// play some sound stream, looped
|
||||
engine->play2D("../../media/getout.ogg", true);
|
||||
|
||||
// In a loop, wait until user presses 'q' to exit or another key to
|
||||
// play another sound.
|
||||
|
||||
printf("\nHello World!\n");
|
||||
|
||||
do
|
||||
{
|
||||
printf("Press any key to play some sound, press 'q' to quit.\n");
|
||||
|
||||
// play a single sound
|
||||
engine->play2D("../../media/bell.wav");
|
||||
}
|
||||
while(getch() != 'q');
|
||||
|
||||
// After we are finished, we have to delete the irrKlang Device created earlier
|
||||
// with createIrrKlangDevice(). Use ::drop() to do that. In irrKlang, you should
|
||||
// delete all objects you created with a method or function that starts with 'create'.
|
||||
// (an exception is the play2D()- or play3D()-method, see the documentation or the
|
||||
// next example for an explanation)
|
||||
// The object is deleted simply by calling ->drop().
|
||||
|
||||
engine->drop(); // delete engine
|
||||
return 0;
|
||||
}
|
68
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.cbp
vendored
Normal file
68
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.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="02.3DSound"/>
|
||||
<Option makefile="Makefile"/>
|
||||
<Option makefile_is_custom="0"/>
|
||||
<Option active_target="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="..\..\bin\win32-gcc\02.3DSound.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\02.3DSound.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>
|
19
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.sln
vendored
Normal file
19
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.sln
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02.3DSound", "02.3DSound.vcproj", "{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C9328295-3D0A-446B-8522-6C1B6FC7F4E6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.vcproj
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.vcproj
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="02.3DSound"
|
||||
ProjectGUID="{947A1D17-5ED6-4622-95EF-2FA99729CF97}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/02.3DSound.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/02.3DSound.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/02.3DSound.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\main.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
245
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.xcodeproj/project.pbxproj
vendored
Normal file
245
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02.3DSound.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 /* 02.3DSound */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = 02.3DSound; 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 /* 02.3DSound */,
|
||||
);
|
||||
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 /* 02.3DSound */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "02.3DSound" */;
|
||||
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 = 02.3DSound;
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923308733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
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 = 02.3DSound;
|
||||
};
|
||||
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 = {
|
||||
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 "02.3DSound" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923608733DC60010E9CD /* Debug */,
|
||||
1DEB923708733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
90
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02_3DSound.dsp
vendored
Normal file
90
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02_3DSound.dsp
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# Microsoft Developer Studio Project File - Name="02_3DSound" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=02_3DSound - Win32 Debug
|
||||
!MESSAGE Dies ist kein g<>ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f<>hren Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "02_3DSound.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie k<>nnen beim Ausf<73>hren von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "02_3DSound.mak" CFG="02_3DSound - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE F<>r die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "02_3DSound - Win32 Release" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE "02_3DSound - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "02_3DSound - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "02_3DSound___Win32_Release"
|
||||
# PROP BASE Intermediate_Dir "02_3DSound___Win32_Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "02_3DSound___Win32_Release"
|
||||
# PROP Intermediate_Dir "02_3DSound___Win32_Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
|
||||
# ADD RSC /l 0xc07 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/win32-visualstudio/02.3DSound.exe" /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ELSEIF "$(CFG)" == "02_3DSound - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0xc07 /d "_DEBUG"
|
||||
# ADD RSC /l 0xc07 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/win32-visualstudio/02.3DSound.exe" /pdbtype:sept /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "02_3DSound - Win32 Release"
|
||||
# Name "02_3DSound - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02_3DSound.dsw
vendored
Normal file
29
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/02_3DSound.dsw
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL<45>SCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "02_3DSound"=.\02_3DSound.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
21
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/Makefile
vendored
Normal file
21
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/Makefile
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
CPP = g++
|
||||
OPTS = -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread
|
||||
|
||||
all: example
|
||||
|
||||
example:
|
||||
$(CPP) main.cpp -m32 -o example $(OPTS)
|
||||
@echo ""
|
||||
@echo "Note: to start: This example needs mp3 playback and to find the mp3 plugin for this. Please start this example with bin/linux-gcc/ as working directory."
|
||||
@echo ""
|
||||
@echo "Alternative: run 'make run' now."
|
||||
|
||||
clean:
|
||||
rm example
|
||||
|
||||
run: example
|
||||
cd ../../bin/linux-gcc/ && ../../examples/02.3DSound/example && cd ../../examples/02.3DSound
|
||||
|
||||
|
||||
|
||||
|
144
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/main.cpp
vendored
Normal file
144
SQCSim2021/external/irrKlang-1.6.0/examples/02.3DSound/main.cpp
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
// This example will show how to play sounds in 3D space using irrKlang.
|
||||
// An mp3 file file be played in 3D space and moved around the user and a
|
||||
// sound will be played at a random 3D position every time the user presses
|
||||
// a key.
|
||||
|
||||
// For this example, we need some function to sleep for some seconds,
|
||||
// so we include the platform specific sleep functions here. This is
|
||||
// only need for demo purposes and has nothing to do with sound output.
|
||||
// include console I/O methods (conio.h for windows, our wrapper in linux)
|
||||
#if defined(WIN32)
|
||||
#include <windows.h>
|
||||
#include <conio.h>
|
||||
inline void sleepSomeTime() { Sleep(100); }
|
||||
#else
|
||||
#include "../common/conio.h"
|
||||
#endif
|
||||
|
||||
// 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.
|
||||
#include <stdio.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 02,
|
||||
// demonstrating simple 3D sound. 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
|
||||
|
||||
// Now play some sound stream as music in 3d space, looped.
|
||||
// We are setting the last parameter named 'track' to 'true' to
|
||||
// make irrKlang return a pointer to the played sound. (This is also returned
|
||||
// if the parameter 'startPaused' is set to true, by the way). Note that you
|
||||
// MUST call ->drop to the returned pointer if you don't need it any longer and
|
||||
// don't want to waste any memory. This is done in the end of the program.
|
||||
|
||||
ISound* music = engine->play3D("../../media/ophelia.mp3",
|
||||
vec3df(0,0,0), true, false, true);
|
||||
|
||||
// the following step isn't necessary, but to adjust the distance where
|
||||
// the 3D sound can be heard, we set some nicer minimum distance
|
||||
// (the default min distance is 1, for a small object). The minimum
|
||||
// distance simply is the distance in which the sound gets played
|
||||
// at maximum volume.
|
||||
|
||||
if (music)
|
||||
music->setMinDistance(5.0f);
|
||||
|
||||
// Print some help text and start the display loop
|
||||
|
||||
printf("\nPlaying streamed sound in 3D.");
|
||||
printf("\nPress ESCAPE to quit, any other key to play sound at random position.\n\n");
|
||||
|
||||
printf("+ = Listener position\n");
|
||||
printf("o = Playing sound\n");
|
||||
|
||||
float posOnCircle = 0;
|
||||
const float radius = 5;
|
||||
|
||||
while(true) // endless loop until user exits
|
||||
{
|
||||
// Each step we calculate the position of the 3D music.
|
||||
// For this example, we let the
|
||||
// music position rotate on a circle:
|
||||
|
||||
posOnCircle += 0.04f;
|
||||
vec3df pos3d(radius * cosf(posOnCircle), 0,
|
||||
radius * sinf(posOnCircle * 0.5f));
|
||||
|
||||
// After we know the positions, we need to let irrKlang know about the
|
||||
// listener position (always position (0,0,0), facing forward in this example)
|
||||
// and let irrKlang know about our calculated 3D music position
|
||||
|
||||
engine->setListenerPosition(vec3df(0,0,0), vec3df(0,0,1));
|
||||
|
||||
if (music)
|
||||
music->setPosition(pos3d);
|
||||
|
||||
// Now print the position of the sound in a nice way to the console
|
||||
// and also print the play position
|
||||
|
||||
char stringForDisplay[] = " + ";
|
||||
int charpos = (int)((pos3d.X + radius) / radius * 10.0f);
|
||||
if (charpos >= 0 && charpos < 20)
|
||||
stringForDisplay[charpos] = 'o';
|
||||
int playPos = music ? music->getPlayPosition() : 0;
|
||||
|
||||
printf("\rx:(%s) 3dpos: %.1f %.1f %.1f, playpos:%d:%.2d ",
|
||||
stringForDisplay, pos3d.X, pos3d.Y, pos3d.Z,
|
||||
playPos/60000, (playPos%60000)/1000 );
|
||||
|
||||
sleepSomeTime();
|
||||
|
||||
// Handle user input: Every time the user presses a key in the console,
|
||||
// play a random sound or exit the application if he pressed ESCAPE.
|
||||
|
||||
if (kbhit())
|
||||
{
|
||||
int key = getch();
|
||||
|
||||
if (key == 27)
|
||||
break; // user pressed ESCAPE key
|
||||
else
|
||||
{
|
||||
// Play random sound at some random position.
|
||||
// Note that when calling play3D(), no pointer is returned because we didn't
|
||||
// specify the sound to start paused or to track it (as we did above
|
||||
// with the music), so we also don't need to call drop().
|
||||
|
||||
vec3df pos(fmodf((float)rand(),radius*2)-radius, 0, 0);
|
||||
|
||||
const char* filename;
|
||||
|
||||
if (rand()%2)
|
||||
filename = "../../media/bell.wav";
|
||||
else
|
||||
filename = "../../media/explosion.wav";
|
||||
|
||||
engine->play3D(filename, pos);
|
||||
|
||||
printf("\nplaying %s at %.1f %.1f %.1f\n",
|
||||
filename, pos.X, pos.Y, pos.Z);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// don't forget to release the resources as explained above.
|
||||
|
||||
if (music)
|
||||
music->drop(); // release music stream.
|
||||
|
||||
engine->drop(); // delete engine
|
||||
return 0;
|
||||
}
|
68
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03.MemoryPlayback.cbp
vendored
Normal file
68
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03.MemoryPlayback.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="03.MemoryPlayback"/>
|
||||
<Option makefile="Makefile"/>
|
||||
<Option makefile_is_custom="0"/>
|
||||
<Option active_target="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="..\..\bin\win32-gcc\03.MemoryPlayback.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\03.MemoryPlayback.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>
|
19
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03.MemoryPlayback.sln
vendored
Normal file
19
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03.MemoryPlayback.sln
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03.MemoryPlayback", "03.MemoryPlayback.vcproj", "{C9328295-3D0A-446B-0522-6C1B6FC7F4E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C9328295-3D0A-446B-0522-6C1B6FC7F4E6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C9328295-3D0A-446B-0522-6C1B6FC7F4E6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{C9328295-3D0A-446B-0522-6C1B6FC7F4E6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C9328295-3D0A-446B-0522-6C1B6FC7F4E6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03.MemoryPlayback.vcproj
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03.MemoryPlayback.vcproj
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="03.MemoryPlayback"
|
||||
ProjectGUID="{C9328295-3D0A-446B-0522-6C1B6FC7F4E6}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/03.MemoryPlayback.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/03.MemoryPlayback.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/03.MemoryPlayback.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\main.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@@ -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 /* 03.MemoryPlayback */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = 03.MemoryPlayback; 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 /* 03.MemoryPlayback */,
|
||||
);
|
||||
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 /* 03.MemoryPlayback */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "03.MemoryPlayback" */;
|
||||
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 = 03.MemoryPlayback;
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923308733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
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 = 03.MemoryPlayback;
|
||||
};
|
||||
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 = {
|
||||
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 "03.MemoryPlayback" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923608733DC60010E9CD /* Debug */,
|
||||
1DEB923708733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
90
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03_MemoryPlayback.dsp
vendored
Normal file
90
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03_MemoryPlayback.dsp
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# Microsoft Developer Studio Project File - Name="03_MemoryPlayback" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=03_MemoryPlayback - Win32 Debug
|
||||
!MESSAGE Dies ist kein g<>ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f<>hren Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "03_MemoryPlayback.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie k<>nnen beim Ausf<73>hren von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "03_MemoryPlayback.mak" CFG="03_MemoryPlayback - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE F<>r die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "03_MemoryPlayback - Win32 Release" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE "03_MemoryPlayback - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "03_MemoryPlayback - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "03_MemoryPlayback___Win32_Release"
|
||||
# PROP BASE Intermediate_Dir "03_MemoryPlayback___Win32_Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "03_MemoryPlayback___Win32_Release"
|
||||
# PROP Intermediate_Dir "03_MemoryPlayback___Win32_Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
|
||||
# ADD RSC /l 0xc07 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/win32-visualstudio/03.MemoryPlayback.exe" /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ELSEIF "$(CFG)" == "03_MemoryPlayback - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0xc07 /d "_DEBUG"
|
||||
# ADD RSC /l 0xc07 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/win32-visualstudio/03.MemoryPlayback.exe" /pdbtype:sept /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "03_MemoryPlayback - Win32 Release"
|
||||
# Name "03_MemoryPlayback - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03_MemoryPlayback.dsw
vendored
Normal file
29
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/03_MemoryPlayback.dsw
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL<45>SCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "03_MemoryPlayback"=.\03_MemoryPlayback.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
8
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/Makefile
vendored
Normal file
8
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/Makefile
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
CPP = g++
|
||||
OPTS = -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread
|
||||
|
||||
all:
|
||||
$(CPP) main.cpp -m32 -o example $(OPTS)
|
||||
|
||||
clean:
|
||||
rm example
|
240
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/main.cpp
vendored
Normal file
240
SQCSim2021/external/irrKlang-1.6.0/examples/03.MemoryPlayback/main.cpp
vendored
Normal file
@@ -0,0 +1,240 @@
|
||||
// This example will show how to play sounds directly from memory using irrKlang.
|
||||
// This is useful for embedding sounds directly in executables as well for
|
||||
// making irrKlang work together with different APIs like advanced decoders or
|
||||
// middleware such as Shockwave.
|
||||
|
||||
// lets start: include irrKlang headers and other input/output stuff
|
||||
// needed to print and get user input from the console.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <irrKlang.h>
|
||||
using namespace irrklang;
|
||||
|
||||
// include console I/O methods (conio.h for windows, our wrapper in linux)
|
||||
#if defined(WIN32)
|
||||
#include <conio.h>
|
||||
#else
|
||||
#include "../common/conio.h"
|
||||
#endif
|
||||
|
||||
#pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll
|
||||
|
||||
|
||||
// the following huge array simply represents the plain sound data we
|
||||
// want to play back. It is just the content of a .wav file from the
|
||||
// game 'Hell Troopers'. Usually this sound is somewhere provided by
|
||||
// some external software, but to keep it simple we just use this array as memory.
|
||||
|
||||
// test.wav, converted to this array by bin2h tool, available at bin2h.irrlicht3d.org
|
||||
int memorySoundDataSize = 3932; // data size in bytes
|
||||
int memorySoundData[] = {
|
||||
0x46464952, 0xf54, 0x45564157, 0x20746d66, 0x12,
|
||||
0x10001, 0x1f40, 0x1f40, 0x80001, 0x61660000, 0x47463,
|
||||
0xf220000, 0x61640000, 0xf226174, 0x807f0000, 0x80807f7f, 0x7f808080,
|
||||
0x80818080, 0x7f7f7e80, 0x7f807f7f, 0x80808081, 0x7e7e7e80, 0x807e7e7e,
|
||||
0x7f7f7f7f, 0x7e7e7f7f, 0x7f7e7e7e, 0x807f8080, 0x8181807f, 0x80808180,
|
||||
0x80808080, 0x83818181, 0x87868584, 0x85878786, 0x4f5a7183, 0x8a816d6e,
|
||||
0x97918f8c, 0x5f6e7684, 0x85837768, 0x95949089, 0x6b707b8f, 0x83807672,
|
||||
0x908f8c84, 0x6f727f87, 0x7d7b7770, 0x87858482, 0x76797e86, 0x807e7977,
|
||||
0x8987857f, 0x7b7c8085, 0x837f7f7b, 0x888a8884, 0x7d7c7d85, 0x948b8380,
|
||||
0x318da69d, 0x92735250, 0xbb818f7e, 0x5b879fb8, 0x805f4c45, 0x978f8a7c,
|
||||
0x6a95a8a7, 0x7863575b, 0x95878483, 0x81929a9a, 0x75655f60, 0x8283847f,
|
||||
0x7b8c918e, 0x7b706a73, 0x88878886, 0x80878987, 0x7e757475, 0x84848684,
|
||||
0x7c838384, 0x867e7a78, 0x93949390, 0x3c5e879b, 0x98493e3b, 0xab9d9d99,
|
||||
0x518e97a0, 0x6f58493e, 0xa09da799, 0x808a95a2, 0x705d505a, 0x949d9b7e,
|
||||
0x7b84868a, 0x695d5f71, 0x91999688, 0x81807e88, 0x87828080, 0xa7a29d8f,
|
||||
0x3131aead, 0x87783147, 0xc1baabbc, 0x319db2a3, 0x5f523139, 0xb7a4b281,
|
||||
0x809b9aab, 0x513e376a, 0xadb0986b, 0x7c8f95aa, 0x53536c7e, 0xa4917764,
|
||||
0x707d97a1, 0x76717370, 0x948b7977, 0x74869097, 0x7d79706d, 0x92898786,
|
||||
0xa09d9c98, 0x31a2b3a7, 0x7f573150, 0xc2a1c0b7, 0x4a65b39f, 0x31333166,
|
||||
0xc0c6a1a0, 0x7ca5a0b9, 0x31465271, 0xc68e8342, 0x7078a9b7, 0x6e70616d,
|
||||
0x8e827b6d, 0x7c939f96, 0xa290797e, 0x97bdb8aa, 0x31313136, 0xaaa06b47,
|
||||
0xc1adbfc6, 0x316b6db0, 0x7e6e3131, 0xbdbcc5c0, 0x6e7e91af, 0x543c3645,
|
||||
0xbeb58f65, 0x5a7897ae, 0x796e5a5b, 0x9f93887e, 0x7989a0a0, 0xb0847b77,
|
||||
0x43a0c2be, 0x44313145, 0xbdafa569, 0x89c6a59f, 0x3131429d, 0xba644731,
|
||||
0xa4c1bec7, 0x63848a96, 0x40364255, 0xb2ae7d6b, 0x959da7b2, 0x5f607b7d,
|
||||
0x99806b62, 0xb5c3c3c4, 0x3131417b, 0xa4843931, 0xc6bdbdbb, 0x456faab0,
|
||||
0x31313131, 0xc6c4aa86, 0x85a8b6c3, 0x313e6476, 0xa3523731, 0xc1c5c6c3,
|
||||
0x657685b5, 0x8b796562, 0x8789b3a3, 0x4537313a, 0x92998760, 0xa38cb09d,
|
||||
0x4f737c87, 0x75654145, 0xaaa7b29f, 0x7b8394a0, 0x4f5a5967, 0xa2916957,
|
||||
0x9dafbabc, 0x9d928a93, 0x315a7fb3, 0x60313131, 0xb6c4c2b2, 0x92897bbc,
|
||||
0x33586a6b, 0x846e4d31, 0xb2c4c4c9, 0x5b657398, 0x58625658, 0xb89a8866,
|
||||
0xadbec5c3, 0x6a84a6ac, 0x31313131, 0xc7ab8331, 0xa9b8c6c3, 0x5566699b,
|
||||
0x3c313138, 0xc5b8a24f, 0x87a3c5c3, 0x58535274, 0x7b705f57, 0xc4c2b68f,
|
||||
0x8399c3c4, 0x3131315a, 0xb99a4a31, 0xc3c1c8b8, 0x6a90b1c0, 0x31313148,
|
||||
0xb89a6133, 0xb0c4c6c6, 0x6e7c97a1, 0x66535463, 0xc6c5947b, 0x314f97c4,
|
||||
0x5f313131, 0xaaa08a7a, 0xb6b5af9d, 0x52738fba, 0x573f3131, 0xaba99c69,
|
||||
0xa4a6a7ac, 0x838a94a5, 0xa58a716e, 0x7299adaf, 0x45313131, 0xc6bfaa69,
|
||||
0x7a859cb3, 0x80868a74, 0x4141586e, 0xad8e734c, 0x8994afb0, 0x91898184,
|
||||
0x8d8b9495, 0x9ab0a799, 0x31316888, 0x94553831, 0xa8b4b7aa, 0x8c8a8a9a,
|
||||
0x5e6f878c, 0x5b3e3c3f, 0xb0a88870, 0x99a4aab1, 0xa09b9597, 0x87acacac,
|
||||
0x3131576e, 0x8a553a31, 0xb1b5aba0, 0x8d959c9f, 0x5f6b7887, 0x55444247,
|
||||
0xa2958764, 0xa5aeb1b0, 0x9f9b9aa1, 0x9eafada8, 0x31395485, 0x75403131,
|
||||
0xb3b3af92, 0x878e969d, 0x727b8186, 0x4847505d, 0x92806f52, 0xa5a9ada6,
|
||||
0x9a97979f, 0xaab0a8a4, 0x405c719f, 0x4d363131, 0x9f958f66, 0x8a8f8f98,
|
||||
0x8694908f, 0x5457757b, 0x7e5b574e, 0xb1ad9a8a, 0x9aa3a7af, 0x9f9d9b9a,
|
||||
0x4f77849f, 0x31313341, 0x947d6346, 0x929f98a2, 0x8184848a, 0x7c7e8382,
|
||||
0x6e656a6e, 0xb0a38675, 0x91acb5b9, 0x77757b85, 0x838b8c84, 0x4a4e6673,
|
||||
0x83665b4f, 0x888e928b, 0x7e757679, 0x92939186, 0x6b767e86, 0x8980766b,
|
||||
0x909b9d9a, 0x6e717586, 0x8c807874, 0x848b8f91, 0x75727579, 0x87848178,
|
||||
0x787a8284, 0x7e7b7876, 0x83868684, 0x78797a81, 0x86837d7a, 0x83868888,
|
||||
0x7c7a7c7e, 0x8483827e, 0x7e808384, 0x7f7d7d7d, 0x7e7f8081, 0x7978797c,
|
||||
0x817f7e7c, 0x7d7e8080, 0x817e7e7d, 0x81828282, 0x7e7d7d80, 0x8383817f,
|
||||
0x7f818384, 0x7e7e7d7e, 0x80818180, 0x7e7e7e7e, 0x81807f7e, 0x7f7e8080,
|
||||
0x817f807e, 0x81828282, 0x7c7d7e80, 0x8281807d, 0x80818182, 0x80818080,
|
||||
0x7d7e7f80, 0x7e7c7c7d, 0x8181807f, 0x80808081, 0x81818080, 0x7e808181,
|
||||
0x7e7e7d7e, 0x807f7f7e, 0x81808080, 0x80808180, 0x7f7f8080, 0x7e7e7e7e,
|
||||
0x7f7e7e7e, 0x807f807f, 0x81808080, 0x7e808181, 0x7c7c7e7e, 0x807e7e7d,
|
||||
0x80808080, 0x80808080, 0x7e7e8080, 0x7e7e7e7e, 0x7f7f7e7e, 0x80807f7f,
|
||||
0x80808080, 0x80818080, 0x7e7e8080, 0x7e7e7e7d, 0x7e7e7f7f, 0x8080807f,
|
||||
0x80808080, 0x807f8080, 0x807f7e7f, 0x7f7f7f7f, 0x807f807f, 0x8180807f,
|
||||
0x807f8080, 0x7e7e7e7d, 0x80807f7e, 0x81808080, 0x7f808080, 0x7e7f7f7f,
|
||||
0x80807f7f, 0x7f7f8080, 0x7f807f7e, 0x80808080, 0x7e808080, 0x7e7e7e7e,
|
||||
0x8080807f, 0x7f808080, 0x7e7f7f7f, 0x80807f80, 0x7f807f80, 0x807f807f,
|
||||
0x80808080, 0x7f7f7f7f, 0x8080807f, 0x7f7f7f7f, 0x807f807f, 0x80808080,
|
||||
0x7f808080, 0x7f807e7f, 0x80808080, 0x7f7f7e7f, 0x807f8080, 0x80808080,
|
||||
0x80807f80, 0x7f7f7e7f, 0x7f7f7f7f, 0x80808080, 0x80808080, 0x7e7e7e7f,
|
||||
0x7f7e7e7f, 0x7e7f7f80, 0x80807f7f, 0x807f7f7f, 0x807f8080, 0x7f7f7f80,
|
||||
0x80807e7e, 0x81808080, 0x7f7f8080, 0x7e7e7e7e, 0x945f7880, 0x787c908a,
|
||||
0x89aaa75b, 0xa17f6868, 0x43617b95, 0x76aeaa97, 0x97ac5b4e, 0x886e4f76,
|
||||
0x31889099, 0x86acbb7a, 0x98a96e6e, 0x7152457c, 0x7d8a9eab, 0x8a979086,
|
||||
0x8c57515f, 0x8f7c8380, 0x858e9994, 0x81858780, 0x6487877c, 0x78756d6a,
|
||||
0x927c8774, 0x91899689, 0x7b718786, 0x66766780, 0x797d756d, 0x9c938f83,
|
||||
0x7b7c828d, 0x7973737f, 0x8c7a8070, 0x8383847a, 0x8b8c8384, 0x6b898079,
|
||||
0x7d817c79, 0x848f8681, 0x89949187, 0x8691887e, 0x80817e87, 0x817b7886,
|
||||
0x7578707a, 0x776a666d, 0x867d7978, 0x97918e8a, 0x979d9491, 0xa2999c96,
|
||||
0x476cb0a4, 0x38505d80, 0x6b565862, 0x887e7c7b, 0x596a7975, 0x686d7052,
|
||||
0xa4afac7f, 0xb3bdc3c0, 0x73bcc3bd, 0x31527b67, 0x604d5a31, 0xa19e9587,
|
||||
0x76818699, 0x3e4b3e47, 0x9a876d4a, 0xc3bbc1c8, 0xc3bebfc3, 0x3889317e,
|
||||
0x70513131, 0xb7ada777, 0x717cb6b5, 0x42315a77, 0x714a3146, 0xc1c99f99,
|
||||
0xbec5c3c7, 0x3131c4b7, 0x31313145, 0xc8b3847e, 0x93c0c1bc, 0x314a5960,
|
||||
0x45473a31, 0xbab98f71, 0xc3c5c3c2, 0xbfbeb7c3, 0x31683165, 0x8fb33131,
|
||||
0xbfc5bab5, 0x52348ec1, 0x5f313131, 0xad976a5a, 0xc4c3c6c1, 0xb0b0c3c3,
|
||||
0x6a3175c0, 0x73313149, 0xbfcdb595, 0x3f8ebebb, 0x31313f47, 0x8c7b603f,
|
||||
0xbebeb9aa, 0xaebfc3c2, 0x3173bfad, 0x3131335b, 0xc9c09d7a, 0x79b6baba,
|
||||
0x31373f31, 0x8c765231, 0xbbb2a7ac, 0xc0c2b1ad, 0x5fc3abbd, 0x31393131,
|
||||
0xc0b28e31, 0xc2b5bac9, 0x313131b3, 0x78603131, 0xbaacab82, 0xc5b8abb9,
|
||||
0xc5adbbbe, 0x594131a7, 0xa54b3131, 0xb6bccca8, 0x313c95c1, 0x4c313139,
|
||||
0xa5ad8c85, 0x9cabafad, 0xafbfc0c3, 0x31315dc1, 0x8e313131, 0xbac6c6aa,
|
||||
0x31abc6b3, 0x31313131, 0xba908165, 0xa1b4b2a8, 0xb3c3b69c, 0x31a1c1bb,
|
||||
0x3131545e, 0xccaa9b53, 0x86c0b0b6, 0x31383935, 0x99805635, 0xaea89fb2,
|
||||
0xc0c69da5, 0x9dc3b1c2, 0x31315231, 0xb39da431, 0xc2bfbebe, 0x313a3185,
|
||||
0x87733331, 0xb5a4af9d, 0xc2b39fa5, 0xa3beb2bf, 0x315f3131, 0xaaa25131,
|
||||
0xc1b3becb, 0x3e3135c3, 0x724d3131, 0xb8a9ad9b, 0xbea6acc1, 0xb8bbb8bd,
|
||||
0x316d316b, 0x9b7f3131, 0xbac3c8c0, 0x3f3161b1, 0x63343131, 0xb0b5aa8d,
|
||||
0xa499a5bd, 0xc3b2b7c5, 0x645f31a1, 0x8f543131, 0xbcc2bfa5, 0x443a8fc3,
|
||||
0x4f31313a, 0xaead9b81, 0x9ba9b6be, 0xc8a5b1b9, 0x9d4c31b5, 0x94993131,
|
||||
0xbbb8c584, 0x4d31a5c7, 0x40313154, 0xb2a48f78, 0xa5acbdc1, 0xc5afa7b6,
|
||||
0xb16231b8, 0x90b23131, 0xb9b3c176, 0x5d319dca, 0x7031315f, 0xacaa8c76,
|
||||
0xacaabbbd, 0xc7abaac3, 0x318331ad, 0x79bd3131, 0xc0b3ba83, 0x6c3187c6,
|
||||
0x73313152, 0xb2af9177, 0xb1a3a7c5, 0x91ba9ea9, 0x3175a831, 0xa4b98131,
|
||||
0xc6b2b9cd, 0x386c316c, 0x74623331, 0xc5baa896, 0xb2a7a4c1, 0x89c794a1,
|
||||
0x316bab31, 0xac688f31, 0xc8afb6cd, 0x366d3166, 0x72653c31, 0xc5b8ab94,
|
||||
0xa8b0a8bd, 0x91c58a8f, 0x317fa531, 0xa8718631, 0xb7adadcd, 0x3f753169,
|
||||
0x7a653d31, 0xc5b6a88d, 0xaaafa5bf, 0x8bc59097, 0x316dab31, 0xac699331,
|
||||
0xb5b1b3b1, 0x39703164, 0x7b6a3f31, 0xc4bda28c, 0xa9aba1a7, 0xa8c38c91,
|
||||
0x319e9031, 0x8b77be31, 0xc0b2afb6, 0x4d774281, 0x795d3131, 0xc3bea887,
|
||||
0xa7ad9faa, 0xc8ae9197, 0x31b13131, 0x62c28031, 0xc5afaccd, 0x835c31b8,
|
||||
0x706f3131, 0xc3a48a6e, 0xb7aea3b8, 0xb39c8aab, 0xa3a231a2, 0xc6653131,
|
||||
0xb8afcd81, 0x5d367bc1, 0x6431314a, 0xb88e8071, 0xa48fb8c5, 0xa68a87b9,
|
||||
0x3131c7b7, 0x6b3131a8, 0xb6c863c3, 0x49bac1b4, 0x31319575, 0x8a5b6937,
|
||||
0x92b0ae93, 0x86a6b2ad, 0xc4bba79d, 0x31c63131, 0x3fb33131, 0xc1b8b5c8,
|
||||
0x948d76b3, 0x4c513131, 0xa89c7955, 0xa99791ad, 0xa7a2798a, 0x31c5b899,
|
||||
0x31317531, 0xcb31a188, 0xbac5baad, 0x319c9662, 0x44465e31, 0xa5a08c8c,
|
||||
0x92aaa2a2, 0x8d94988e, 0x3eb1c696, 0x3131bb87, 0xa250634d, 0x9abbb8ad,
|
||||
0x3168a373, 0x51455b48, 0xa7a8947c, 0x7e90aca4, 0x8582967a, 0x94c0b29f,
|
||||
0x318fbe31, 0x5d417131, 0xb2c1b1a5, 0x31949d87, 0x4845573e, 0x9fa08b7b,
|
||||
0x83a09f9c, 0x7983867b, 0xc5afa290, 0xa03131ac, 0x8c573131, 0xb6b59a38,
|
||||
0xab9cadc9, 0x4f413165, 0x7d6f4a36, 0xbaa0aaa2, 0x818186aa, 0x93756a6c,
|
||||
0xc4c1ac9b, 0x31c2315a, 0x3f7e3731, 0xc8b7a67d, 0xb8ada5c1, 0x3c54413e,
|
||||
0x82786631, 0xb7b3b099, 0x7b847fa0, 0x887b6757, 0xc3c3b197, 0xa3936fb9,
|
||||
0x37313131, 0xbfb66931, 0xb7c2c3c8, 0x47504f84, 0x7a543131, 0xc5b69f8e,
|
||||
0x6d959dbe, 0x625d575c, 0xc2a0917d, 0x9fc1c4c3, 0x3169b645, 0x48313c31,
|
||||
0xc3c2bdb5, 0x64a8c4c5, 0x31334f4e, 0x97805c38, 0xadc3c6b9, 0x4765929c,
|
||||
0x725a514f, 0xc3bfb38a, 0x91c3c3c4, 0x3153b431, 0x555e4c31, 0xc8c2c4a5,
|
||||
0x5bbec4c5, 0x31314c3b, 0x986f5f3a, 0xc1c3c6af, 0x4a62a5a6, 0x4d3e493b,
|
||||
0xbdb39379, 0xc3c4c3c4, 0x9a31a4c2, 0x41313165, 0xbec64c31, 0xc0c5c2bf,
|
||||
0x54476bab, 0x70363137, 0xc5bb8f6f, 0x92b2c1c5, 0x363f5480, 0x94624541,
|
||||
0xc5c5b5a7, 0xb6c4c3c3, 0xb04466a2, 0x5e313131, 0xb6c77a34, 0xafc5bfc3,
|
||||
0x4f514789, 0x714c3131, 0xc5c09d7e, 0x7eb2b7bf, 0x3c445b65, 0x8f635141,
|
||||
0xc3c3aa9a, 0xacb8bebb, 0x3166a1af, 0x313131b8, 0xb67f3c89, 0xbbc7bca4,
|
||||
0x4c4d92a4, 0x53313c5f, 0x9f917571, 0xafb4c0bd, 0x5d5075a6, 0x693a3847,
|
||||
0xafa5876c, 0xb3b8bbc0, 0xa79a9aad, 0x3645658c, 0x718b3931, 0xb5bcaf34,
|
||||
0xa0a5a0c0, 0x4a6d5d9a, 0x6d714e37, 0xb19f9486, 0x9ba7a8a8, 0x615a6b77,
|
||||
0x7169384b, 0xa5ad927b, 0x9eaab6aa, 0xa094979a, 0xb83187a0, 0x8c3f3131,
|
||||
0x92b94d36, 0x99b09ac8, 0x7b7563ad, 0x73554e3c, 0x9f90875b, 0xa1ada2a5,
|
||||
0x707d7b9b, 0x4966573f, 0x8c868661, 0xaaa6b0b3, 0x8c9192a0, 0x89969689,
|
||||
0x3179c131, 0x49357244, 0xbc878489, 0x80b0b2ab, 0x4974896d, 0x6658655c,
|
||||
0x97968f7d, 0x909fa8a5, 0x4f718084, 0x523e7149, 0xa7818976, 0xa3a6a4b6,
|
||||
0x86898a9f, 0x9893958e, 0x3ba2aa55, 0x39456254, 0x91708679, 0x93a8af9a,
|
||||
0x61849176, 0x5d5b6968, 0x8c877f79, 0x989da29a, 0x73819194, 0x6a4f6b70,
|
||||
0x87726555, 0x9da79189, 0x8d959caa, 0x8e818089, 0x6583928f, 0x5b5b31c9,
|
||||
0x9a553c75, 0xa280976d, 0x8f819d95, 0x71736594, 0x786b5d70, 0x9483807b,
|
||||
0x968e9491, 0x7b7e7e90, 0x6c5d6571, 0x84746073, 0x9fa48886, 0x8e939795,
|
||||
0x817d7c82, 0x8c989486, 0x543caf5d, 0x4f4c7a61, 0x868e7c8c, 0x8d999291,
|
||||
0x7270948e, 0x72667776, 0x807a7777, 0x8e8e8a8b, 0x84848f91, 0x76727c81,
|
||||
0x79676e76, 0x88816e79, 0x93998987, 0x878b918f, 0x827d7e83, 0x68978c80,
|
||||
0x665aa06a, 0x715b7974, 0x7e867381, 0x85958e91, 0x797b918b, 0x74707a7b,
|
||||
0x7b797977, 0x8a8a8789, 0x84858e8e, 0x77797f81, 0x7a767677, 0x8478747c,
|
||||
0x8a8d7a7d, 0x898c8881, 0x7f7e8480, 0x83807d80, 0x8e8e8483, 0x7c7f7391,
|
||||
0x73786a69, 0x757c7365, 0x89897e7a, 0x868c8989, 0x7c817f80, 0x77797776,
|
||||
0x81807976, 0x86898681, 0x83868685, 0x787b7e7e, 0x79797676, 0x80807f7b,
|
||||
0x807b8680, 0x7b7f767b, 0x81857c7d, 0x84878782, 0x89858787, 0x7587918e,
|
||||
0x66626594, 0x845f6574, 0x8c818079, 0x8b8a8f8f, 0x7b7a7b8f, 0x776d707a,
|
||||
0x80797577, 0x8f878585, 0x8686888e, 0x77797b80, 0x76747375, 0x85837b7b,
|
||||
0x89888786, 0x80808486, 0x7979787c, 0x7c7b7877, 0x8583827d, 0x86868686,
|
||||
0x7d7e8183, 0x7978797b, 0x7e7b7979, 0x84848080, 0x83848486, 0x7b7c7e80,
|
||||
0x7b7a7b7b, 0x807f7d7c, 0x83838481, 0x80818384, 0x7b7c7c7e, 0x7c7b7b7b,
|
||||
0x8180807f, 0x81828282, 0x7e808080, 0x7c7c7c7e, 0x7e7e7e7c, 0x8181807e,
|
||||
0x81818181, 0x7f808081, 0x7c7d7e7e, 0x7e7e7e7d, 0x8080807f, 0x80818180,
|
||||
0x7e7f8080, 0x7d7c7c7e, 0x807e7e7d, 0x81818180, 0x7f808080, 0x7e7e7e7e,
|
||||
0x7e7e7e7d, 0x8080807e, 0x80808080, 0x7e7f8080, 0x807f7f7f, 0x807f7f7f,
|
||||
0x7f808080, 0x7e7f7e7f, 0x7e7e7f7f, 0x7e7e7e7f, 0x7f7f8080, 0x7f7f7f80,
|
||||
0x80808080, 0x807f8080, 0x7f7f8080, 0x7e7f7e80, 0x7f7f7f7f, 0x7f7f7e7f,
|
||||
0x7f7f7f7f, 0x80808080, 0x7e7e8080, 0x7e7f7e7f, 0x7e7e7e7f, 0x7f7f7f7f,
|
||||
0x0};
|
||||
|
||||
|
||||
// irrKlang 3D sound engine example 03,
|
||||
// demonstrating playing sounds directly from memory
|
||||
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
|
||||
|
||||
#ifdef __BIG_ENDIAN__
|
||||
printf("This example won't work on power PCs because the way we are "\
|
||||
"storing the wave data in this example source file. Sorry.");
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
// To make irrKlang know about the memory we want to play, we register
|
||||
// the memory chunk as a sound source. We specify the name "testsound.wav", so
|
||||
// we can use the name later for playing back the sound. Note that you
|
||||
// could also specify a better fitting name like "ok.wav".
|
||||
// The method addSoundSource() also returns a pointer to the created sound source,
|
||||
// it can be used as parameter for play2D() later, if you don't want to
|
||||
// play sounds via string names.
|
||||
|
||||
engine->addSoundSourceFromMemory(memorySoundData, memorySoundDataSize, "testsound.wav");
|
||||
|
||||
// now play the sound until user presses escape
|
||||
|
||||
printf("\nPlaying sound from memory.\n");
|
||||
printf("Press any key to play, ESCAPE to end program.\n");
|
||||
|
||||
while(true) // endless loop until user exits
|
||||
{
|
||||
// play the sound we added to memory
|
||||
engine->play2D("testsound.wav");
|
||||
|
||||
if (getch() == 27)
|
||||
break; // user pressed ESCAPE key, cancel
|
||||
}
|
||||
|
||||
engine->drop(); // delete engine
|
||||
return 0;
|
||||
}
|
68
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04.OverrideFileAccess.cbp
vendored
Normal file
68
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04.OverrideFileAccess.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="04.OverrideFileAccess"/>
|
||||
<Option makefile="Makefile"/>
|
||||
<Option makefile_is_custom="0"/>
|
||||
<Option active_target="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="..\..\bin\win32-gcc\04.OverrideFileAccess.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\04.OverrideFileAccess.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>
|
19
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04.OverrideFileAccess.sln
vendored
Normal file
19
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04.OverrideFileAccess.sln
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04.OverrideFileAccess", "04.OverrideFileAccess.vcproj", "{C9328295-3D0A-446B-9522-6C1B6FC7F4E6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C9328295-3D0A-446B-9522-6C1B6FC7F4E6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{C9328295-3D0A-446B-9522-6C1B6FC7F4E6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{C9328295-3D0A-446B-9522-6C1B6FC7F4E6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C9328295-3D0A-446B-9522-6C1B6FC7F4E6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04.OverrideFileAccess.vcproj
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04.OverrideFileAccess.vcproj
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="04.OverrideFileAccess"
|
||||
ProjectGUID="{C9328295-3D0A-446B-9522-6C1B6FC7F4E6}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/04.OverrideFileAccess.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/04.OverrideFileAccess.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/04.OverrideFileAccess.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\main.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@@ -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 /* 04.OverrideFileAccess */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = 04.OverrideFileAccess; 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 /* 04.OverrideFileAccess */,
|
||||
);
|
||||
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 /* 04.OverrideFileAccess */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "04.OverrideFileAccess" */;
|
||||
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 = 04.OverrideFileAccess;
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923308733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
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 = 04.OverrideFileAccess;
|
||||
};
|
||||
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 = {
|
||||
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 "04.OverrideFileAccess" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923608733DC60010E9CD /* Debug */,
|
||||
1DEB923708733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
90
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04_OverrideFileAccess.dsp
vendored
Normal file
90
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04_OverrideFileAccess.dsp
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# Microsoft Developer Studio Project File - Name="04_OverrideFileAccess" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=04_OverrideFileAccess - Win32 Debug
|
||||
!MESSAGE Dies ist kein g<>ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f<>hren Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "04_OverrideFileAccess.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie k<>nnen beim Ausf<73>hren von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "04_OverrideFileAccess.mak" CFG="04_OverrideFileAccess - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE F<>r die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "04_OverrideFileAccess - Win32 Release" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE "04_OverrideFileAccess - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "04_OverrideFileAccess - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "04_OverrideFileAccess___Win32_Release"
|
||||
# PROP BASE Intermediate_Dir "04_OverrideFileAccess___Win32_Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "04_OverrideFileAccess___Win32_Release"
|
||||
# PROP Intermediate_Dir "04_OverrideFileAccess___Win32_Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
|
||||
# ADD RSC /l 0xc07 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/win32-visualstudio/04.OverrideFileAccess.exe" /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ELSEIF "$(CFG)" == "04_OverrideFileAccess - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0xc07 /d "_DEBUG"
|
||||
# ADD RSC /l 0xc07 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/win32-visualstudio/04.OverrideFileAccess.exe" /pdbtype:sept /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "04_OverrideFileAccess - Win32 Release"
|
||||
# Name "04_OverrideFileAccess - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04_OverrideFileAccess.dsw
vendored
Normal file
29
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/04_OverrideFileAccess.dsw
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL<45>SCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "04_OverrideFileAccess"=.\04_OverrideFileAccess.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
8
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/Makefile
vendored
Normal file
8
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/Makefile
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
CPP = g++
|
||||
OPTS = -I"../../include" -L"/usr/lib" ../../bin/linux-gcc/libIrrKlang.so -pthread
|
||||
|
||||
all:
|
||||
$(CPP) main.cpp -m32 -o example $(OPTS)
|
||||
|
||||
clean:
|
||||
rm example
|
157
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/main.cpp
vendored
Normal file
157
SQCSim2021/external/irrKlang-1.6.0/examples/04.OverrideFileAccess/main.cpp
vendored
Normal file
@@ -0,0 +1,157 @@
|
||||
// This example will show how to override file access with irrKlang.
|
||||
// This is useful if you want to read sounds from other sources than
|
||||
// just files, for example from custom internet streams or
|
||||
// an own encypted archive format.
|
||||
|
||||
// lets start: include irrKlang headers and other input/output stuff
|
||||
// needed to print and get user input from the console.
|
||||
#if defined(WIN32)
|
||||
#include <conio.h>
|
||||
#else
|
||||
#include "../common/conio.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <irrKlang.h>
|
||||
using namespace irrklang;
|
||||
|
||||
#pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll
|
||||
|
||||
// To start, we need to implement the class IFileFactory, which irrKlang uses
|
||||
// to open files. The interface consists only of one single method named
|
||||
// createFileReader(const ik_c8* filename). In this method, we create return
|
||||
// our own file access class and return it:
|
||||
|
||||
// a class implementing the IFileFactory interface to override irrklang file access
|
||||
class CMyFileFactory : public IFileFactory
|
||||
{
|
||||
public:
|
||||
|
||||
//! Opens a file for read access. Simply return 0 if file not found.
|
||||
virtual IFileReader* createFileReader(const ik_c8* filename)
|
||||
{
|
||||
printf("MyFileFactory: open file %s\n", filename);
|
||||
|
||||
FILE* file = fopen(filename, "rb");
|
||||
if (!file)
|
||||
return 0;
|
||||
|
||||
return new CMyReadFile(file, filename);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
// To write our own file access methods returned in the method above,
|
||||
// we only need to implement the IFileReader interface, which has some
|
||||
// standard methods like read(), seek(), getPos() etc. In this example
|
||||
// we simply use fopen, fread, fseek etc and print to the console
|
||||
// when we are reading or seeking:
|
||||
|
||||
// an own implementation of IReadFile to overwrite read access to files
|
||||
class CMyReadFile : public IFileReader
|
||||
{
|
||||
public:
|
||||
|
||||
// constructor, store size of file and filename
|
||||
CMyReadFile(FILE* openedFile, const ik_c8* filename)
|
||||
{
|
||||
File = openedFile;
|
||||
strcpy(Filename, filename);
|
||||
|
||||
// get file size
|
||||
fseek(File, 0, SEEK_END);
|
||||
FileSize = ftell(File);
|
||||
fseek(File, 0, SEEK_SET);
|
||||
}
|
||||
|
||||
~CMyReadFile()
|
||||
{
|
||||
fclose(File);
|
||||
}
|
||||
|
||||
//! reads data, returns how much was read
|
||||
ik_s32 read(void* buffer, ik_u32 sizeToRead)
|
||||
{
|
||||
printf("CMyReadFile: read %d bytes\n", sizeToRead);
|
||||
return (ik_s32)fread(buffer, 1, sizeToRead, File);
|
||||
}
|
||||
|
||||
//! changes position in file, returns true if successful
|
||||
bool seek(ik_s32 finalPos, bool relativeMovement)
|
||||
{
|
||||
printf("CMyReadFile: seek to position %d\n", finalPos);
|
||||
return fseek(File, finalPos, relativeMovement ? SEEK_CUR : SEEK_SET) == 0;
|
||||
}
|
||||
|
||||
//! returns size of file
|
||||
ik_s32 getSize()
|
||||
{
|
||||
return FileSize;
|
||||
}
|
||||
|
||||
//! returns where in the file we are.
|
||||
ik_s32 getPos()
|
||||
{
|
||||
return ftell(File);
|
||||
}
|
||||
|
||||
//! returns name of file
|
||||
const ik_c8* getFileName()
|
||||
{
|
||||
return Filename;
|
||||
}
|
||||
|
||||
FILE* File;
|
||||
char Filename[1024];
|
||||
ik_s32 FileSize;
|
||||
|
||||
}; // end class CMyReadFile
|
||||
|
||||
}; // end class CMyFileFactory
|
||||
|
||||
|
||||
|
||||
// The main work is done, the only thing missing is to start up the
|
||||
// sound engine and tell it to use the created FileFactory for file access:
|
||||
|
||||
// irrKlang 3D sound engine example 04,
|
||||
// demonstrating how to override file access of irrKlang
|
||||
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
|
||||
|
||||
// create an instance of the file factory and let
|
||||
// irrKlang know about it. irrKlang will drop() the
|
||||
// factory itself if it doesn't need it any longer.
|
||||
|
||||
CMyFileFactory* factory = new CMyFileFactory();
|
||||
engine->addFileFactory(factory);
|
||||
factory->drop(); // we don't need it anymore, delete it
|
||||
|
||||
// that's it, play some sounds with our overriden
|
||||
// file access methods:
|
||||
|
||||
printf("\nDemonstrating file access overriding.\n");
|
||||
printf("Press any key to start playing sounds, then press escape to cancel\n");
|
||||
|
||||
getch();
|
||||
|
||||
engine->play2D("../../media/getout.ogg", true);
|
||||
|
||||
while(true) // endless loop until user exits
|
||||
{
|
||||
// play some wave sound
|
||||
engine->play2D("../../media/explosion.wav");
|
||||
|
||||
if (getch() == 27)
|
||||
break; // user pressed ESCAPE key, cancel
|
||||
}
|
||||
|
||||
engine->drop(); // delete engine
|
||||
return 0;
|
||||
}
|
68
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05.Effects.cbp
vendored
Normal file
68
SQCSim2021/external/irrKlang-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>
|
17
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05.Effects.sln
vendored
Normal file
17
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05.Effects.sln
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05.Effects", "05.Effects.vcproj", "{E1365793-F062-4EE2-B5D3-BB517EBF7D5A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E1365793-F062-4EE2-B5D3-BB517EBF7D5A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{E1365793-F062-4EE2-B5D3-BB517EBF7D5A}.Release|Win32.ActiveCfg = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05.Effects.vcproj
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05.Effects.vcproj
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="05.Effects"
|
||||
ProjectGUID="{E1365793-F062-4EE2-B5D3-BB517EBF7D5A}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/05.Effects.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/05.Effects.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/05.Effects.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\main.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
245
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05.Effects.xcodeproj/project.pbxproj
vendored
Normal file
245
SQCSim2021/external/irrKlang-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 = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
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 = {
|
||||
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 */;
|
||||
}
|
90
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05_Effects.dsp
vendored
Normal file
90
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05_Effects.dsp
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# Microsoft Developer Studio Project File - Name="05_Effects" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=05_Effects - Win32 Debug
|
||||
!MESSAGE Dies ist kein g<>ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f<>hren Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "05_Effects.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie k<>nnen beim Ausf<73>hren von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "05_Effects.mak" CFG="05_Effects - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE F<>r die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "05_Effects - Win32 Release" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE "05_Effects - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "05_Effects - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "05_Effects___Win32_Release"
|
||||
# PROP BASE Intermediate_Dir "05_Effects___Win32_Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "05_Effects___Win32_Release"
|
||||
# PROP Intermediate_Dir "05_Effects___Win32_Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
|
||||
# ADD RSC /l 0xc07 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/win32-visualstudio/05.Effects.exe" /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ELSEIF "$(CFG)" == "05_Effects - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0xc07 /d "_DEBUG"
|
||||
# ADD RSC /l 0xc07 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/win32-visualstudio/05.Effects.exe" /pdbtype:sept /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "05_Effects - Win32 Release"
|
||||
# Name "05_Effects - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05_Effects.dsw
vendored
Normal file
29
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/05_Effects.dsw
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL<45>SCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "05_Effects"=.\05_Effects.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
8
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/Makefile
vendored
Normal file
8
SQCSim2021/external/irrKlang-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/libIrrKlang.so -pthread
|
||||
|
||||
all:
|
||||
$(CPP) main.cpp -m32 -o example $(OPTS)
|
||||
|
||||
clean:
|
||||
rm example
|
135
SQCSim2021/external/irrKlang-1.6.0/examples/05.Effects/main.cpp
vendored
Normal file
135
SQCSim2021/external/irrKlang-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;
|
||||
}
|
68
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06.Recording.cbp
vendored
Normal file
68
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06.Recording.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="06.Recording"/>
|
||||
<Option makefile="Makefile"/>
|
||||
<Option makefile_is_custom="0"/>
|
||||
<Option active_target="1"/>
|
||||
<Option compiler="0"/>
|
||||
<Build>
|
||||
<Target title="Debug">
|
||||
<Option output="..\..\bin\win32-gcc\06.Recording.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\06.Recording.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>
|
17
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06.Recording.sln
vendored
Normal file
17
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06.Recording.sln
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06.Recording", "06.Recording.vcproj", "{BF01F846-8239-4712-8C60-0E17DF3FECA1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{BF01F846-8239-4712-8C60-0E17DF3FECA1}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{BF01F846-8239-4712-8C60-0E17DF3FECA1}.Release|Win32.ActiveCfg = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06.Recording.vcproj
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06.Recording.vcproj
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="06.Recording"
|
||||
ProjectGUID="{BF01F846-8239-4712-8C60-0E17DF3FECA1}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/06.Recording.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/06.Recording.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="../../bin/win32-visualstudio/06.Recording.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="../../lib/win32-visualstudio"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\main.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
90
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06_Recording.dsp
vendored
Normal file
90
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06_Recording.dsp
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# Microsoft Developer Studio Project File - Name="06_Recording" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** NICHT BEARBEITEN **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=06_Recording - Win32 Debug
|
||||
!MESSAGE Dies ist kein g<>ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
|
||||
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f<>hren Sie den Befehl
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "06_Recording.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE Sie k<>nnen beim Ausf<73>hren von NMAKE eine Konfiguration angeben
|
||||
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "06_Recording.mak" CFG="06_Recording - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE F<>r die Konfiguration stehen zur Auswahl:
|
||||
!MESSAGE
|
||||
!MESSAGE "06_Recording - Win32 Release" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE "06_Recording - Win32 Debug" (basierend auf "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "06_Recording - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "06_Recording___Win32_Release"
|
||||
# PROP BASE Intermediate_Dir "06_Recording___Win32_Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "06_Recording___Win32_Release"
|
||||
# PROP Intermediate_Dir "06_Recording___Win32_Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
|
||||
# ADD RSC /l 0xc07 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin/win32-visualstudio/06.Recording.exe" /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ELSEIF "$(CFG)" == "06_Recording - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0xc07 /d "_DEBUG"
|
||||
# ADD RSC /l 0xc07 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin/win32-visualstudio/06.Recording.exe" /pdbtype:sept /libpath:"../../lib/Win32-visualStudio"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "06_Recording - Win32 Release"
|
||||
# Name "06_Recording - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\main.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
29
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06_Recording.dsw
vendored
Normal file
29
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/06_Recording.dsw
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL<45>SCHT WERDEN!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "06_Recording"=.\06_Recording.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
127
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/main.cpp
vendored
Normal file
127
SQCSim2021/external/irrKlang-1.6.0/examples/06.Recording/main.cpp
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
// This example will show how to record and play back audio. Additionally,
|
||||
// the example shows how to write recorded audio out into a .WAV file.
|
||||
// Audio recording is currently only supported on windows, so this
|
||||
// example won't work on Linux or MacOS for now.
|
||||
|
||||
// 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.
|
||||
#include <stdio.h>
|
||||
#include <irrKlang.h>
|
||||
|
||||
// include console I/O methods (conio.h for windows, our wrapper in linux)
|
||||
#if defined(WIN32)
|
||||
#include <conio.h>
|
||||
#else
|
||||
#include "../common/conio.h"
|
||||
#endif
|
||||
#pragma comment(lib, "irrKlang.lib") // link with irrKlang.dll
|
||||
|
||||
|
||||
using namespace irrklang;
|
||||
|
||||
void writeWaveFile(const char* filename, SAudioStreamFormat format, void* data);
|
||||
|
||||
// The following will simply start up the irrklang engine, create an audio recorder, record
|
||||
// some audio when the user presses a key, and save that data to a wave file. Additionally,
|
||||
// the data is added into the sound engine and played back as well.
|
||||
int main(int argc, const char** argv)
|
||||
{
|
||||
ISoundEngine* engine = createIrrKlangDevice();
|
||||
IAudioRecorder* recorder = createIrrKlangAudioRecorder(engine);
|
||||
|
||||
if (!engine || !recorder)
|
||||
{
|
||||
printf("Could not create audio engine or audio recoder\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("\nPress any key to start recording audio...\n");
|
||||
getch();
|
||||
|
||||
// record some audio
|
||||
|
||||
recorder->startRecordingBufferedAudio();
|
||||
|
||||
printf("\nRECORDING. Press any key to stop...\n");
|
||||
getch();
|
||||
|
||||
recorder->stopRecordingAudio();
|
||||
|
||||
printf("\nRecording done, recorded %dms of audio.\n",
|
||||
recorder->getAudioFormat().FrameCount * 1000 / recorder->getAudioFormat().SampleRate );
|
||||
printf("Press any key to play back recorded audio...\n");
|
||||
getch();
|
||||
|
||||
// write the recorded audio as wave file
|
||||
writeWaveFile("recorded.wav", recorder->getAudioFormat(), recorder->getRecordedAudioData());
|
||||
|
||||
// play the recorded audio
|
||||
recorder->addSoundSourceFromRecordedAudio("myRecordedVoice");
|
||||
engine->play2D("myRecordedVoice", true);
|
||||
|
||||
// wait until user presses a key
|
||||
printf("\nPress any key to quit...");
|
||||
getch();
|
||||
|
||||
recorder->drop();
|
||||
engine->drop(); // delete engine
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// writes the recorded audio data into a .WAV file
|
||||
void writeWaveFile(const char* filename, SAudioStreamFormat format, void* data)
|
||||
{
|
||||
if (!data)
|
||||
{
|
||||
printf("Could not save recorded data to %s, nothing recorded\n", filename);
|
||||
return;
|
||||
}
|
||||
|
||||
FILE* file = fopen(filename, "wb");
|
||||
|
||||
if (file)
|
||||
{
|
||||
// write wave header
|
||||
unsigned short formatType = 1;
|
||||
unsigned short numChannels = format.ChannelCount;
|
||||
unsigned long sampleRate = format.SampleRate;
|
||||
unsigned short bitsPerChannel = format.getSampleSize() * 8;
|
||||
unsigned short bytesPerSample = format.getFrameSize() ;
|
||||
unsigned long bytesPerSecond = format.getBytesPerSecond();
|
||||
unsigned long dataLen = format.getSampleDataSize();
|
||||
|
||||
const int fmtChunkLen = 16;
|
||||
const int waveHeaderLen = 4 + 8 + fmtChunkLen + 8;
|
||||
|
||||
unsigned long totalLen = waveHeaderLen + dataLen;
|
||||
|
||||
fwrite("RIFF", 4, 1, file);
|
||||
fwrite(&totalLen, 4, 1, file);
|
||||
fwrite("WAVE", 4, 1, file);
|
||||
fwrite("fmt ", 4, 1, file);
|
||||
fwrite(&fmtChunkLen, 4, 1, file);
|
||||
fwrite(&formatType, 2, 1, file);
|
||||
fwrite(&numChannels, 2, 1, file);
|
||||
fwrite(&sampleRate, 4, 1, file);
|
||||
fwrite(&bytesPerSecond, 4, 1, file);
|
||||
fwrite(&bytesPerSample, 2, 1, file);
|
||||
fwrite(&bitsPerChannel, 2, 1, file);
|
||||
|
||||
// write data
|
||||
|
||||
fwrite("data", 4, 1, file);
|
||||
fwrite(&dataLen, 4, 1, file);
|
||||
fwrite(data, dataLen, 1, file);
|
||||
|
||||
// finish
|
||||
|
||||
printf("Saved audio as %s\n", filename);
|
||||
fclose(file);
|
||||
}
|
||||
else
|
||||
printf("Could not open %s to write audio data\n", filename);
|
||||
}
|
428
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Enumerations.H
vendored
Normal file
428
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Enumerations.H
vendored
Normal file
@@ -0,0 +1,428 @@
|
||||
//
|
||||
// "$Id: Enumerations.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Enumerations for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Enumerations_H
|
||||
#define Fl_Enumerations_H
|
||||
|
||||
# include "Fl_Export.H"
|
||||
|
||||
|
||||
//
|
||||
// The FLTK version number; this is changed slightly from the beta versions
|
||||
// because the old "const double" definition would not allow for conditional
|
||||
// compilation...
|
||||
//
|
||||
// FL_VERSION is a double that describes the major and minor version numbers.
|
||||
// Version 1.1 is actually stored as 1.01 to allow for more than 9 minor
|
||||
// releases.
|
||||
//
|
||||
// The FL_MAJOR_VERSION, FL_MINOR_VERSION, and FL_PATCH_VERSION constants
|
||||
// give the integral values for the major, minor, and patch releases
|
||||
// respectively.
|
||||
//
|
||||
|
||||
#define FL_MAJOR_VERSION 1
|
||||
#define FL_MINOR_VERSION 1
|
||||
#define FL_PATCH_VERSION 7
|
||||
#define FL_VERSION ((double)FL_MAJOR_VERSION + \
|
||||
(double)FL_MINOR_VERSION * 0.01 + \
|
||||
(double)FL_PATCH_VERSION * 0.0001)
|
||||
|
||||
typedef unsigned char uchar;
|
||||
typedef unsigned long ulong;
|
||||
|
||||
enum Fl_Event { // events
|
||||
FL_NO_EVENT = 0,
|
||||
FL_PUSH = 1,
|
||||
FL_RELEASE = 2,
|
||||
FL_ENTER = 3,
|
||||
FL_LEAVE = 4,
|
||||
FL_DRAG = 5,
|
||||
FL_FOCUS = 6,
|
||||
FL_UNFOCUS = 7,
|
||||
FL_KEYDOWN = 8,
|
||||
FL_KEYUP = 9,
|
||||
FL_CLOSE = 10,
|
||||
FL_MOVE = 11,
|
||||
FL_SHORTCUT = 12,
|
||||
FL_DEACTIVATE = 13,
|
||||
FL_ACTIVATE = 14,
|
||||
FL_HIDE = 15,
|
||||
FL_SHOW = 16,
|
||||
FL_PASTE = 17,
|
||||
FL_SELECTIONCLEAR = 18,
|
||||
FL_MOUSEWHEEL = 19,
|
||||
FL_DND_ENTER = 20,
|
||||
FL_DND_DRAG = 21,
|
||||
FL_DND_LEAVE = 22,
|
||||
FL_DND_RELEASE = 23
|
||||
};
|
||||
#define FL_KEYBOARD FL_KEYDOWN
|
||||
|
||||
enum Fl_When { // Fl_Widget::when():
|
||||
FL_WHEN_NEVER = 0,
|
||||
FL_WHEN_CHANGED = 1,
|
||||
FL_WHEN_RELEASE = 4,
|
||||
FL_WHEN_RELEASE_ALWAYS= 6,
|
||||
FL_WHEN_ENTER_KEY = 8,
|
||||
FL_WHEN_ENTER_KEY_ALWAYS=10,
|
||||
FL_WHEN_ENTER_KEY_CHANGED=11,
|
||||
FL_WHEN_NOT_CHANGED = 2 // modifier bit to disable changed() test
|
||||
};
|
||||
|
||||
// Fl::event_key() and Fl::get_key(n) (use ascii letters for all other keys):
|
||||
#define FL_Button 0xfee8 // use Fl_Button+FL_*_MOUSE
|
||||
#define FL_BackSpace 0xff08
|
||||
#define FL_Tab 0xff09
|
||||
#define FL_Enter 0xff0d
|
||||
#define FL_Pause 0xff13
|
||||
#define FL_Scroll_Lock 0xff14
|
||||
#define FL_Escape 0xff1b
|
||||
#define FL_Home 0xff50
|
||||
#define FL_Left 0xff51
|
||||
#define FL_Up 0xff52
|
||||
#define FL_Right 0xff53
|
||||
#define FL_Down 0xff54
|
||||
#define FL_Page_Up 0xff55
|
||||
#define FL_Page_Down 0xff56
|
||||
#define FL_End 0xff57
|
||||
#define FL_Print 0xff61
|
||||
#define FL_Insert 0xff63
|
||||
#define FL_Menu 0xff67 // the "menu/apps" key on XFree86
|
||||
#define FL_Help 0xff68 // the 'help' key on Mac keyboards
|
||||
#define FL_Num_Lock 0xff7f
|
||||
#define FL_KP 0xff80 // use FL_KP+'x' for 'x' on numeric keypad
|
||||
#define FL_KP_Enter 0xff8d // same as Fl_KP+'\r'
|
||||
#define FL_KP_Last 0xffbd // use to range-check keypad
|
||||
#define FL_F 0xffbd // use FL_F+n for function key n
|
||||
#define FL_F_Last 0xffe0 // use to range-check function keys
|
||||
#define FL_Shift_L 0xffe1
|
||||
#define FL_Shift_R 0xffe2
|
||||
#define FL_Control_L 0xffe3
|
||||
#define FL_Control_R 0xffe4
|
||||
#define FL_Caps_Lock 0xffe5
|
||||
#define FL_Meta_L 0xffe7 // the left MSWindows key on XFree86
|
||||
#define FL_Meta_R 0xffe8 // the right MSWindows key on XFree86
|
||||
#define FL_Alt_L 0xffe9
|
||||
#define FL_Alt_R 0xffea
|
||||
#define FL_Delete 0xffff
|
||||
|
||||
// Fl::event_button():
|
||||
#define FL_LEFT_MOUSE 1
|
||||
#define FL_MIDDLE_MOUSE 2
|
||||
#define FL_RIGHT_MOUSE 3
|
||||
|
||||
// Fl::event_state():
|
||||
#define FL_SHIFT 0x00010000
|
||||
#define FL_CAPS_LOCK 0x00020000
|
||||
#define FL_CTRL 0x00040000
|
||||
#define FL_ALT 0x00080000
|
||||
#define FL_NUM_LOCK 0x00100000 // most X servers do this?
|
||||
#define FL_META 0x00400000 // correct for XFree86
|
||||
#define FL_SCROLL_LOCK 0x00800000 // correct for XFree86
|
||||
#define FL_BUTTON1 0x01000000
|
||||
#define FL_BUTTON2 0x02000000
|
||||
#define FL_BUTTON3 0x04000000
|
||||
#define FL_BUTTONS 0x7f000000 // All possible buttons
|
||||
#define FL_BUTTON(n) (0x00800000<<(n))
|
||||
|
||||
#ifdef __APPLE__
|
||||
# define FL_COMMAND FL_META
|
||||
#else
|
||||
# define FL_COMMAND FL_CTRL
|
||||
#endif // __APPLE__
|
||||
|
||||
enum Fl_Boxtype { // boxtypes (if you change these you must fix fl_boxtype.C):
|
||||
FL_NO_BOX = 0, FL_FLAT_BOX,
|
||||
|
||||
FL_UP_BOX, FL_DOWN_BOX,
|
||||
FL_UP_FRAME, FL_DOWN_FRAME,
|
||||
FL_THIN_UP_BOX, FL_THIN_DOWN_BOX,
|
||||
FL_THIN_UP_FRAME, FL_THIN_DOWN_FRAME,
|
||||
FL_ENGRAVED_BOX, FL_EMBOSSED_BOX,
|
||||
FL_ENGRAVED_FRAME, FL_EMBOSSED_FRAME,
|
||||
FL_BORDER_BOX, _FL_SHADOW_BOX,
|
||||
FL_BORDER_FRAME, _FL_SHADOW_FRAME,
|
||||
_FL_ROUNDED_BOX, _FL_RSHADOW_BOX,
|
||||
_FL_ROUNDED_FRAME, _FL_RFLAT_BOX,
|
||||
_FL_ROUND_UP_BOX, _FL_ROUND_DOWN_BOX,
|
||||
_FL_DIAMOND_UP_BOX, _FL_DIAMOND_DOWN_BOX,
|
||||
_FL_OVAL_BOX, _FL_OSHADOW_BOX,
|
||||
_FL_OVAL_FRAME, _FL_OFLAT_BOX,
|
||||
_FL_PLASTIC_UP_BOX, _FL_PLASTIC_DOWN_BOX,
|
||||
_FL_PLASTIC_UP_FRAME, _FL_PLASTIC_DOWN_FRAME,
|
||||
_FL_PLASTIC_THIN_UP_BOX, _FL_PLASTIC_THIN_DOWN_BOX,
|
||||
_FL_PLASTIC_ROUND_UP_BOX, _FL_PLASTIC_ROUND_DOWN_BOX,
|
||||
FL_FREE_BOXTYPE
|
||||
};
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUND_UP_BOX();
|
||||
#define FL_ROUND_UP_BOX fl_define_FL_ROUND_UP_BOX()
|
||||
#define FL_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_ROUND_UP_BOX()+1)
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_SHADOW_BOX();
|
||||
#define FL_SHADOW_BOX fl_define_FL_SHADOW_BOX()
|
||||
#define FL_SHADOW_FRAME (Fl_Boxtype)(fl_define_FL_SHADOW_BOX()+2)
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_ROUNDED_BOX();
|
||||
#define FL_ROUNDED_BOX fl_define_FL_ROUNDED_BOX()
|
||||
#define FL_ROUNDED_FRAME (Fl_Boxtype)(fl_define_FL_ROUNDED_BOX()+2)
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_RFLAT_BOX();
|
||||
#define FL_RFLAT_BOX fl_define_FL_RFLAT_BOX()
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_RSHADOW_BOX();
|
||||
#define FL_RSHADOW_BOX fl_define_FL_RSHADOW_BOX()
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_DIAMOND_BOX();
|
||||
#define FL_DIAMOND_UP_BOX fl_define_FL_DIAMOND_BOX()
|
||||
#define FL_DIAMOND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_DIAMOND_BOX()+1)
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_OVAL_BOX();
|
||||
#define FL_OVAL_BOX fl_define_FL_OVAL_BOX()
|
||||
#define FL_OSHADOW_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+1)
|
||||
#define FL_OVAL_FRAME (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+2)
|
||||
#define FL_OFLAT_BOX (Fl_Boxtype)(fl_define_FL_OVAL_BOX()+3)
|
||||
|
||||
extern FL_EXPORT Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX();
|
||||
#define FL_PLASTIC_UP_BOX fl_define_FL_PLASTIC_UP_BOX()
|
||||
#define FL_PLASTIC_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+1)
|
||||
#define FL_PLASTIC_UP_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+2)
|
||||
#define FL_PLASTIC_DOWN_FRAME (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+3)
|
||||
#define FL_PLASTIC_THIN_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+4)
|
||||
#define FL_PLASTIC_THIN_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+5)
|
||||
#define FL_PLASTIC_ROUND_UP_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+6)
|
||||
#define FL_PLASTIC_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_PLASTIC_UP_BOX()+7)
|
||||
|
||||
// conversions of box types to other boxtypes:
|
||||
inline Fl_Boxtype fl_down(Fl_Boxtype b) {return (Fl_Boxtype)(b|1);}
|
||||
inline Fl_Boxtype fl_frame(Fl_Boxtype b) {return (Fl_Boxtype)(b|2);}
|
||||
|
||||
// back-compatability box types:
|
||||
#define FL_FRAME FL_ENGRAVED_FRAME
|
||||
#define FL_FRAME_BOX FL_ENGRAVED_BOX
|
||||
#define FL_CIRCLE_BOX FL_ROUND_DOWN_BOX
|
||||
#define FL_DIAMOND_BOX FL_DIAMOND_DOWN_BOX
|
||||
|
||||
enum Fl_Labeltype { // labeltypes:
|
||||
FL_NORMAL_LABEL = 0,
|
||||
FL_NO_LABEL,
|
||||
_FL_SHADOW_LABEL,
|
||||
_FL_ENGRAVED_LABEL,
|
||||
_FL_EMBOSSED_LABEL,
|
||||
_FL_MULTI_LABEL,
|
||||
_FL_ICON_LABEL,
|
||||
_FL_IMAGE_LABEL,
|
||||
|
||||
FL_FREE_LABELTYPE
|
||||
};
|
||||
#define FL_SYMBOL_LABEL FL_NORMAL_LABEL
|
||||
extern Fl_Labeltype FL_EXPORT fl_define_FL_SHADOW_LABEL();
|
||||
#define FL_SHADOW_LABEL fl_define_FL_SHADOW_LABEL()
|
||||
extern Fl_Labeltype FL_EXPORT fl_define_FL_ENGRAVED_LABEL();
|
||||
#define FL_ENGRAVED_LABEL fl_define_FL_ENGRAVED_LABEL()
|
||||
extern Fl_Labeltype FL_EXPORT fl_define_FL_EMBOSSED_LABEL();
|
||||
#define FL_EMBOSSED_LABEL fl_define_FL_EMBOSSED_LABEL()
|
||||
|
||||
enum Fl_Align { // align() values
|
||||
FL_ALIGN_CENTER = 0,
|
||||
FL_ALIGN_TOP = 1,
|
||||
FL_ALIGN_BOTTOM = 2,
|
||||
FL_ALIGN_LEFT = 4,
|
||||
FL_ALIGN_RIGHT = 8,
|
||||
FL_ALIGN_INSIDE = 16,
|
||||
FL_ALIGN_TEXT_OVER_IMAGE = 32,
|
||||
FL_ALIGN_IMAGE_OVER_TEXT = 0,
|
||||
FL_ALIGN_CLIP = 64,
|
||||
FL_ALIGN_WRAP = 128,
|
||||
FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT,
|
||||
FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT,
|
||||
FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT,
|
||||
FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT,
|
||||
FL_ALIGN_LEFT_TOP = FL_ALIGN_TOP_LEFT,
|
||||
FL_ALIGN_RIGHT_TOP = FL_ALIGN_TOP_RIGHT,
|
||||
FL_ALIGN_LEFT_BOTTOM = FL_ALIGN_BOTTOM_LEFT,
|
||||
FL_ALIGN_RIGHT_BOTTOM = FL_ALIGN_BOTTOM_RIGHT,
|
||||
FL_ALIGN_NOWRAP = 0 // for back compatability
|
||||
};
|
||||
|
||||
enum Fl_Font { // standard fonts
|
||||
FL_HELVETICA = 0,
|
||||
FL_HELVETICA_BOLD,
|
||||
FL_HELVETICA_ITALIC,
|
||||
FL_HELVETICA_BOLD_ITALIC,
|
||||
FL_COURIER,
|
||||
FL_COURIER_BOLD,
|
||||
FL_COURIER_ITALIC,
|
||||
FL_COURIER_BOLD_ITALIC,
|
||||
FL_TIMES,
|
||||
FL_TIMES_BOLD,
|
||||
FL_TIMES_ITALIC,
|
||||
FL_TIMES_BOLD_ITALIC,
|
||||
FL_SYMBOL,
|
||||
FL_SCREEN,
|
||||
FL_SCREEN_BOLD,
|
||||
FL_ZAPF_DINGBATS,
|
||||
|
||||
FL_FREE_FONT = 16, // first one to allocate
|
||||
FL_BOLD = 1, // add this to helvetica, courier, or times
|
||||
FL_ITALIC = 2 // add this to helvetica, courier, or times
|
||||
};
|
||||
|
||||
extern FL_EXPORT int FL_NORMAL_SIZE;
|
||||
|
||||
enum Fl_Color { // standard colors
|
||||
// These are used as default colors in widgets and altered as necessary
|
||||
FL_FOREGROUND_COLOR = 0,
|
||||
FL_BACKGROUND2_COLOR = 7,
|
||||
FL_INACTIVE_COLOR = 8,
|
||||
FL_SELECTION_COLOR = 15,
|
||||
|
||||
// boxtypes generally limit themselves to these colors so
|
||||
// the whole ramp is not allocated:
|
||||
FL_GRAY0 = 32, // 'A'
|
||||
FL_DARK3 = 39, // 'H'
|
||||
FL_DARK2 = 45, // 'N'
|
||||
FL_DARK1 = 47, // 'P'
|
||||
FL_BACKGROUND_COLOR = 49, // 'R' default background color
|
||||
FL_LIGHT1 = 50, // 'S'
|
||||
FL_LIGHT2 = 52, // 'U'
|
||||
FL_LIGHT3 = 54, // 'W'
|
||||
|
||||
// FLTK provides a 5x8x5 color cube that is used with colormap visuals
|
||||
FL_BLACK = 56,
|
||||
FL_RED = 88,
|
||||
FL_GREEN = 63,
|
||||
FL_YELLOW = 95,
|
||||
FL_BLUE = 216,
|
||||
FL_MAGENTA = 248,
|
||||
FL_CYAN = 223,
|
||||
FL_DARK_RED = 72,
|
||||
|
||||
FL_DARK_GREEN = 60,
|
||||
FL_DARK_YELLOW = 76,
|
||||
FL_DARK_BLUE = 136,
|
||||
FL_DARK_MAGENTA = 152,
|
||||
FL_DARK_CYAN = 140,
|
||||
|
||||
FL_WHITE = 255
|
||||
};
|
||||
|
||||
#define FL_FREE_COLOR (Fl_Color)16
|
||||
#define FL_NUM_FREE_COLOR 16
|
||||
#define FL_GRAY_RAMP (Fl_Color)32
|
||||
#define FL_NUM_GRAY 24
|
||||
#define FL_GRAY FL_BACKGROUND_COLOR
|
||||
#define FL_COLOR_CUBE (Fl_Color)56
|
||||
#define FL_NUM_RED 5
|
||||
#define FL_NUM_GREEN 8
|
||||
#define FL_NUM_BLUE 5
|
||||
|
||||
FL_EXPORT Fl_Color fl_inactive(Fl_Color c);
|
||||
FL_EXPORT Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg);
|
||||
FL_EXPORT Fl_Color fl_color_average(Fl_Color c1, Fl_Color c2, float weight);
|
||||
inline Fl_Color fl_lighter(Fl_Color c) { return fl_color_average(c, FL_WHITE, .67f); }
|
||||
inline Fl_Color fl_darker(Fl_Color c) { return fl_color_average(c, FL_BLACK, .67f); }
|
||||
inline Fl_Color fl_rgb_color(uchar r, uchar g, uchar b) {
|
||||
if (!r && !g && !b) return FL_BLACK;
|
||||
else return (Fl_Color)(((((r << 8) | g) << 8) | b) << 8);
|
||||
}
|
||||
inline Fl_Color fl_rgb_color(uchar g) {
|
||||
if (!g) return FL_BLACK;
|
||||
else return (Fl_Color)(((((g << 8) | g) << 8) | g) << 8);
|
||||
}
|
||||
inline Fl_Color fl_gray_ramp(int i) {return (Fl_Color)(i+FL_GRAY_RAMP);}
|
||||
inline Fl_Color fl_color_cube(int r, int g, int b) {
|
||||
return (Fl_Color)((b*FL_NUM_RED + r) * FL_NUM_GREEN + g + FL_COLOR_CUBE);}
|
||||
|
||||
enum Fl_Cursor { // standard cursors
|
||||
FL_CURSOR_DEFAULT = 0,
|
||||
FL_CURSOR_ARROW = 35,
|
||||
FL_CURSOR_CROSS = 66,
|
||||
FL_CURSOR_WAIT = 76,
|
||||
FL_CURSOR_INSERT = 77,
|
||||
FL_CURSOR_HAND = 31,
|
||||
FL_CURSOR_HELP = 47,
|
||||
FL_CURSOR_MOVE = 27,
|
||||
// fltk provides bitmaps for these:
|
||||
FL_CURSOR_NS = 78,
|
||||
FL_CURSOR_WE = 79,
|
||||
FL_CURSOR_NWSE = 80,
|
||||
FL_CURSOR_NESW = 81,
|
||||
FL_CURSOR_NONE = 255,
|
||||
// for back compatability (non MSWindows ones):
|
||||
FL_CURSOR_N = 70,
|
||||
FL_CURSOR_NE = 69,
|
||||
FL_CURSOR_E = 49,
|
||||
FL_CURSOR_SE = 8,
|
||||
FL_CURSOR_S = 9,
|
||||
FL_CURSOR_SW = 7,
|
||||
FL_CURSOR_W = 36,
|
||||
FL_CURSOR_NW = 68
|
||||
//FL_CURSOR_NS = 22,
|
||||
//FL_CURSOR_WE = 55,
|
||||
};
|
||||
|
||||
enum { // values for "when" passed to Fl::add_fd()
|
||||
FL_READ = 1,
|
||||
FL_WRITE = 4,
|
||||
FL_EXCEPT = 8
|
||||
};
|
||||
|
||||
enum Fl_Mode { // visual types and Fl_Gl_Window::mode() (values match Glut)
|
||||
FL_RGB = 0,
|
||||
FL_INDEX = 1,
|
||||
FL_SINGLE = 0,
|
||||
FL_DOUBLE = 2,
|
||||
FL_ACCUM = 4,
|
||||
FL_ALPHA = 8,
|
||||
FL_DEPTH = 16,
|
||||
FL_STENCIL = 32,
|
||||
FL_RGB8 = 64,
|
||||
FL_MULTISAMPLE= 128,
|
||||
FL_STEREO = 256,
|
||||
FL_FAKE_SINGLE = 512 // Fake single buffered windows using double-buffer
|
||||
};
|
||||
|
||||
// damage masks
|
||||
|
||||
enum Fl_Damage {
|
||||
FL_DAMAGE_CHILD = 0x01,
|
||||
FL_DAMAGE_EXPOSE = 0x02,
|
||||
FL_DAMAGE_SCROLL = 0x04,
|
||||
FL_DAMAGE_OVERLAY = 0x08,
|
||||
FL_DAMAGE_USER1 = 0x10,
|
||||
FL_DAMAGE_USER2 = 0x20,
|
||||
FL_DAMAGE_ALL = 0x80
|
||||
};
|
||||
|
||||
// FLTK 1.0.x compatibility definitions...
|
||||
# ifdef FLTK_1_0_COMPAT
|
||||
# define contrast fl_contrast
|
||||
# define down fl_down
|
||||
# define frame fl_frame
|
||||
# define inactive fl_inactive
|
||||
# endif // FLTK_1_0_COMPAT
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Enumerations.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
280
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl.H
vendored
Normal file
280
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl.H
vendored
Normal file
@@ -0,0 +1,280 @@
|
||||
//
|
||||
// "$Id: Fl.H 4223 2005-03-31 16:01:24Z mike $"
|
||||
//
|
||||
// Main header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_H
|
||||
# define Fl_H
|
||||
|
||||
# include "Enumerations.H"
|
||||
# ifndef Fl_Object
|
||||
# define Fl_Object Fl_Widget
|
||||
# endif
|
||||
|
||||
# ifdef check
|
||||
# undef check
|
||||
# endif
|
||||
|
||||
class Fl_Widget;
|
||||
class Fl_Window;
|
||||
class Fl_Image;
|
||||
struct Fl_Label;
|
||||
typedef void (Fl_Label_Draw_F)(const Fl_Label*, int,int,int,int, Fl_Align);
|
||||
typedef void (Fl_Label_Measure_F)(const Fl_Label*, int&, int&);
|
||||
typedef void (Fl_Box_Draw_F)(int,int,int,int, Fl_Color);
|
||||
|
||||
typedef void (*Fl_Timeout_Handler)(void*);
|
||||
|
||||
class FL_EXPORT Fl {
|
||||
Fl() {}; // no constructor!
|
||||
|
||||
public: // should be private!
|
||||
|
||||
static int e_number;
|
||||
static int e_x;
|
||||
static int e_y;
|
||||
static int e_x_root;
|
||||
static int e_y_root;
|
||||
static int e_dx;
|
||||
static int e_dy;
|
||||
static int e_state;
|
||||
static int e_clicks;
|
||||
static int e_is_click;
|
||||
static int e_keysym;
|
||||
static char* e_text;
|
||||
static int e_length;
|
||||
static Fl_Widget* belowmouse_;
|
||||
static Fl_Widget* pushed_;
|
||||
static Fl_Widget* focus_;
|
||||
static int damage_;
|
||||
static Fl_Widget* selection_owner_;
|
||||
static Fl_Window* modal_;
|
||||
static Fl_Window* grab_;
|
||||
static int compose_state;
|
||||
static int visible_focus_;
|
||||
static int dnd_text_ops_;
|
||||
static void damage(int d) {damage_ = d;}
|
||||
|
||||
static void (*idle)();
|
||||
|
||||
static const char* scheme_;
|
||||
static Fl_Image* scheme_bg_;
|
||||
|
||||
public:
|
||||
|
||||
// API version number
|
||||
static double version();
|
||||
|
||||
// argument parsers:
|
||||
static int arg(int, char**, int&);
|
||||
static int args(int, char**, int&, int (*)(int,char**,int&) = 0);
|
||||
static const char* const help;
|
||||
static void args(int, char**);
|
||||
|
||||
// things called by initialization:
|
||||
static void display(const char*);
|
||||
static int visual(int);
|
||||
static int gl_visual(int, int *alist=0);
|
||||
static void own_colormap();
|
||||
static void get_system_colors();
|
||||
static void foreground(uchar, uchar, uchar);
|
||||
static void background(uchar, uchar, uchar);
|
||||
static void background2(uchar, uchar, uchar);
|
||||
|
||||
// schemes:
|
||||
static int scheme(const char*);
|
||||
static const char* scheme() {return scheme_;}
|
||||
static int reload_scheme();
|
||||
|
||||
// execution:
|
||||
static int wait();
|
||||
static double wait(double time);
|
||||
static int check();
|
||||
static int ready();
|
||||
static int run();
|
||||
static Fl_Widget* readqueue();
|
||||
static void add_timeout(double t, Fl_Timeout_Handler,void* = 0);
|
||||
static void repeat_timeout(double t, Fl_Timeout_Handler,void* = 0);
|
||||
static int has_timeout(Fl_Timeout_Handler, void* = 0);
|
||||
static void remove_timeout(Fl_Timeout_Handler, void* = 0);
|
||||
static void add_check(Fl_Timeout_Handler, void* = 0);
|
||||
static int has_check(Fl_Timeout_Handler, void* = 0);
|
||||
static void remove_check(Fl_Timeout_Handler, void* = 0);
|
||||
static void add_fd(int fd, int when, void (*cb)(int,void*),void* =0);
|
||||
static void add_fd(int fd, void (*cb)(int, void*), void* = 0);
|
||||
static void remove_fd(int, int when);
|
||||
static void remove_fd(int);
|
||||
static void add_idle(void (*cb)(void*), void* = 0);
|
||||
static int has_idle(void (*cb)(void*), void* = 0);
|
||||
static void remove_idle(void (*cb)(void*), void* = 0);
|
||||
static int damage() {return damage_;}
|
||||
static void redraw();
|
||||
static void flush();
|
||||
static void (*warning)(const char*, ...);
|
||||
static void (*error)(const char*, ...);
|
||||
static void (*fatal)(const char*, ...);
|
||||
static Fl_Window* first_window();
|
||||
static void first_window(Fl_Window*);
|
||||
static Fl_Window* next_window(const Fl_Window*);
|
||||
static Fl_Window* modal() {return modal_;}
|
||||
static Fl_Window* grab() {return grab_;}
|
||||
static void grab(Fl_Window*);
|
||||
|
||||
// event information:
|
||||
static int event() {return e_number;}
|
||||
static int event_x() {return e_x;}
|
||||
static int event_y() {return e_y;}
|
||||
static int event_x_root() {return e_x_root;}
|
||||
static int event_y_root() {return e_y_root;}
|
||||
static int event_dx() {return e_dx;}
|
||||
static int event_dy() {return e_dy;}
|
||||
static void get_mouse(int &,int &);
|
||||
static int event_clicks() {return e_clicks;}
|
||||
static void event_clicks(int i) {e_clicks = i;}
|
||||
static int event_is_click() {return e_is_click;}
|
||||
static void event_is_click(int i) {e_is_click = i;} // only 0 works!
|
||||
static int event_button() {return e_keysym-FL_Button;}
|
||||
static int event_state() {return e_state;}
|
||||
static int event_state(int i) {return e_state&i;}
|
||||
static int event_key() {return e_keysym;}
|
||||
static int event_key(int);
|
||||
static int get_key(int);
|
||||
static const char* event_text() {return e_text;}
|
||||
static int event_length() {return e_length;}
|
||||
static int compose(int &del);
|
||||
static void compose_reset() {compose_state = 0;}
|
||||
static int event_inside(int,int,int,int);
|
||||
static int event_inside(const Fl_Widget*);
|
||||
static int test_shortcut(int);
|
||||
|
||||
// event destinations:
|
||||
static int handle(int, Fl_Window*);
|
||||
static Fl_Widget* belowmouse() {return belowmouse_;}
|
||||
static void belowmouse(Fl_Widget*);
|
||||
static Fl_Widget* pushed() {return pushed_;}
|
||||
static void pushed(Fl_Widget*);
|
||||
static Fl_Widget* focus() {return focus_;}
|
||||
static void focus(Fl_Widget*);
|
||||
static void add_handler(int (*h)(int));
|
||||
static void remove_handler(int (*h)(int));
|
||||
|
||||
// cut/paste:
|
||||
static void copy(const char* stuff, int len, int clipboard = 0);
|
||||
static void paste(Fl_Widget &receiver, int clipboard /*=0*/);
|
||||
static int dnd();
|
||||
// These are for back-compatability only:
|
||||
static Fl_Widget* selection_owner() {return selection_owner_;}
|
||||
static void selection_owner(Fl_Widget*);
|
||||
static void selection(Fl_Widget &owner, const char*, int len);
|
||||
static void paste(Fl_Widget &receiver);
|
||||
|
||||
// screen size:
|
||||
#if defined(WIN32) || defined(__APPLE__)
|
||||
static int x();
|
||||
static int y();
|
||||
#else
|
||||
static int x() {return 0;}
|
||||
static int y() {return 0;}
|
||||
#endif /* WIN32 || __APPLE__ */
|
||||
static int w();
|
||||
static int h();
|
||||
|
||||
// multi-head support:
|
||||
static int screen_count();
|
||||
static void screen_xywh(int &x, int &y, int &w, int &h) {
|
||||
screen_xywh(x, y, w, h, e_x_root, e_y_root);
|
||||
}
|
||||
static void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my);
|
||||
static void screen_xywh(int &x, int &y, int &w, int &h, int n);
|
||||
|
||||
// color map:
|
||||
static void set_color(Fl_Color, uchar, uchar, uchar);
|
||||
static void set_color(Fl_Color, unsigned);
|
||||
static unsigned get_color(Fl_Color);
|
||||
static void get_color(Fl_Color, uchar&, uchar&, uchar&);
|
||||
static void free_color(Fl_Color, int overlay = 0);
|
||||
|
||||
// fonts:
|
||||
static const char* get_font(Fl_Font);
|
||||
static const char* get_font_name(Fl_Font, int* attributes = 0);
|
||||
static int get_font_sizes(Fl_Font, int*& sizep);
|
||||
static void set_font(Fl_Font, const char*);
|
||||
static void set_font(Fl_Font, Fl_Font);
|
||||
static Fl_Font set_fonts(const char* = 0);
|
||||
|
||||
// labeltypes:
|
||||
static void set_labeltype(Fl_Labeltype,Fl_Label_Draw_F*,Fl_Label_Measure_F*);
|
||||
static void set_labeltype(Fl_Labeltype, Fl_Labeltype from);
|
||||
|
||||
// boxtypes:
|
||||
static Fl_Box_Draw_F *get_boxtype(Fl_Boxtype);
|
||||
static void set_boxtype(Fl_Boxtype, Fl_Box_Draw_F*,uchar,uchar,uchar,uchar);
|
||||
static void set_boxtype(Fl_Boxtype, Fl_Boxtype from);
|
||||
static int box_dx(Fl_Boxtype);
|
||||
static int box_dy(Fl_Boxtype);
|
||||
static int box_dw(Fl_Boxtype);
|
||||
static int box_dh(Fl_Boxtype);
|
||||
static int draw_box_active();
|
||||
|
||||
// back compatability:
|
||||
static void set_abort(void (*f)(const char*,...)) {fatal = f;}
|
||||
static void (*atclose)(Fl_Window*,void*);
|
||||
static void default_atclose(Fl_Window*,void*);
|
||||
static void set_atclose(void (*f)(Fl_Window*,void*)) {atclose = f;}
|
||||
static int event_shift() {return e_state&FL_SHIFT;}
|
||||
static int event_ctrl() {return e_state&FL_CTRL;}
|
||||
static int event_alt() {return e_state&FL_ALT;}
|
||||
static int event_buttons() {return e_state&0x7f000000;}
|
||||
static int event_button1() {return e_state&FL_BUTTON1;}
|
||||
static int event_button2() {return e_state&FL_BUTTON2;}
|
||||
static int event_button3() {return e_state&FL_BUTTON3;}
|
||||
static void set_idle(void (*cb)()) {idle = cb;}
|
||||
static void grab(Fl_Window&win) {grab(&win);}
|
||||
static void release() {grab(0);}
|
||||
|
||||
// Visible focus methods...
|
||||
static void visible_focus(int v) { visible_focus_ = v; }
|
||||
static int visible_focus() { return visible_focus_; }
|
||||
|
||||
// Drag-n-drop text operation methods...
|
||||
static void dnd_text_ops(int v) { dnd_text_ops_ = v; }
|
||||
static int dnd_text_ops() { return dnd_text_ops_; }
|
||||
|
||||
// Multithreading support:
|
||||
static void lock();
|
||||
static void unlock();
|
||||
static void awake(void* message = 0);
|
||||
static void* thread_message();
|
||||
|
||||
// Widget deletion:
|
||||
static void delete_widget(Fl_Widget *w);
|
||||
static void do_widget_deletion();
|
||||
};
|
||||
|
||||
#endif // !Fl_H
|
||||
|
||||
//
|
||||
// End of "$Id: Fl.H 4223 2005-03-31 16:01:24Z mike $".
|
||||
//
|
55
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Adjuster.H
vendored
Normal file
55
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Adjuster.H
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// "$Id: Fl_Adjuster.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Adjuster widget header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// 3-button "slider", made for Nuke
|
||||
|
||||
#ifndef Fl_Adjuster_H
|
||||
#define Fl_Adjuster_H
|
||||
|
||||
#ifndef Fl_Valuator_H
|
||||
#include "Fl_Valuator.H"
|
||||
#endif
|
||||
|
||||
class FL_EXPORT Fl_Adjuster : public Fl_Valuator {
|
||||
int drag;
|
||||
int ix;
|
||||
int soft_;
|
||||
protected:
|
||||
void draw();
|
||||
int handle(int);
|
||||
void value_damage();
|
||||
public:
|
||||
Fl_Adjuster(int X,int Y,int W,int H,const char *l=0);
|
||||
void soft(int s) {soft_ = s;}
|
||||
int soft() const {return soft_;}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Adjuster.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_BMP_Image.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_BMP_Image.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_BMP_Image.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// BMP image header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_BMP_Image_H
|
||||
#define Fl_BMP_Image_H
|
||||
# include "Fl_Image.H"
|
||||
|
||||
class FL_EXPORT Fl_BMP_Image : public Fl_RGB_Image {
|
||||
|
||||
public:
|
||||
|
||||
Fl_BMP_Image(const char* filename);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_BMP_Image.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
64
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Bitmap.H
vendored
Normal file
64
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Bitmap.H
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
//
|
||||
// "$Id: Fl_Bitmap.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Bitmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Bitmap_H
|
||||
#define Fl_Bitmap_H
|
||||
# include "Fl_Image.H"
|
||||
|
||||
class Fl_Widget;
|
||||
struct Fl_Menu_Item;
|
||||
|
||||
class FL_EXPORT Fl_Bitmap : public Fl_Image {
|
||||
public:
|
||||
|
||||
const uchar *array;
|
||||
int alloc_array; // Non-zero if data was allocated
|
||||
#if defined(__APPLE__) || defined(WIN32)
|
||||
void *id; // for internal use
|
||||
#else
|
||||
unsigned id; // for internal use
|
||||
#endif // __APPLE__ || WIN32
|
||||
|
||||
Fl_Bitmap(const uchar *bits, int W, int H) :
|
||||
Fl_Image(W,H,0), array(bits), alloc_array(0), id(0) {data((const char **)&array, 1);}
|
||||
Fl_Bitmap(const char *bits, int W, int H) :
|
||||
Fl_Image(W,H,0), array((const uchar *)bits), alloc_array(0), id(0) {data((const char **)&array, 1);}
|
||||
virtual ~Fl_Bitmap();
|
||||
virtual Fl_Image *copy(int W, int H);
|
||||
Fl_Image *copy() { return copy(w(), h()); }
|
||||
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);}
|
||||
virtual void label(Fl_Widget*w);
|
||||
virtual void label(Fl_Menu_Item*m);
|
||||
virtual void uncache();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Bitmap.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
51
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Box.H
vendored
Normal file
51
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Box.H
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// "$Id: Fl_Box.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Box header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Box_H
|
||||
#define Fl_Box_H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
class FL_EXPORT Fl_Box : public Fl_Widget {
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
Fl_Box(int X, int Y, int W, int H, const char *l=0)
|
||||
: Fl_Widget(X,Y,W,H,l) {}
|
||||
Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l)
|
||||
: Fl_Widget(X,Y,W,H,l) {box(b);}
|
||||
|
||||
virtual int handle(int);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Box.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
132
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Browser.H
vendored
Normal file
132
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Browser.H
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
//
|
||||
// "$Id: Fl_Browser.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// Forms-compatable browser. Probably useful for other
|
||||
// lists of textual data. Notice that the line numbers
|
||||
// start from 1, and 0 means "no line".
|
||||
|
||||
#ifndef Fl_Browser_H
|
||||
#define Fl_Browser_H
|
||||
|
||||
#include "Fl_Browser_.H"
|
||||
|
||||
struct FL_BLINE;
|
||||
|
||||
class FL_EXPORT Fl_Browser : public Fl_Browser_ {
|
||||
|
||||
FL_BLINE *first; // the array of lines
|
||||
FL_BLINE *last;
|
||||
FL_BLINE *cache;
|
||||
int cacheline; // line number of cache
|
||||
int lines; // Number of lines
|
||||
int full_height_;
|
||||
const int* column_widths_;
|
||||
char format_char_; // alternative to @-sign
|
||||
char column_char_; // alternative to tab
|
||||
|
||||
protected:
|
||||
|
||||
// required routines for Fl_Browser_ subclass:
|
||||
void* item_first() const ;
|
||||
void* item_next(void*) const ;
|
||||
void* item_prev(void*) const ;
|
||||
int item_selected(void*) const ;
|
||||
void item_select(void*, int);
|
||||
int item_height(void*) const ;
|
||||
int item_width(void*) const ;
|
||||
void item_draw(void*, int, int, int, int) const ;
|
||||
int full_height() const ;
|
||||
int incr_height() const ;
|
||||
|
||||
FL_BLINE* find_line(int) const ;
|
||||
FL_BLINE* _remove(int) ;
|
||||
void insert(int, FL_BLINE*);
|
||||
int lineno(void*) const ;
|
||||
void swap(FL_BLINE *a, FL_BLINE *b);
|
||||
|
||||
public:
|
||||
|
||||
void remove(int);
|
||||
void add(const char*, void* = 0);
|
||||
void insert(int, const char*, void* = 0);
|
||||
void move(int to, int from);
|
||||
int load(const char* filename);
|
||||
void swap(int a, int b);
|
||||
void clear();
|
||||
|
||||
int size() const {return lines;}
|
||||
void size(int W, int H) { Fl_Widget::size(W, H); }
|
||||
|
||||
int topline() const ;
|
||||
enum Fl_Line_Position { TOP, BOTTOM, MIDDLE };
|
||||
void lineposition(int, Fl_Line_Position);
|
||||
void topline(int l) { lineposition(l, TOP); }
|
||||
void bottomline(int l) { lineposition(l, BOTTOM); }
|
||||
void middleline(int l) { lineposition(l, MIDDLE); }
|
||||
|
||||
int select(int, int=1);
|
||||
int selected(int) const ;
|
||||
void show(int n);
|
||||
void show() {Fl_Widget::show();}
|
||||
void hide(int n);
|
||||
void hide() {Fl_Widget::hide();}
|
||||
int visible(int n) const ;
|
||||
|
||||
int value() const ;
|
||||
void value(int v) {select(v);}
|
||||
const char* text(int) const ;
|
||||
void text(int, const char*);
|
||||
void* data(int) const ;
|
||||
void data(int, void* v);
|
||||
|
||||
Fl_Browser(int, int, int, int, const char* = 0);
|
||||
~Fl_Browser() { clear(); }
|
||||
|
||||
char format_char() const {return format_char_;}
|
||||
void format_char(char c) {format_char_ = c;}
|
||||
char column_char() const {return column_char_;}
|
||||
void column_char(char c) {column_char_ = c;}
|
||||
const int* column_widths() const {return column_widths_;}
|
||||
void column_widths(const int* l) {column_widths_ = l;}
|
||||
|
||||
int displayed(int n) const {return Fl_Browser_::displayed(find_line(n));}
|
||||
void make_visible(int n) {
|
||||
if (n < 1) Fl_Browser_::display(find_line(1));
|
||||
else if (n > lines) Fl_Browser_::display(find_line(lines));
|
||||
else Fl_Browser_::display(find_line(n));
|
||||
}
|
||||
|
||||
// for back compatability only:
|
||||
void replace(int a, const char* b) {text(a, b);}
|
||||
void display(int, int=1);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Browser.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
153
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Browser_.H
vendored
Normal file
153
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Browser_.H
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
//
|
||||
// "$Id: Fl_Browser_.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Common browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// This is the base class for browsers. To be useful it must
|
||||
// be subclassed and several virtual functions defined. The
|
||||
// Forms-compatable browser and the file chooser's browser are
|
||||
// subclassed off of this.
|
||||
|
||||
// Yes, I know this should be a template...
|
||||
|
||||
#ifndef Fl_Browser__H
|
||||
#define Fl_Browser__H
|
||||
|
||||
#ifndef Fl_Group_H
|
||||
#include "Fl_Group.H"
|
||||
#endif
|
||||
#include "Fl_Scrollbar.H"
|
||||
|
||||
#define FL_NORMAL_BROWSER 0
|
||||
#define FL_SELECT_BROWSER 1
|
||||
#define FL_HOLD_BROWSER 2
|
||||
#define FL_MULTI_BROWSER 3
|
||||
|
||||
class FL_EXPORT Fl_Browser_ : public Fl_Group {
|
||||
int position_; // where user wants it scrolled to
|
||||
int real_position_; // the current vertical scrolling position
|
||||
int hposition_; // where user wants it panned to
|
||||
int real_hposition_; // the current horizontal scrolling position
|
||||
int offset_; // how far down top_ item the real_position is
|
||||
int max_width; // widest object seen so far
|
||||
uchar has_scrollbar_; // which scrollbars are enabled
|
||||
uchar textfont_, textsize_;
|
||||
unsigned textcolor_;
|
||||
void* top_; // which item scrolling position is in
|
||||
void* selection_; // which is selected (except for FL_MULTI_BROWSER)
|
||||
void *redraw1,*redraw2; // minimal update pointers
|
||||
void* max_width_item; // which item has max_width_
|
||||
|
||||
static int scrollbar_width_;
|
||||
|
||||
void update_top();
|
||||
|
||||
protected:
|
||||
|
||||
// All of the following must be supplied by the subclass:
|
||||
virtual void *item_first() const = 0;
|
||||
virtual void *item_next(void *) const = 0;
|
||||
virtual void *item_prev(void *) const = 0;
|
||||
virtual int item_height(void *) const = 0;
|
||||
virtual int item_width(void *) const = 0;
|
||||
virtual int item_quick_height(void *) const ;
|
||||
virtual void item_draw(void *,int,int,int,int) const = 0;
|
||||
// you don't have to provide these but it may help speed it up:
|
||||
virtual int full_width() const ; // current width of all items
|
||||
virtual int full_height() const ; // current height of all items
|
||||
virtual int incr_height() const ; // average height of an item
|
||||
// These only need to be done by subclass if you want a multi-browser:
|
||||
virtual void item_select(void *,int=1);
|
||||
virtual int item_selected(void *) const ;
|
||||
|
||||
// things the subclass may want to call:
|
||||
void *top() const {return top_;}
|
||||
void *selection() const {return selection_;}
|
||||
void new_list(); // completely clobber all data, as though list replaced
|
||||
void deleting(void *a); // get rid of any pointers to a
|
||||
void replacing(void *a,void *b); // change a pointers to b
|
||||
void inserting(void *a,void *b); // insert b near a
|
||||
int displayed(void *) const ; // true if this line is visible
|
||||
void redraw_line(void *); // minimal update, no change in size
|
||||
void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
|
||||
void bbox(int&,int&,int&,int&) const;
|
||||
int leftedge() const; // x position after scrollbar & border
|
||||
void *find_item(int my); // item under mouse
|
||||
void draw(int,int,int,int);
|
||||
int handle(int,int,int,int,int);
|
||||
|
||||
void draw();
|
||||
Fl_Browser_(int,int,int,int,const char * = 0);
|
||||
|
||||
public:
|
||||
|
||||
Fl_Scrollbar scrollbar; // Vertical scrollbar
|
||||
Fl_Scrollbar hscrollbar; // Horizontal scrollbar
|
||||
|
||||
int handle(int);
|
||||
void resize(int,int,int,int);
|
||||
|
||||
int select(void *,int=1,int docallbacks=0);
|
||||
int select_only(void *,int docallbacks=0);
|
||||
int deselect(int docallbacks=0);
|
||||
int position() const {return position_;}
|
||||
int hposition() const {return hposition_;}
|
||||
void position(int); // scroll to here
|
||||
void hposition(int); // pan to here
|
||||
void display(void*); // scroll so this item is shown
|
||||
|
||||
uchar has_scrollbar() const {return has_scrollbar_;}
|
||||
void has_scrollbar(uchar i) {has_scrollbar_ = i;}
|
||||
enum { // values for has_scrollbar()
|
||||
HORIZONTAL = 1,
|
||||
VERTICAL = 2,
|
||||
BOTH = 3,
|
||||
ALWAYS_ON = 4,
|
||||
HORIZONTAL_ALWAYS = 5,
|
||||
VERTICAL_ALWAYS = 6,
|
||||
BOTH_ALWAYS = 7
|
||||
};
|
||||
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar s) {textfont_ = s;}
|
||||
uchar textsize() const {return textsize_;}
|
||||
void textsize(uchar s) {textsize_ = s;}
|
||||
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
||||
void textcolor(unsigned n) {textcolor_ = n;}
|
||||
|
||||
static void scrollbar_width(int b) {scrollbar_width_ = b;}
|
||||
static int scrollbar_width() {return scrollbar_width_;}
|
||||
|
||||
// for back compatability:
|
||||
void scrollbar_right() {scrollbar.align(FL_ALIGN_RIGHT);}
|
||||
void scrollbar_left() {scrollbar.align(FL_ALIGN_LEFT);}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Browser_.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
78
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Button.H
vendored
Normal file
78
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Button.H
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
//
|
||||
// "$Id: Fl_Button.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Button_H
|
||||
#define Fl_Button_H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
// values for type()
|
||||
#define FL_NORMAL_BUTTON 0
|
||||
#define FL_TOGGLE_BUTTON 1
|
||||
#define FL_RADIO_BUTTON (FL_RESERVED_TYPE+2)
|
||||
#define FL_HIDDEN_BUTTON 3 // for Forms compatability
|
||||
|
||||
extern FL_EXPORT int fl_old_shortcut(const char*);
|
||||
|
||||
class FL_EXPORT Fl_Button : public Fl_Widget {
|
||||
|
||||
int shortcut_;
|
||||
char value_;
|
||||
char oldval;
|
||||
uchar down_box_;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void draw();
|
||||
|
||||
public:
|
||||
|
||||
virtual int handle(int);
|
||||
Fl_Button(int,int,int,int,const char * = 0);
|
||||
int value(int);
|
||||
char value() const {return value_;}
|
||||
int set() {return value(1);}
|
||||
int clear() {return value(0);}
|
||||
void setonly(); // this should only be called on FL_RADIO_BUTTONs
|
||||
int shortcut() const {return shortcut_;}
|
||||
void shortcut(int s) {shortcut_ = s;}
|
||||
Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
|
||||
void down_box(Fl_Boxtype b) {down_box_ = b;}
|
||||
|
||||
// back compatability:
|
||||
void shortcut(const char *s) {shortcut(fl_old_shortcut(s));}
|
||||
Fl_Color down_color() const {return selection_color();}
|
||||
void down_color(unsigned c) {selection_color(c);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Button.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
93
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Chart.H
vendored
Normal file
93
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Chart.H
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
//
|
||||
// "$Id: Fl_Chart.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Forms chart header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Chart_H
|
||||
#define Fl_Chart_H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
// values for type()
|
||||
#define FL_BAR_CHART 0
|
||||
#define FL_HORBAR_CHART 1
|
||||
#define FL_LINE_CHART 2
|
||||
#define FL_FILL_CHART 3
|
||||
#define FL_SPIKE_CHART 4
|
||||
#define FL_PIE_CHART 5
|
||||
#define FL_SPECIALPIE_CHART 6
|
||||
|
||||
#define FL_FILLED_CHART FL_FILL_CHART // compatibility
|
||||
|
||||
#define FL_CHART_MAX 128
|
||||
#define FL_CHART_LABEL_MAX 18
|
||||
|
||||
struct FL_CHART_ENTRY {
|
||||
float val;
|
||||
unsigned col;
|
||||
char str[FL_CHART_LABEL_MAX+1];
|
||||
};
|
||||
|
||||
class FL_EXPORT Fl_Chart : public Fl_Widget {
|
||||
int numb;
|
||||
int maxnumb;
|
||||
int sizenumb;
|
||||
FL_CHART_ENTRY *entries;
|
||||
double min,max;
|
||||
uchar autosize_;
|
||||
uchar textfont_,textsize_;
|
||||
unsigned textcolor_;
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
Fl_Chart(int,int,int,int,const char * = 0);
|
||||
~Fl_Chart();
|
||||
void clear();
|
||||
void add(double, const char * =0, unsigned=0);
|
||||
void insert(int, double, const char * =0, unsigned=0);
|
||||
void replace(int, double, const char * =0, unsigned=0);
|
||||
void bounds(double *a,double *b) const {*a = min; *b = max;}
|
||||
void bounds(double a,double b);
|
||||
int size() const {return numb;}
|
||||
void size(int W, int H) { Fl_Widget::size(W, H); }
|
||||
int maxsize() const {return maxnumb;}
|
||||
void maxsize(int);
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar s) {textfont_ = s;}
|
||||
uchar textsize() const {return textsize_;}
|
||||
void textsize(uchar s) {textsize_ = s;}
|
||||
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
||||
void textcolor(unsigned n) {textcolor_ = n;}
|
||||
uchar autosize() const {return autosize_;}
|
||||
void autosize(uchar n) {autosize_ = n;}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Chart.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
98
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Check_Browser.H
vendored
Normal file
98
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Check_Browser.H
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
//
|
||||
// "$Id: Fl_Check_Browser.H 4461 2005-08-05 13:31:02Z dejan $"
|
||||
//
|
||||
// Fl_Check_Browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Check_Browser_H
|
||||
#define Fl_Check_Browser_H
|
||||
|
||||
#include "Fl.H"
|
||||
#include "Fl_Browser_.H"
|
||||
|
||||
class FL_EXPORT Fl_Check_Browser : public Fl_Browser_ {
|
||||
/* required routines for Fl_Browser_ subclass: */
|
||||
|
||||
void *item_first() const;
|
||||
void *item_next(void *) const;
|
||||
void *item_prev(void *) const;
|
||||
int item_height(void *) const;
|
||||
int item_width(void *) const;
|
||||
void item_draw(void *, int, int, int, int) const;
|
||||
void item_select(void *, int);
|
||||
int item_selected(void *) const;
|
||||
|
||||
/* private data */
|
||||
|
||||
public: // IRIX 5.3 C++ compiler doesn't support private structures...
|
||||
|
||||
struct cb_item {
|
||||
cb_item *next;
|
||||
cb_item *prev;
|
||||
char checked;
|
||||
char selected;
|
||||
char *text;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
cb_item *first;
|
||||
cb_item *last;
|
||||
cb_item *cache;
|
||||
int cached_item;
|
||||
int nitems_;
|
||||
int nchecked_;
|
||||
cb_item *find_item(int) const;
|
||||
int lineno(cb_item *) const;
|
||||
|
||||
public:
|
||||
|
||||
Fl_Check_Browser(int x, int y, int w, int h, const char *l = 0);
|
||||
~Fl_Check_Browser() { clear(); }
|
||||
int add(char *s); // add an (unchecked) item
|
||||
int add(char *s, int b); // add an item and set checked
|
||||
// both return the new nitems()
|
||||
|
||||
// inline const char * methods to avoid breaking binary compatibility...
|
||||
int add(const char *s) { return add((char *)s); }
|
||||
int add(const char *s, int b) { return add((char *)s, b); }
|
||||
|
||||
void clear(); // delete all items
|
||||
int nitems() const { return nitems_; }
|
||||
int nchecked() const { return nchecked_; }
|
||||
int checked(int item) const;
|
||||
void checked(int item, int b);
|
||||
void set_checked(int item) { checked(item, 1); }
|
||||
void check_all();
|
||||
void check_none();
|
||||
int value() const; // currently selected item
|
||||
char *text(int item) const; // returns pointer to internal buffer
|
||||
};
|
||||
|
||||
#endif // Fl_Check_Browser_H
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Check_Browser.H 4461 2005-08-05 13:31:02Z dejan $".
|
||||
//
|
||||
|
42
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Check_Button.H
vendored
Normal file
42
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Check_Button.H
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// "$Id: Fl_Check_Button.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Check button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Check_Button_H
|
||||
#define Fl_Check_Button_H
|
||||
|
||||
#include "Fl_Light_Button.H"
|
||||
|
||||
class FL_EXPORT Fl_Check_Button : public Fl_Light_Button {
|
||||
public:
|
||||
Fl_Check_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Check_Button.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Choice.H
vendored
Normal file
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Choice.H
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// "$Id: Fl_Choice.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Choice header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Choice_H
|
||||
#define Fl_Choice_H
|
||||
|
||||
#include "Fl_Menu_.H"
|
||||
|
||||
class FL_EXPORT Fl_Choice : public Fl_Menu_ {
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Choice(int,int,int,int,const char * = 0);
|
||||
int value(const Fl_Menu_Item*);
|
||||
int value(int i);
|
||||
int value() const {return Fl_Menu_::value();}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Choice.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
75
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Clock.H
vendored
Normal file
75
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Clock.H
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// "$Id: Fl_Clock.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Clock header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Clock_H
|
||||
#define Fl_Clock_H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
// values for type:
|
||||
#define FL_SQUARE_CLOCK 0
|
||||
#define FL_ROUND_CLOCK 1
|
||||
#define FL_ANALOG_CLOCK FL_SQUARE_CLOCK
|
||||
#define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK // nyi
|
||||
|
||||
// a Fl_Clock_Output can be used to display a program-supplied time:
|
||||
|
||||
class FL_EXPORT Fl_Clock_Output : public Fl_Widget {
|
||||
int hour_, minute_, second_;
|
||||
ulong value_;
|
||||
void drawhands(Fl_Color,Fl_Color); // part of draw
|
||||
protected:
|
||||
void draw(int, int, int, int);
|
||||
void draw();
|
||||
public:
|
||||
Fl_Clock_Output(int x,int y,int w,int h, const char *l = 0);
|
||||
void value(ulong v); // set to this Unix time
|
||||
void value(int,int,int); // set hour, minute, second
|
||||
ulong value() const {return value_;}
|
||||
int hour() const {return hour_;}
|
||||
int minute() const {return minute_;}
|
||||
int second() const {return second_;}
|
||||
};
|
||||
|
||||
// a Fl_Clock displays the current time always by using a timeout:
|
||||
|
||||
class FL_EXPORT Fl_Clock : public Fl_Clock_Output {
|
||||
public:
|
||||
int handle(int);
|
||||
void update();
|
||||
Fl_Clock(int x,int y,int w,int h, const char *l = 0);
|
||||
Fl_Clock(uchar t,int x,int y,int w,int h, const char *l);
|
||||
~Fl_Clock();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Clock.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
104
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Color_Chooser.H
vendored
Normal file
104
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Color_Chooser.H
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
//
|
||||
// "$Id: Fl_Color_Chooser.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Color chooser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// The color chooser object and the color chooser popup. The popup
|
||||
// is just a window containing a single color chooser and some boxes
|
||||
// to indicate the current and cancelled color.
|
||||
|
||||
#ifndef Fl_Color_Chooser_H
|
||||
#define Fl_Color_Chooser_H
|
||||
|
||||
#include <FL/Fl_Group.H>
|
||||
#include <FL/Fl_Box.H>
|
||||
#include <FL/Fl_Return_Button.H>
|
||||
#include <FL/Fl_Choice.H>
|
||||
#include <FL/Fl_Value_Input.H>
|
||||
|
||||
class FL_EXPORT Flcc_HueBox : public Fl_Widget {
|
||||
int px, py;
|
||||
protected:
|
||||
void draw();
|
||||
int handle_key(int);
|
||||
public:
|
||||
int handle(int);
|
||||
Flcc_HueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
||||
px = py = 0;}
|
||||
};
|
||||
|
||||
class FL_EXPORT Flcc_ValueBox : public Fl_Widget {
|
||||
int py;
|
||||
protected:
|
||||
void draw();
|
||||
int handle_key(int);
|
||||
public:
|
||||
int handle(int);
|
||||
Flcc_ValueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
|
||||
py = 0;}
|
||||
};
|
||||
|
||||
class FL_EXPORT Flcc_Value_Input : public Fl_Value_Input {
|
||||
public:
|
||||
int format(char*);
|
||||
Flcc_Value_Input(int X, int Y, int W, int H) : Fl_Value_Input(X,Y,W,H) {}
|
||||
};
|
||||
|
||||
class FL_EXPORT Fl_Color_Chooser : public Fl_Group {
|
||||
Flcc_HueBox huebox;
|
||||
Flcc_ValueBox valuebox;
|
||||
Fl_Choice choice;
|
||||
Flcc_Value_Input rvalue;
|
||||
Flcc_Value_Input gvalue;
|
||||
Flcc_Value_Input bvalue;
|
||||
Fl_Box resize_box;
|
||||
double hue_, saturation_, value_;
|
||||
double r_, g_, b_;
|
||||
void set_valuators();
|
||||
static void rgb_cb(Fl_Widget*, void*);
|
||||
static void mode_cb(Fl_Widget*, void*);
|
||||
public:
|
||||
int mode() {return choice.value();}
|
||||
double hue() const {return hue_;}
|
||||
double saturation() const {return saturation_;}
|
||||
double value() const {return value_;}
|
||||
double r() const {return r_;}
|
||||
double g() const {return g_;}
|
||||
double b() const {return b_;}
|
||||
int hsv(double,double,double);
|
||||
int rgb(double,double,double);
|
||||
static void hsv2rgb(double, double, double,double&,double&,double&);
|
||||
static void rgb2hsv(double, double, double,double&,double&,double&);
|
||||
Fl_Color_Chooser(int,int,int,int,const char* = 0);
|
||||
};
|
||||
|
||||
FL_EXPORT int fl_color_chooser(const char* name, double& r, double& g, double& b);
|
||||
FL_EXPORT int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b);
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Color_Chooser.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
76
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Counter.H
vendored
Normal file
76
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Counter.H
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
//
|
||||
// "$Id: Fl_Counter.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Counter header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// A numerical value with up/down step buttons. From Forms.
|
||||
|
||||
#ifndef Fl_Counter_H
|
||||
#define Fl_Counter_H
|
||||
|
||||
#ifndef Fl_Valuator_H
|
||||
#include "Fl_Valuator.H"
|
||||
#endif
|
||||
|
||||
// values for type():
|
||||
#define FL_NORMAL_COUNTER 0
|
||||
#define FL_SIMPLE_COUNTER 1
|
||||
|
||||
class FL_EXPORT Fl_Counter : public Fl_Valuator {
|
||||
|
||||
uchar textfont_, textsize_;
|
||||
unsigned textcolor_;
|
||||
double lstep_;
|
||||
uchar mouseobj;
|
||||
static void repeat_callback(void *);
|
||||
int calc_mouseobj();
|
||||
void increment_cb();
|
||||
|
||||
protected:
|
||||
|
||||
void draw();
|
||||
|
||||
public:
|
||||
|
||||
int handle(int);
|
||||
Fl_Counter(int,int,int,int,const char * = 0);
|
||||
~Fl_Counter();
|
||||
void lstep(double a) {lstep_ = a;}
|
||||
void step(double a,double b) {Fl_Valuator::step(a); lstep_ = b;}
|
||||
void step(double a) {Fl_Valuator::step(a);}
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar s) {textfont_ = s;}
|
||||
uchar textsize() const {return textsize_;}
|
||||
void textsize(uchar s) {textsize_ = s;}
|
||||
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
||||
void textcolor(unsigned s) {textcolor_ = s;}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Counter.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
67
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Dial.H
vendored
Normal file
67
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Dial.H
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// "$Id: Fl_Dial.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Dial header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Dial_H
|
||||
#define Fl_Dial_H
|
||||
|
||||
#ifndef Fl_Valuator_H
|
||||
#include "Fl_Valuator.H"
|
||||
#endif
|
||||
|
||||
// values for type():
|
||||
#define FL_NORMAL_DIAL 0
|
||||
#define FL_LINE_DIAL 1
|
||||
#define FL_FILL_DIAL 2
|
||||
|
||||
class FL_EXPORT Fl_Dial : public Fl_Valuator {
|
||||
|
||||
short a1,a2;
|
||||
|
||||
protected:
|
||||
|
||||
// these allow subclasses to put the dial in a smaller area:
|
||||
void draw(int, int, int, int);
|
||||
int handle(int, int, int, int, int);
|
||||
void draw();
|
||||
|
||||
public:
|
||||
|
||||
int handle(int);
|
||||
Fl_Dial(int x,int y,int w,int h, const char *l = 0);
|
||||
short angle1() const {return a1;}
|
||||
void angle1(short a) {a1 = a;}
|
||||
short angle2() const {return a2;}
|
||||
void angle2(short a) {a2 = a;}
|
||||
void angles(short a, short b) {a1 = a; a2 = b;}
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Dial.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
54
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Double_Window.H
vendored
Normal file
54
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Double_Window.H
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// "$Id: Fl_Double_Window.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Double-buffered window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Double_Window_H
|
||||
#define Fl_Double_Window_H
|
||||
|
||||
#include "Fl_Window.H"
|
||||
|
||||
class FL_EXPORT Fl_Double_Window : public Fl_Window {
|
||||
protected:
|
||||
void flush(int eraseoverlay);
|
||||
char force_doublebuffering_; // force db, even if the OS already buffers windows (overlays need that on MacOS and Windows2000)
|
||||
public:
|
||||
void show();
|
||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||
void flush();
|
||||
void resize(int,int,int,int);
|
||||
void hide();
|
||||
~Fl_Double_Window();
|
||||
Fl_Double_Window(int W, int H, const char *l = 0)
|
||||
: Fl_Window(W,H,l), force_doublebuffering_(0) { type(FL_DOUBLE_WINDOW); }
|
||||
Fl_Double_Window(int X, int Y, int W, int H, const char *l = 0)
|
||||
: Fl_Window(X,Y,W,H,l), force_doublebuffering_(0) { type(FL_DOUBLE_WINDOW); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Double_Window.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
49
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Export.H
vendored
Normal file
49
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Export.H
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* "$Id: Fl_Export.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
*
|
||||
* WIN32 DLL export definitions for the Fast Light Tool Kit (FLTK).
|
||||
*
|
||||
* Copyright 1998-2005 by Bill Spitzak and others.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA.
|
||||
*
|
||||
* Please report all bugs and problems on the following page:
|
||||
*
|
||||
* http://www.fltk.org/str.php
|
||||
*/
|
||||
|
||||
#ifndef Fl_Export_H
|
||||
# define Fl_Export_H
|
||||
|
||||
/*
|
||||
* The following is only used when building DLLs under WIN32...
|
||||
*/
|
||||
|
||||
# if defined(FL_DLL) && (defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) || __GNUC__ >= 3)
|
||||
# ifdef FL_LIBRARY
|
||||
# define FL_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
# define FL_EXPORT __declspec(dllimport)
|
||||
# endif /* FL_LIBRARY */
|
||||
# else
|
||||
# define FL_EXPORT
|
||||
# endif /* FL_DLL */
|
||||
|
||||
#endif /* !Fl_Export_H */
|
||||
|
||||
/*
|
||||
* End of "$Id: Fl_Export.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
*/
|
81
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Browser.H
vendored
Normal file
81
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Browser.H
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// "$Id: Fl_File_Browser.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// FileBrowser definitions.
|
||||
//
|
||||
// Copyright 1999-2005 by Michael Sweet.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
//
|
||||
// Include necessary header files...
|
||||
//
|
||||
|
||||
#ifndef _Fl_File_Browser_H_
|
||||
# define _Fl_File_Browser_H_
|
||||
|
||||
# include "Fl_Browser.H"
|
||||
# include "Fl_File_Icon.H"
|
||||
# include "filename.H"
|
||||
|
||||
|
||||
//
|
||||
// Fl_File_Browser class...
|
||||
//
|
||||
|
||||
class FL_EXPORT Fl_File_Browser : public Fl_Browser
|
||||
{
|
||||
int filetype_;
|
||||
const char *directory_;
|
||||
uchar iconsize_;
|
||||
const char *pattern_;
|
||||
|
||||
int full_height() const;
|
||||
int item_height(void *) const;
|
||||
int item_width(void *) const;
|
||||
void item_draw(void *, int, int, int, int) const;
|
||||
int incr_height() const { return (item_height(0)); }
|
||||
|
||||
public:
|
||||
enum { FILES, DIRECTORIES };
|
||||
|
||||
Fl_File_Browser(int, int, int, int, const char * = 0);
|
||||
|
||||
uchar iconsize() const { return (iconsize_); };
|
||||
void iconsize(uchar s) { iconsize_ = s; redraw(); };
|
||||
|
||||
void filter(const char *pattern);
|
||||
const char *filter() const { return (pattern_); };
|
||||
|
||||
int load(const char *directory, Fl_File_Sort_F *sort = fl_numericsort);
|
||||
|
||||
uchar textsize() const { return (Fl_Browser::textsize()); };
|
||||
void textsize(uchar s) { Fl_Browser::textsize(s); iconsize_ = (uchar)(3 * s / 2); };
|
||||
|
||||
int filetype() const { return (filetype_); };
|
||||
void filetype(int t) { filetype_ = t; };
|
||||
};
|
||||
|
||||
#endif // !_Fl_File_Browser_H_
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_File_Browser.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
186
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Chooser.H
vendored
Normal file
186
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Chooser.H
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
//
|
||||
// "$Id: Fl_File_Chooser.H 4473 2005-08-08 00:50:02Z mike $"
|
||||
//
|
||||
// Fl_File_Chooser dialog for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// generated by Fast Light User Interface Designer (fluid) version 1.0107
|
||||
|
||||
#ifndef Fl_File_Chooser_H
|
||||
#define Fl_File_Chooser_H
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Double_Window.H>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <FL/Fl_Group.H>
|
||||
#include <FL/Fl_Choice.H>
|
||||
#include <FL/Fl_Menu_Button.H>
|
||||
#include <FL/Fl_Button.H>
|
||||
#include <FL/Fl_Preferences.H>
|
||||
#include <FL/Fl_Tile.H>
|
||||
#include <FL/Fl_File_Browser.H>
|
||||
#include <FL/Fl_Box.H>
|
||||
#include <FL/Fl_Check_Button.H>
|
||||
#include <FL/Fl_File_Input.H>
|
||||
#include <FL/Fl_Return_Button.H>
|
||||
#include <FL/fl_ask.H>
|
||||
|
||||
class FL_EXPORT Fl_File_Chooser {
|
||||
public:
|
||||
enum { SINGLE = 0, MULTI = 1, CREATE = 2, DIRECTORY = 4 };
|
||||
private:
|
||||
static Fl_Preferences prefs_;
|
||||
void (*callback_)(Fl_File_Chooser*, void *);
|
||||
void *data_;
|
||||
char directory_[1024];
|
||||
char pattern_[1024];
|
||||
char preview_text_[2048];
|
||||
int type_;
|
||||
void favoritesButtonCB();
|
||||
void favoritesCB(Fl_Widget *w);
|
||||
void fileListCB();
|
||||
void fileNameCB();
|
||||
void newdir();
|
||||
static void previewCB(Fl_File_Chooser *fc);
|
||||
void showChoiceCB();
|
||||
void update_favorites();
|
||||
void update_preview();
|
||||
public:
|
||||
Fl_File_Chooser(const char *d, const char *p, int t, const char *title);
|
||||
private:
|
||||
Fl_Double_Window *window;
|
||||
void cb_window_i(Fl_Double_Window*, void*);
|
||||
static void cb_window(Fl_Double_Window*, void*);
|
||||
Fl_Choice *showChoice;
|
||||
void cb_showChoice_i(Fl_Choice*, void*);
|
||||
static void cb_showChoice(Fl_Choice*, void*);
|
||||
Fl_Menu_Button *favoritesButton;
|
||||
void cb_favoritesButton_i(Fl_Menu_Button*, void*);
|
||||
static void cb_favoritesButton(Fl_Menu_Button*, void*);
|
||||
public:
|
||||
Fl_Button *newButton;
|
||||
private:
|
||||
void cb_newButton_i(Fl_Button*, void*);
|
||||
static void cb_newButton(Fl_Button*, void*);
|
||||
void cb__i(Fl_Tile*, void*);
|
||||
static void cb_(Fl_Tile*, void*);
|
||||
Fl_File_Browser *fileList;
|
||||
void cb_fileList_i(Fl_File_Browser*, void*);
|
||||
static void cb_fileList(Fl_File_Browser*, void*);
|
||||
Fl_Box *previewBox;
|
||||
public:
|
||||
Fl_Check_Button *previewButton;
|
||||
private:
|
||||
void cb_previewButton_i(Fl_Check_Button*, void*);
|
||||
static void cb_previewButton(Fl_Check_Button*, void*);
|
||||
Fl_File_Input *fileName;
|
||||
void cb_fileName_i(Fl_File_Input*, void*);
|
||||
static void cb_fileName(Fl_File_Input*, void*);
|
||||
Fl_Return_Button *okButton;
|
||||
void cb_okButton_i(Fl_Return_Button*, void*);
|
||||
static void cb_okButton(Fl_Return_Button*, void*);
|
||||
Fl_Button *cancelButton;
|
||||
void cb_cancelButton_i(Fl_Button*, void*);
|
||||
static void cb_cancelButton(Fl_Button*, void*);
|
||||
Fl_Double_Window *favWindow;
|
||||
Fl_File_Browser *favList;
|
||||
void cb_favList_i(Fl_File_Browser*, void*);
|
||||
static void cb_favList(Fl_File_Browser*, void*);
|
||||
Fl_Button *favUpButton;
|
||||
void cb_favUpButton_i(Fl_Button*, void*);
|
||||
static void cb_favUpButton(Fl_Button*, void*);
|
||||
Fl_Button *favDeleteButton;
|
||||
void cb_favDeleteButton_i(Fl_Button*, void*);
|
||||
static void cb_favDeleteButton(Fl_Button*, void*);
|
||||
Fl_Button *favDownButton;
|
||||
void cb_favDownButton_i(Fl_Button*, void*);
|
||||
static void cb_favDownButton(Fl_Button*, void*);
|
||||
Fl_Button *favCancelButton;
|
||||
void cb_favCancelButton_i(Fl_Button*, void*);
|
||||
static void cb_favCancelButton(Fl_Button*, void*);
|
||||
Fl_Return_Button *favOkButton;
|
||||
void cb_favOkButton_i(Fl_Return_Button*, void*);
|
||||
static void cb_favOkButton(Fl_Return_Button*, void*);
|
||||
public:
|
||||
~Fl_File_Chooser();
|
||||
void callback(void (*cb)(Fl_File_Chooser *, void *), void *d = 0);
|
||||
void color(Fl_Color c);
|
||||
Fl_Color color();
|
||||
int count();
|
||||
void directory(const char *d);
|
||||
char * directory();
|
||||
void filter(const char *p);
|
||||
const char * filter();
|
||||
int filter_value();
|
||||
void filter_value(int f);
|
||||
void hide();
|
||||
void iconsize(uchar s);
|
||||
uchar iconsize();
|
||||
void label(const char *l);
|
||||
const char * label();
|
||||
void ok_label(const char *l);
|
||||
const char * ok_label();
|
||||
void preview(int e);
|
||||
int preview() const { return previewButton->value(); };
|
||||
void rescan();
|
||||
void show();
|
||||
int shown();
|
||||
void textcolor(Fl_Color c);
|
||||
Fl_Color textcolor();
|
||||
void textfont(uchar f);
|
||||
uchar textfont();
|
||||
void textsize(uchar s);
|
||||
uchar textsize();
|
||||
void type(int t);
|
||||
int type();
|
||||
void * user_data() const;
|
||||
void user_data(void *d);
|
||||
const char *value(int f = 1);
|
||||
void value(const char *filename);
|
||||
int visible();
|
||||
static const char *add_favorites_label;
|
||||
static const char *all_files_label;
|
||||
static const char *custom_filter_label;
|
||||
static const char *existing_file_label;
|
||||
static const char *favorites_label;
|
||||
static const char *filename_label;
|
||||
static const char *filesystems_label;
|
||||
static const char *manage_favorites_label;
|
||||
static const char *new_directory_label;
|
||||
static const char *new_directory_tooltip;
|
||||
static const char *preview_label;
|
||||
static const char *save_label;
|
||||
static const char *show_label;
|
||||
static Fl_File_Sort_F *sort;
|
||||
};
|
||||
FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname,int relative=0);
|
||||
FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname,int relative=0);
|
||||
FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*));
|
||||
FL_EXPORT void fl_file_chooser_ok_label(const char*l);
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_File_Chooser.H 4473 2005-08-08 00:50:02Z mike $".
|
||||
//
|
115
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Icon.H
vendored
Normal file
115
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Icon.H
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
//
|
||||
// "$Id: Fl_File_Icon.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Fl_File_Icon definitions.
|
||||
//
|
||||
// Copyright 1999-2005 by Michael Sweet.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
//
|
||||
// Include necessary header files...
|
||||
//
|
||||
|
||||
#ifndef _Fl_Fl_File_Icon_H_
|
||||
# define _Fl_Fl_File_Icon_H_
|
||||
|
||||
# include "Fl.H"
|
||||
|
||||
|
||||
//
|
||||
// Special color value for the icon color.
|
||||
//
|
||||
|
||||
# define FL_ICON_COLOR (Fl_Color)0xffffffff
|
||||
|
||||
|
||||
//
|
||||
// Fl_File_Icon class...
|
||||
//
|
||||
|
||||
class FL_EXPORT Fl_File_Icon //// Icon data
|
||||
{
|
||||
static Fl_File_Icon *first_; // Pointer to first icon/filetype
|
||||
Fl_File_Icon *next_; // Pointer to next icon/filetype
|
||||
const char *pattern_; // Pattern string
|
||||
int type_; // Match only if directory or file?
|
||||
int num_data_; // Number of data elements
|
||||
int alloc_data_; // Number of allocated elements
|
||||
short *data_; // Icon data
|
||||
|
||||
public:
|
||||
|
||||
enum // File types
|
||||
{
|
||||
ANY, // Any kind of file
|
||||
PLAIN, // Only plain files
|
||||
FIFO, // Only named pipes
|
||||
DEVICE, // Only character and block devices
|
||||
LINK, // Only symbolic links
|
||||
DIRECTORY // Only directories
|
||||
};
|
||||
|
||||
enum // Data opcodes
|
||||
{
|
||||
END, // End of primitive/icon
|
||||
COLOR, // Followed by color value (2 shorts)
|
||||
LINE, // Start of line
|
||||
CLOSEDLINE, // Start of closed line
|
||||
POLYGON, // Start of polygon
|
||||
OUTLINEPOLYGON, // Followed by outline color (2 shorts)
|
||||
VERTEX // Followed by scaled X,Y
|
||||
};
|
||||
|
||||
Fl_File_Icon(const char *p, int t, int nd = 0, short *d = 0);
|
||||
~Fl_File_Icon();
|
||||
|
||||
short *add(short d);
|
||||
short *add_color(Fl_Color c)
|
||||
{ short *d = add((short)COLOR); add((short)(c >> 16)); add((short)c); return (d); }
|
||||
short *add_vertex(int x, int y)
|
||||
{ short *d = add((short)VERTEX); add((short)x); add((short)y); return (d); }
|
||||
short *add_vertex(float x, float y)
|
||||
{ short *d = add((short)VERTEX); add((short)(x * 10000.0));
|
||||
add((short)(y * 10000.0)); return (d); }
|
||||
void clear() { num_data_ = 0; }
|
||||
void draw(int x, int y, int w, int h, Fl_Color ic, int active = 1);
|
||||
void label(Fl_Widget *w);
|
||||
static void labeltype(const Fl_Label *o, int x, int y, int w, int h, Fl_Align a);
|
||||
void load(const char *f);
|
||||
int load_fti(const char *fti);
|
||||
int load_image(const char *i);
|
||||
Fl_File_Icon *next() { return (next_); }
|
||||
const char *pattern() { return (pattern_); }
|
||||
int size() { return (num_data_); }
|
||||
int type() { return (type_); }
|
||||
short *value() { return (data_); }
|
||||
|
||||
static Fl_File_Icon *find(const char *filename, int filetype = ANY);
|
||||
static Fl_File_Icon *first() { return (first_); }
|
||||
static void load_system_icons(void);
|
||||
};
|
||||
|
||||
#endif // !_Fl_Fl_File_Icon_H_
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_File_Icon.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
68
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Input.H
vendored
Normal file
68
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_File_Input.H
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// "$Id: Fl_File_Input.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// File_Input header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
// Original version Copyright 1998 by Curtis Edwards.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_File_Input_H
|
||||
# define Fl_File_Input_H
|
||||
|
||||
# include <FL/Fl_Input.H>
|
||||
|
||||
|
||||
class FL_EXPORT Fl_File_Input : public Fl_Input
|
||||
{
|
||||
Fl_Color errorcolor_;
|
||||
char ok_entry_;
|
||||
uchar down_box_;
|
||||
short buttons_[200];
|
||||
short pressed_;
|
||||
|
||||
void draw_buttons();
|
||||
int handle_button(int event);
|
||||
void update_buttons();
|
||||
|
||||
public:
|
||||
|
||||
Fl_File_Input(int,int,int,int,const char *t=0);
|
||||
|
||||
virtual int handle(int);
|
||||
virtual void draw();
|
||||
|
||||
Fl_Boxtype down_box() const { return (Fl_Boxtype)down_box_; }
|
||||
void down_box(Fl_Boxtype b) { down_box_ = b; }
|
||||
Fl_Color errorcolor() const { return errorcolor_; }
|
||||
void errorcolor(Fl_Color c) { errorcolor_ = c; }
|
||||
int value(const char*);
|
||||
int value(const char*, int);
|
||||
const char *value() { return Fl_Input_::value(); }
|
||||
};
|
||||
|
||||
#endif // !Fl_File_Input_H
|
||||
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_File_Input.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Fill_Dial.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Fill_Dial.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Fill_Dial.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Filled dial header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Fill_Dial_H
|
||||
#define Fl_Fill_Dial_H
|
||||
|
||||
#include "Fl_Dial.H"
|
||||
|
||||
class Fl_Fill_Dial : public Fl_Dial {
|
||||
public:
|
||||
Fl_Fill_Dial(int x,int y,int w,int h, const char *l = 0)
|
||||
: Fl_Dial(x,y,w,h,l) {type(FL_FILL_DIAL);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Fill_Dial.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Fill_Slider.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Fill_Slider.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Fill_Slider.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Filled slider header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Fill_Slider_H
|
||||
#define Fl_Fill_Slider_H
|
||||
|
||||
#include "Fl_Slider.H"
|
||||
|
||||
class Fl_Fill_Slider : public Fl_Slider {
|
||||
public:
|
||||
Fl_Fill_Slider(int x,int y,int w,int h,const char *l=0)
|
||||
: Fl_Slider(x,y,w,h,l) {type(FL_VERT_FILL_SLIDER);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Fill_Slider.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Float_Input.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Float_Input.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Float_Input.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Floating point input header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Float_Input_H
|
||||
#define Fl_Float_Input_H
|
||||
|
||||
#include "Fl_Input.H"
|
||||
|
||||
class Fl_Float_Input : public Fl_Input {
|
||||
public:
|
||||
Fl_Float_Input(int X,int Y,int W,int H,const char *l = 0)
|
||||
: Fl_Input(X,Y,W,H,l) {type(FL_FLOAT_INPUT);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Float_Input.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_FormsBitmap.H
vendored
Normal file
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_FormsBitmap.H
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// "$Id: Fl_FormsBitmap.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Forms bitmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_FormsBitmap_H
|
||||
#define Fl_FormsBitmap_H
|
||||
|
||||
#include "Fl_Bitmap.H"
|
||||
|
||||
class FL_EXPORT Fl_FormsBitmap : public Fl_Widget {
|
||||
Fl_Bitmap *b;
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||
void set(int W, int H, const uchar *bits);
|
||||
void bitmap(Fl_Bitmap *B) {b = B;}
|
||||
Fl_Bitmap *bitmap() const {return b;}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_FormsBitmap.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_FormsPixmap.H
vendored
Normal file
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_FormsPixmap.H
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// "$Id: Fl_FormsPixmap.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Forms pixmap header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_FormsPixmap_H
|
||||
#define Fl_FormsPixmap_H
|
||||
|
||||
#include "Fl_Pixmap.H"
|
||||
|
||||
class FL_EXPORT Fl_FormsPixmap : public Fl_Widget {
|
||||
Fl_Pixmap *b;
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
Fl_FormsPixmap(Fl_Boxtype, int, int, int, int, const char * = 0);
|
||||
void set(/*const*/char * const * bits);
|
||||
void Pixmap(Fl_Pixmap *B) {b = B;}
|
||||
Fl_Pixmap *Pixmap() const {return b;}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_FormsPixmap.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
66
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Free.H
vendored
Normal file
66
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Free.H
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
//
|
||||
// "$Id: Fl_Free.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Forms free header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Free_H
|
||||
#define Fl_Free_H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
#define FL_NORMAL_FREE 1
|
||||
#define FL_SLEEPING_FREE 2
|
||||
#define FL_INPUT_FREE 3
|
||||
#define FL_CONTINUOUS_FREE 4
|
||||
#define FL_ALL_FREE 5
|
||||
|
||||
typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
|
||||
|
||||
class FL_EXPORT Fl_Free : public Fl_Widget {
|
||||
FL_HANDLEPTR hfunc;
|
||||
static void step(void *);
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Free(uchar t,int x,int y,int w,int h,const char *l,FL_HANDLEPTR hdl);
|
||||
~Fl_Free();
|
||||
};
|
||||
|
||||
// old event names for compatability:
|
||||
#define FL_MOUSE FL_DRAG
|
||||
#define FL_DRAW 100 // NOT USED
|
||||
#define FL_STEP 101
|
||||
#define FL_FREEMEM 102 // NOT USED
|
||||
#define FL_FREEZE 103 // NOT USED
|
||||
#define FL_THAW 104 // NOT USED
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Free.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_GIF_Image.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_GIF_Image.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_GIF_Image.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// GIF image header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_GIF_Image_H
|
||||
#define Fl_GIF_Image_H
|
||||
# include "Fl_Pixmap.H"
|
||||
|
||||
class FL_EXPORT Fl_GIF_Image : public Fl_Pixmap {
|
||||
|
||||
public:
|
||||
|
||||
Fl_GIF_Image(const char* filename);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_GIF_Image.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
96
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Gl_Window.H
vendored
Normal file
96
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Gl_Window.H
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
//
|
||||
// "$Id: Fl_Gl_Window.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// OpenGL header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
#ifndef Fl_Gl_Window_H
|
||||
#define Fl_Gl_Window_H
|
||||
|
||||
#include "Fl_Window.H"
|
||||
|
||||
#ifndef GLContext
|
||||
typedef void* GLContext; // actually a GLXContext or HGLDC
|
||||
#endif
|
||||
|
||||
class Fl_Gl_Choice; // structure to hold result of glXChooseVisual
|
||||
|
||||
class FL_EXPORT Fl_Gl_Window : public Fl_Window {
|
||||
|
||||
int mode_;
|
||||
const int *alist;
|
||||
Fl_Gl_Choice *g;
|
||||
GLContext context_;
|
||||
char valid_;
|
||||
char damage1_; // damage() of back buffer
|
||||
virtual void draw_overlay();
|
||||
void init();
|
||||
|
||||
void *overlay;
|
||||
void make_overlay();
|
||||
friend class _Fl_Gl_Overlay;
|
||||
|
||||
static int can_do(int, const int *);
|
||||
int mode(int, const int *);
|
||||
|
||||
public:
|
||||
|
||||
void show();
|
||||
void show(int a, char **b) {Fl_Window::show(a,b);}
|
||||
void flush();
|
||||
void hide();
|
||||
void resize(int,int,int,int);
|
||||
|
||||
char valid() const {return valid_;}
|
||||
void valid(char v) {valid_ = v;}
|
||||
void invalidate();
|
||||
|
||||
static int can_do(int m) {return can_do(m,0);}
|
||||
static int can_do(const int *m) {return can_do(0, m);}
|
||||
int can_do() {return can_do(mode_,alist);}
|
||||
Fl_Mode mode() const {return (Fl_Mode)mode_;}
|
||||
int mode(int a) {return mode(a,0);}
|
||||
int mode(const int *a) {return mode(0, a);}
|
||||
|
||||
void* context() const {return context_;}
|
||||
void context(void*, int destroy_flag = 0);
|
||||
void make_current();
|
||||
void swap_buffers();
|
||||
void ortho();
|
||||
|
||||
int can_do_overlay();
|
||||
void redraw_overlay();
|
||||
void hide_overlay();
|
||||
void make_overlay_current();
|
||||
|
||||
~Fl_Gl_Window();
|
||||
Fl_Gl_Window(int W, int H, const char *l=0) : Fl_Window(W,H,l) {init();}
|
||||
Fl_Gl_Window(int X, int Y, int W, int H, const char *l=0)
|
||||
: Fl_Window(X,Y,W,H,l) {init();}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Gl_Window.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
107
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Group.H
vendored
Normal file
107
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Group.H
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
//
|
||||
// "$Id: Fl_Group.H 4421 2005-07-15 09:34:53Z matt $"
|
||||
//
|
||||
// Group header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Group_H
|
||||
#define Fl_Group_H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
class FL_EXPORT Fl_Group : public Fl_Widget {
|
||||
|
||||
Fl_Widget** array_;
|
||||
Fl_Widget* savedfocus_;
|
||||
Fl_Widget* resizable_;
|
||||
int children_;
|
||||
short *sizes_; // remembered initial sizes of children
|
||||
|
||||
int navigation(int);
|
||||
static Fl_Group *current_;
|
||||
|
||||
// unimplemented copy ctor and assignment operator
|
||||
Fl_Group(const Fl_Group&);
|
||||
Fl_Group& operator=(const Fl_Group&);
|
||||
|
||||
protected:
|
||||
|
||||
void draw();
|
||||
void draw_child(Fl_Widget&) const;
|
||||
void draw_children();
|
||||
void draw_outside_label(const Fl_Widget&) const ;
|
||||
void update_child(Fl_Widget&) const;
|
||||
short* sizes();
|
||||
|
||||
public:
|
||||
|
||||
int handle(int);
|
||||
void begin();
|
||||
void end();
|
||||
static Fl_Group *current();
|
||||
static void current(Fl_Group *g);
|
||||
|
||||
int children() const {return children_;}
|
||||
Fl_Widget* child(int n) const {return array()[n];}
|
||||
int find(const Fl_Widget*) const;
|
||||
int find(const Fl_Widget& o) const {return find(&o);}
|
||||
Fl_Widget* const* array() const;
|
||||
|
||||
void resize(int,int,int,int);
|
||||
Fl_Group(int,int,int,int, const char * = 0);
|
||||
virtual ~Fl_Group();
|
||||
void add(Fl_Widget&);
|
||||
void add(Fl_Widget* o) {add(*o);}
|
||||
void insert(Fl_Widget&, int i);
|
||||
void insert(Fl_Widget& o, Fl_Widget* before) {insert(o,find(before));}
|
||||
void remove(Fl_Widget&);
|
||||
void remove(Fl_Widget* o) {remove(*o);}
|
||||
void clear();
|
||||
|
||||
void resizable(Fl_Widget& o) {resizable_ = &o;}
|
||||
void resizable(Fl_Widget* o) {resizable_ = o;}
|
||||
Fl_Widget* resizable() const {return resizable_;}
|
||||
void add_resizable(Fl_Widget& o) {resizable_ = &o; add(o);}
|
||||
void init_sizes();
|
||||
|
||||
// back compatability function:
|
||||
void focus(Fl_Widget* o) {o->take_focus();}
|
||||
Fl_Widget* & _ddfdesign_kludge() {return resizable_;}
|
||||
void forms_end();
|
||||
};
|
||||
|
||||
// dummy class used to end child groups in constructors for complex
|
||||
// subclasses of Fl_Group:
|
||||
class FL_EXPORT Fl_End {
|
||||
public:
|
||||
Fl_End() {Fl_Group::current()->end();}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Group.H 4421 2005-07-15 09:34:53Z matt $".
|
||||
//
|
93
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Help_Dialog.H
vendored
Normal file
93
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Help_Dialog.H
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
//
|
||||
// "$Id: Fl_Help_Dialog.H 4582 2005-09-25 16:54:40Z matt $"
|
||||
//
|
||||
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// generated by Fast Light User Interface Designer (fluid) version 1.0107
|
||||
|
||||
#ifndef Fl_Help_Dialog_H
|
||||
#define Fl_Help_Dialog_H
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Double_Window.H>
|
||||
#include <FL/Fl_Help_View.H>
|
||||
#include <FL/Fl_Group.H>
|
||||
#include <FL/Fl_Button.H>
|
||||
#include <FL/Fl_Input.H>
|
||||
|
||||
class FL_EXPORT Fl_Help_Dialog {
|
||||
int index_;
|
||||
int max_;
|
||||
int line_[100];
|
||||
char file_[100][256];
|
||||
int find_pos_;
|
||||
public:
|
||||
Fl_Help_Dialog();
|
||||
private:
|
||||
Fl_Double_Window *window_;
|
||||
Fl_Help_View *view_;
|
||||
void cb_view__i(Fl_Help_View*, void*);
|
||||
static void cb_view_(Fl_Help_View*, void*);
|
||||
void cb_Close_i(Fl_Button*, void*);
|
||||
static void cb_Close(Fl_Button*, void*);
|
||||
Fl_Button *back_;
|
||||
void cb_back__i(Fl_Button*, void*);
|
||||
static void cb_back_(Fl_Button*, void*);
|
||||
Fl_Button *forward_;
|
||||
void cb_forward__i(Fl_Button*, void*);
|
||||
static void cb_forward_(Fl_Button*, void*);
|
||||
Fl_Button *smaller_;
|
||||
void cb_smaller__i(Fl_Button*, void*);
|
||||
static void cb_smaller_(Fl_Button*, void*);
|
||||
Fl_Button *larger_;
|
||||
void cb_larger__i(Fl_Button*, void*);
|
||||
static void cb_larger_(Fl_Button*, void*);
|
||||
Fl_Input *find_;
|
||||
void cb_find__i(Fl_Input*, void*);
|
||||
static void cb_find_(Fl_Input*, void*);
|
||||
public:
|
||||
~Fl_Help_Dialog();
|
||||
int h();
|
||||
void hide();
|
||||
void load(const char *f);
|
||||
void position(int xx, int yy);
|
||||
void resize(int xx, int yy, int ww, int hh);
|
||||
void show();
|
||||
void show(int argc, char **argv);
|
||||
void textsize(uchar s);
|
||||
uchar textsize();
|
||||
void topline(const char *n);
|
||||
void topline(int n);
|
||||
void value(const char *f);
|
||||
const char * value() const;
|
||||
int visible();
|
||||
int w();
|
||||
int x();
|
||||
int y();
|
||||
};
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Help_Dialog.H 4582 2005-09-25 16:54:40Z matt $".
|
||||
//
|
195
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Help_View.H
vendored
Normal file
195
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Help_View.H
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
//
|
||||
// "$Id: Fl_Help_View.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Help Viewer widget definitions.
|
||||
//
|
||||
// Copyright 1997-2005 by Easy Software Products.
|
||||
// Image support donated by Matthias Melcher, Copyright 2000.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Help_View_H
|
||||
# define Fl_Help_View_H
|
||||
|
||||
//
|
||||
// Include necessary header files...
|
||||
//
|
||||
|
||||
# include <stdio.h>
|
||||
# include "Fl.H"
|
||||
# include "Fl_Group.H"
|
||||
# include "Fl_Scrollbar.H"
|
||||
# include "fl_draw.H"
|
||||
# include "Fl_Shared_Image.H"
|
||||
|
||||
|
||||
//
|
||||
// Fl_Help_Func type - link callback function for files...
|
||||
//
|
||||
|
||||
|
||||
typedef const char *(Fl_Help_Func)(Fl_Widget *, const char *);
|
||||
|
||||
|
||||
//
|
||||
// Fl_Help_Block structure...
|
||||
//
|
||||
|
||||
struct Fl_Help_Block
|
||||
{
|
||||
const char *start, // Start of text
|
||||
*end; // End of text
|
||||
uchar border; // Draw border?
|
||||
Fl_Color bgcolor; // Background color
|
||||
int x, // Indentation/starting X coordinate
|
||||
y, // Starting Y coordinate
|
||||
w, // Width
|
||||
h; // Height
|
||||
int line[32]; // Left starting position for each line
|
||||
};
|
||||
|
||||
//
|
||||
// Fl_Help_Link structure...
|
||||
//
|
||||
|
||||
struct Fl_Help_Link
|
||||
{
|
||||
char filename[192], // Reference filename
|
||||
name[32]; // Link target (blank if none)
|
||||
int x, // X offset of link text
|
||||
y, // Y offset of link text
|
||||
w, // Width of link text
|
||||
h; // Height of link text
|
||||
};
|
||||
|
||||
//
|
||||
// Fl_Help_Target structure...
|
||||
//
|
||||
|
||||
struct Fl_Help_Target
|
||||
{
|
||||
char name[32]; // Target name
|
||||
int y; // Y offset of target
|
||||
};
|
||||
|
||||
//
|
||||
// Fl_Help_View class...
|
||||
//
|
||||
|
||||
class FL_EXPORT Fl_Help_View : public Fl_Group //// Help viewer widget
|
||||
{
|
||||
enum { RIGHT = -1, CENTER, LEFT }; // Alignments
|
||||
|
||||
char title_[1024]; // Title string
|
||||
Fl_Color defcolor_, // Default text color
|
||||
bgcolor_, // Background color
|
||||
textcolor_, // Text color
|
||||
linkcolor_; // Link color
|
||||
uchar textfont_, // Default font for text
|
||||
textsize_; // Default font size
|
||||
const char *value_; // HTML text value
|
||||
|
||||
int nblocks_, // Number of blocks/paragraphs
|
||||
ablocks_; // Allocated blocks
|
||||
Fl_Help_Block *blocks_; // Blocks
|
||||
|
||||
int nfonts_; // Number of fonts in stack
|
||||
uchar fonts_[100][2]; // Font stack
|
||||
|
||||
Fl_Help_Func *link_; // Link transform function
|
||||
|
||||
int nlinks_, // Number of links
|
||||
alinks_; // Allocated links
|
||||
Fl_Help_Link *links_; // Links
|
||||
|
||||
int ntargets_, // Number of targets
|
||||
atargets_; // Allocated targets
|
||||
Fl_Help_Target *targets_; // Targets
|
||||
|
||||
char directory_[1024]; // Directory for current file
|
||||
char filename_[1024]; // Current filename
|
||||
int topline_, // Top line in document
|
||||
leftline_, // Lefthand position
|
||||
size_, // Total document length
|
||||
hsize_; // Maximum document width
|
||||
Fl_Scrollbar scrollbar_, // Vertical scrollbar for document
|
||||
hscrollbar_; // Horizontal scrollbar
|
||||
|
||||
Fl_Help_Block *add_block(const char *s, int xx, int yy, int ww, int hh, uchar border = 0);
|
||||
void add_link(const char *n, int xx, int yy, int ww, int hh);
|
||||
void add_target(const char *n, int yy);
|
||||
static int compare_targets(const Fl_Help_Target *t0, const Fl_Help_Target *t1);
|
||||
int do_align(Fl_Help_Block *block, int line, int xx, int a, int &l);
|
||||
void draw();
|
||||
void format();
|
||||
void format_table(int *table_width, int *columns, const char *table);
|
||||
int get_align(const char *p, int a);
|
||||
const char *get_attr(const char *p, const char *n, char *buf, int bufsize);
|
||||
Fl_Color get_color(const char *n, Fl_Color c);
|
||||
Fl_Shared_Image *get_image(const char *name, int W, int H);
|
||||
int get_length(const char *l);
|
||||
int handle(int);
|
||||
|
||||
void initfont(uchar &f, uchar &s) { nfonts_ = 0;
|
||||
fl_font(f = fonts_[0][0] = textfont_,
|
||||
s = fonts_[0][1] = textsize_); }
|
||||
void pushfont(uchar f, uchar s) { if (nfonts_ < 99) nfonts_ ++;
|
||||
fl_font(fonts_[nfonts_][0] = f,
|
||||
fonts_[nfonts_][1] = s); }
|
||||
void popfont(uchar &f, uchar &s) { if (nfonts_ > 0) nfonts_ --;
|
||||
fl_font(f = fonts_[nfonts_][0],
|
||||
s = fonts_[nfonts_][1]); }
|
||||
|
||||
public:
|
||||
|
||||
Fl_Help_View(int xx, int yy, int ww, int hh, const char *l = 0);
|
||||
~Fl_Help_View();
|
||||
const char *directory() const { if (directory_[0]) return (directory_);
|
||||
else return ((const char *)0); }
|
||||
const char *filename() const { if (filename_[0]) return (filename_);
|
||||
else return ((const char *)0); }
|
||||
int find(const char *s, int p = 0);
|
||||
void link(Fl_Help_Func *fn) { link_ = fn; }
|
||||
int load(const char *f);
|
||||
void resize(int,int,int,int);
|
||||
int size() const { return (size_); }
|
||||
void size(int W, int H) { Fl_Widget::size(W, H); }
|
||||
void textcolor(Fl_Color c) { if (textcolor_ == defcolor_) textcolor_ = c; defcolor_ = c; }
|
||||
Fl_Color textcolor() const { return (defcolor_); }
|
||||
void textfont(uchar f) { textfont_ = f; format(); }
|
||||
uchar textfont() const { return (textfont_); }
|
||||
void textsize(uchar s) { textsize_ = s; format(); }
|
||||
uchar textsize() const { return (textsize_); }
|
||||
const char *title() { return (title_); }
|
||||
void topline(const char *n);
|
||||
void topline(int);
|
||||
int topline() const { return (topline_); }
|
||||
void leftline(int);
|
||||
int leftline() const { return (leftline_); }
|
||||
void value(const char *v);
|
||||
const char *value() const { return (value_); }
|
||||
};
|
||||
|
||||
#endif // !Fl_Help_View_H
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Help_View.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hold_Browser.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hold_Browser.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Hold_Browser.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Hold browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Hold_Browser_H
|
||||
#define Fl_Hold_Browser_H
|
||||
|
||||
#include "Fl_Browser.H"
|
||||
|
||||
class Fl_Hold_Browser : public Fl_Browser {
|
||||
public:
|
||||
Fl_Hold_Browser(int X,int Y,int W,int H,const char *l=0)
|
||||
: Fl_Browser(X,Y,W,H,l) {type(FL_HOLD_BROWSER);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Hold_Browser.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
42
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Fill_Slider.H
vendored
Normal file
42
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Fill_Slider.H
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// "$Id: Fl_Hor_Fill_Slider.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Horizontal fill slider header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
#ifndef Fl_Hor_Fill_Slider_H
|
||||
#define Fl_Hor_Fill_Slider_H
|
||||
|
||||
#include "Fl_Slider.H"
|
||||
|
||||
class Fl_Hor_Fill_Slider : public Fl_Slider {
|
||||
public:
|
||||
Fl_Hor_Fill_Slider(int x,int y,int w,int h,const char *l=0)
|
||||
: Fl_Slider(x,y,w,h,l) {type(FL_HOR_FILL_SLIDER);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Hor_Fill_Slider.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Nice_Slider.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Nice_Slider.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Hor_Nice_Slider.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Horizontal "nice" slider header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Hor_Nice_Slider_H
|
||||
#define Fl_Hor_Nice_Slider_H
|
||||
|
||||
#include "Fl_Slider.H"
|
||||
|
||||
class Fl_Hor_Nice_Slider : public Fl_Slider {
|
||||
public:
|
||||
Fl_Hor_Nice_Slider(int x,int y,int w,int h,const char *l=0)
|
||||
: Fl_Slider(x,y,w,h,l) {type(FL_HOR_NICE_SLIDER); box(FL_FLAT_BOX);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Hor_Nice_Slider.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Slider.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Slider.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Hor_Slider.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Horizontal slider header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Hor_Slider_H
|
||||
#define Fl_Hor_Slider_H
|
||||
|
||||
#include "Fl_Slider.H"
|
||||
|
||||
class Fl_Hor_Slider : public Fl_Slider {
|
||||
public:
|
||||
Fl_Hor_Slider(int X,int Y,int W,int H,const char *l=0)
|
||||
: Fl_Slider(X,Y,W,H,l) {type(FL_HOR_SLIDER);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Hor_Slider.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Value_Slider.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Hor_Value_Slider.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Hor_Value_Slider.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Horizontal value slider header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Hor_Value_Slider_H
|
||||
#define Fl_Hor_Value_Slider_H
|
||||
|
||||
#include "Fl_Value_Slider.H"
|
||||
|
||||
class Fl_Hor_Value_Slider : public Fl_Value_Slider {
|
||||
public:
|
||||
Fl_Hor_Value_Slider(int X,int Y,int W,int H,const char *l=0)
|
||||
: Fl_Value_Slider(X,Y,W,H,l) {type(FL_HOR_SLIDER);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Hor_Value_Slider.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
112
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Image.H
vendored
Normal file
112
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Image.H
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
//
|
||||
// "$Id: Fl_Image.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Image header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Image_H
|
||||
# define Fl_Image_H
|
||||
|
||||
# include "Enumerations.H"
|
||||
|
||||
class Fl_Widget;
|
||||
struct Fl_Menu_Item;
|
||||
struct Fl_Label;
|
||||
|
||||
class FL_EXPORT Fl_Image {
|
||||
int w_, h_, d_, ld_, count_;
|
||||
const char * const *data_;
|
||||
|
||||
// Forbid use of copy contructor and assign operator
|
||||
Fl_Image & operator=(const Fl_Image &);
|
||||
Fl_Image(const Fl_Image &);
|
||||
|
||||
protected:
|
||||
|
||||
void w(int W) {w_ = W;}
|
||||
void h(int H) {h_ = H;}
|
||||
void d(int D) {d_ = D;}
|
||||
void ld(int LD) {ld_ = LD;}
|
||||
void data(const char * const *p, int c) {data_ = p; count_ = c;}
|
||||
void draw_empty(int X, int Y);
|
||||
|
||||
static void labeltype(const Fl_Label *lo, int lx, int ly, int lw, int lh, Fl_Align la);
|
||||
static void measure(const Fl_Label *lo, int &lw, int &lh);
|
||||
|
||||
public:
|
||||
|
||||
int w() const {return w_;}
|
||||
int h() const {return h_;}
|
||||
int d() const {return d_;}
|
||||
int ld() const {return ld_;}
|
||||
int count() const {return count_;}
|
||||
const char * const *data() const {return data_;}
|
||||
|
||||
Fl_Image(int W, int H, int D) {w_ = W; h_ = H; d_ = D; ld_ = 0; count_ = 0; data_ = 0;}
|
||||
virtual ~Fl_Image();
|
||||
virtual Fl_Image *copy(int W, int H);
|
||||
Fl_Image *copy() { return copy(w(), h()); }
|
||||
virtual void color_average(Fl_Color c, float i);
|
||||
void inactive() { color_average(FL_GRAY, .33f); }
|
||||
virtual void desaturate();
|
||||
virtual void label(Fl_Widget*w);
|
||||
virtual void label(Fl_Menu_Item*m);
|
||||
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);}
|
||||
virtual void uncache();
|
||||
};
|
||||
|
||||
class FL_EXPORT Fl_RGB_Image : public Fl_Image {
|
||||
public:
|
||||
|
||||
const uchar *array;
|
||||
int alloc_array; // Non-zero if array was allocated
|
||||
|
||||
#if defined(__APPLE__) || defined(WIN32)
|
||||
void *id; // for internal use
|
||||
void *mask; // for internal use (mask bitmap)
|
||||
#else
|
||||
unsigned id; // for internal use
|
||||
unsigned mask; // for internal use (mask bitmap)
|
||||
#endif // __APPLE__ || WIN32
|
||||
|
||||
Fl_RGB_Image(const uchar *bits, int W, int H, int D=3, int LD=0) :
|
||||
Fl_Image(W,H,D), array(bits), alloc_array(0), id(0), mask(0) {data((const char **)&array, 1); ld(LD);}
|
||||
virtual ~Fl_RGB_Image();
|
||||
virtual Fl_Image *copy(int W, int H);
|
||||
Fl_Image *copy() { return copy(w(), h()); }
|
||||
virtual void color_average(Fl_Color c, float i);
|
||||
virtual void desaturate();
|
||||
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
|
||||
void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);}
|
||||
virtual void label(Fl_Widget*w);
|
||||
virtual void label(Fl_Menu_Item*m);
|
||||
virtual void uncache();
|
||||
};
|
||||
|
||||
#endif // !Fl_Image_H
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Image.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Input.H
vendored
Normal file
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Input.H
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// "$Id: Fl_Input.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Input header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Input_H
|
||||
#define Fl_Input_H
|
||||
|
||||
#include "Fl_Input_.H"
|
||||
|
||||
class FL_EXPORT Fl_Input : public Fl_Input_ {
|
||||
int handle_key();
|
||||
int shift_position(int p);
|
||||
int shift_up_down_position(int p);
|
||||
void handle_mouse(int keepmark=0);
|
||||
public:
|
||||
void draw();
|
||||
int handle(int);
|
||||
Fl_Input(int,int,int,int,const char * = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Input.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
145
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Input_.H
vendored
Normal file
145
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Input_.H
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
//
|
||||
// "$Id: Fl_Input_.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Input base class header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Input__H
|
||||
#define Fl_Input__H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
|
||||
#define FL_NORMAL_INPUT 0
|
||||
#define FL_FLOAT_INPUT 1
|
||||
#define FL_INT_INPUT 2
|
||||
#define FL_HIDDEN_INPUT 3
|
||||
#define FL_MULTILINE_INPUT 4
|
||||
#define FL_SECRET_INPUT 5
|
||||
#define FL_INPUT_TYPE 7
|
||||
#define FL_INPUT_READONLY 8
|
||||
#define FL_NORMAL_OUTPUT (FL_NORMAL_INPUT | FL_INPUT_READONLY)
|
||||
#define FL_MULTILINE_OUTPUT (FL_MULTILINE_INPUT | FL_INPUT_READONLY)
|
||||
#define FL_INPUT_WRAP 16
|
||||
#define FL_MULTILINE_INPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_WRAP)
|
||||
#define FL_MULTILINE_OUTPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_READONLY | FL_INPUT_WRAP)
|
||||
|
||||
class FL_EXPORT Fl_Input_ : public Fl_Widget {
|
||||
|
||||
const char* value_;
|
||||
char* buffer;
|
||||
|
||||
int size_;
|
||||
int bufsize;
|
||||
int position_;
|
||||
int mark_;
|
||||
int xscroll_, yscroll_;
|
||||
int mu_p;
|
||||
int maximum_size_;
|
||||
|
||||
uchar erase_cursor_only;
|
||||
uchar textfont_;
|
||||
uchar textsize_;
|
||||
unsigned textcolor_;
|
||||
unsigned cursor_color_;
|
||||
|
||||
const char* expand(const char*, char*) const;
|
||||
double expandpos(const char*, const char*, const char*, int*) const;
|
||||
void minimal_update(int, int);
|
||||
void minimal_update(int p);
|
||||
void put_in_buffer(int newsize);
|
||||
|
||||
void setfont() const;
|
||||
|
||||
protected:
|
||||
|
||||
int word_start(int i) const;
|
||||
int word_end(int i) const;
|
||||
int line_start(int i) const;
|
||||
int line_end(int i) const;
|
||||
void drawtext(int, int, int, int);
|
||||
int up_down_position(int, int keepmark=0);
|
||||
void handle_mouse(int, int, int, int, int keepmark=0);
|
||||
int handletext(int e, int, int, int, int);
|
||||
void maybe_do_callback();
|
||||
int xscroll() const {return xscroll_;}
|
||||
int yscroll() const {return yscroll_;}
|
||||
|
||||
public:
|
||||
|
||||
void resize(int, int, int, int);
|
||||
|
||||
Fl_Input_(int, int, int, int, const char* = 0);
|
||||
~Fl_Input_();
|
||||
|
||||
int value(const char*);
|
||||
int value(const char*, int);
|
||||
int static_value(const char*);
|
||||
int static_value(const char*, int);
|
||||
const char* value() const {return value_;}
|
||||
char index(int i) const {return value_[i];}
|
||||
int size() const {return size_;}
|
||||
void size(int W, int H) { Fl_Widget::size(W, H); }
|
||||
int maximum_size() const {return maximum_size_;}
|
||||
void maximum_size(int m) {maximum_size_ = m;}
|
||||
|
||||
int position() const {return position_;}
|
||||
int mark() const {return mark_;}
|
||||
int position(int p, int m);
|
||||
int position(int p) {return position(p, p);}
|
||||
int mark(int m) {return position(position(), m);}
|
||||
int replace(int, int, const char*, int=0);
|
||||
int cut() {return replace(position(), mark(), 0);}
|
||||
int cut(int n) {return replace(position(), position()+n, 0);}
|
||||
int cut(int a, int b) {return replace(a, b, 0);}
|
||||
int insert(const char* t, int l=0){return replace(position_, mark_, t, l);}
|
||||
int copy(int clipboard);
|
||||
int undo();
|
||||
int copy_cuts();
|
||||
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar s) {textfont_ = s;}
|
||||
uchar textsize() const {return textsize_;}
|
||||
void textsize(uchar s) {textsize_ = s;}
|
||||
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
||||
void textcolor(unsigned n) {textcolor_ = n;}
|
||||
Fl_Color cursor_color() const {return (Fl_Color)cursor_color_;}
|
||||
void cursor_color(unsigned n) {cursor_color_ = n;}
|
||||
|
||||
int input_type() const {return type() & FL_INPUT_TYPE; }
|
||||
void input_type(int t) { type((uchar)(t | readonly())); }
|
||||
int readonly() const { return type() & FL_INPUT_READONLY; }
|
||||
void readonly(int b) { if (b) type((uchar)(type() | FL_INPUT_READONLY));
|
||||
else type((uchar)(type() & ~FL_INPUT_READONLY)); }
|
||||
int wrap() const { return type() & FL_INPUT_WRAP; }
|
||||
void wrap(int b) { if (b) type((uchar)(type() | FL_INPUT_WRAP));
|
||||
else type((uchar)(type() & ~FL_INPUT_WRAP)); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Input_.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
154
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Input_Choice.H
vendored
Normal file
154
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Input_Choice.H
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
//
|
||||
// "$Id$"
|
||||
//
|
||||
// An input/chooser widget.
|
||||
// ______________ ____
|
||||
// | || __ |
|
||||
// | input area || \/ |
|
||||
// |______________||____|
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
// Copyright 2004 by Greg Ercolano.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Input_Choice_H
|
||||
#define Fl_Input_Choice_H
|
||||
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Input.H>
|
||||
#include <FL/Fl_Menu_Button.H>
|
||||
#include <FL/fl_draw.H>
|
||||
|
||||
class Fl_Input_Choice : public Fl_Group {
|
||||
// Private class to handle slightly 'special' behavior of menu button
|
||||
class InputMenuButton : public Fl_Menu_Button {
|
||||
void draw() {
|
||||
draw_box(FL_UP_BOX, color());
|
||||
fl_color(active_r() ? labelcolor() : fl_inactive(labelcolor()));
|
||||
int xc = x()+w()/2, yc=y()+h()/2;
|
||||
fl_polygon(xc-5,yc-3,xc+5,yc-3,xc,yc+3);
|
||||
if (Fl::focus() == this) draw_focus();
|
||||
}
|
||||
public:
|
||||
InputMenuButton(int x,int y,int w,int h,const char*l=0) :
|
||||
Fl_Menu_Button(x,y,w,h,l) { box(FL_UP_BOX); }
|
||||
};
|
||||
|
||||
Fl_Input *inp_;
|
||||
InputMenuButton *menu_;
|
||||
|
||||
static void menu_cb(Fl_Widget*, void *data) {
|
||||
Fl_Input_Choice *o=(Fl_Input_Choice *)data;
|
||||
o->inp_->value(o->menu_->text());
|
||||
o->do_callback();
|
||||
}
|
||||
|
||||
static void inp_cb(Fl_Widget*, void *data) {
|
||||
Fl_Input_Choice *o=(Fl_Input_Choice *)data;
|
||||
o->do_callback();
|
||||
}
|
||||
|
||||
// Custom resize behavior -- input stretches, menu button doesn't
|
||||
inline int inp_x() { return(x() + Fl::box_dx(box())); }
|
||||
inline int inp_y() { return(y() + Fl::box_dy(box())); }
|
||||
inline int inp_w() { return(w() - Fl::box_dw(box()) - 20); }
|
||||
inline int inp_h() { return(h() - Fl::box_dh(box())); }
|
||||
|
||||
inline int menu_x() { return(x() + w() - 20 - Fl::box_dx(box())); }
|
||||
inline int menu_y() { return(y() + Fl::box_dy(box())); }
|
||||
inline int menu_w() { return(20); }
|
||||
inline int menu_h() { return(h() - Fl::box_dh(box())); }
|
||||
|
||||
public:
|
||||
Fl_Input_Choice (int x,int y,int w,int h,const char*l=0) : Fl_Group(x,y,w,h,l) {
|
||||
Fl_Group::box(FL_DOWN_BOX);
|
||||
align(FL_ALIGN_LEFT); // default like Fl_Input
|
||||
inp_ = new Fl_Input(inp_x(), inp_y(),
|
||||
inp_w(), inp_h());
|
||||
inp_->callback(inp_cb, (void*)this);
|
||||
inp_->box(FL_FLAT_BOX); // cosmetic
|
||||
menu_ = new InputMenuButton(menu_x(), menu_y(),
|
||||
menu_w(), menu_h());
|
||||
menu_->callback(menu_cb, (void*)this);
|
||||
menu_->box(FL_FLAT_BOX); // cosmetic
|
||||
end();
|
||||
}
|
||||
void add(const char *s) {
|
||||
menu_->add(s);
|
||||
}
|
||||
void clear() {
|
||||
menu_->clear();
|
||||
}
|
||||
Fl_Boxtype down_box() const {
|
||||
return (menu_->down_box());
|
||||
}
|
||||
void down_box(Fl_Boxtype b) {
|
||||
menu_->down_box(b);
|
||||
}
|
||||
const Fl_Menu_Item *menu() {
|
||||
return (menu_->menu());
|
||||
}
|
||||
void menu(const Fl_Menu_Item *m) {
|
||||
menu_->menu(m);
|
||||
}
|
||||
void resize(int X, int Y, int W, int H) {
|
||||
Fl_Group::resize(X,Y,W,H);
|
||||
inp_->resize(inp_x(), inp_y(), inp_w(), inp_h());
|
||||
menu_->resize(menu_x(), menu_y(), menu_w(), menu_h());
|
||||
}
|
||||
Fl_Color textcolor() const {
|
||||
return (inp_->textcolor());
|
||||
}
|
||||
void textcolor(Fl_Color c) {
|
||||
inp_->textcolor(c);
|
||||
}
|
||||
uchar textfont() const {
|
||||
return (inp_->textfont());
|
||||
}
|
||||
void textfont(uchar f) {
|
||||
inp_->textfont(f);
|
||||
}
|
||||
uchar textsize() const {
|
||||
return (inp_->textsize());
|
||||
}
|
||||
void textsize(uchar s) {
|
||||
inp_->textsize(s);
|
||||
}
|
||||
const char* value() const {
|
||||
return (inp_->value());
|
||||
}
|
||||
void value(const char *val) {
|
||||
inp_->value(val);
|
||||
}
|
||||
void value(int val) {
|
||||
menu_->value(val);
|
||||
inp_->value(menu_->text(val));
|
||||
}
|
||||
Fl_Menu_Button *menubutton() { return menu_; }
|
||||
Fl_Input *input() { return inp_; }
|
||||
};
|
||||
|
||||
#endif // !Fl_Input_Choice_H
|
||||
|
||||
//
|
||||
// End of "$Id$".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Int_Input.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Int_Input.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Int_Input.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Integer input header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Int_Input_H
|
||||
#define Fl_Int_Input_H
|
||||
|
||||
#include "Fl_Input.H"
|
||||
|
||||
class Fl_Int_Input : public Fl_Input {
|
||||
public:
|
||||
Fl_Int_Input(int X,int Y,int W,int H,const char *l = 0)
|
||||
: Fl_Input(X,Y,W,H,l) {type(FL_INT_INPUT);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Int_Input.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_JPEG_Image.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_JPEG_Image.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_JPEG_Image.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// JPEG image header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_JPEG_Image_H
|
||||
#define Fl_JPEG_Image_H
|
||||
# include "Fl_Image.H"
|
||||
|
||||
class FL_EXPORT Fl_JPEG_Image : public Fl_RGB_Image {
|
||||
|
||||
public:
|
||||
|
||||
Fl_JPEG_Image(const char* filename);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_JPEG_Image.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
45
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Light_Button.H
vendored
Normal file
45
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Light_Button.H
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// "$Id: Fl_Light_Button.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Lighted button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Light_Button_H
|
||||
#define Fl_Light_Button_H
|
||||
|
||||
#include "Fl_Button.H"
|
||||
|
||||
class FL_EXPORT Fl_Light_Button : public Fl_Button {
|
||||
protected:
|
||||
virtual void draw();
|
||||
public:
|
||||
virtual int handle(int);
|
||||
Fl_Light_Button(int x,int y,int w,int h,const char *l = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Light_Button.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Line_Dial.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Line_Dial.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Line_Dial.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Line dial header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Line_Dial_H
|
||||
#define Fl_Line_Dial_H
|
||||
|
||||
#include "Fl_Dial.H"
|
||||
|
||||
class Fl_Line_Dial : public Fl_Dial {
|
||||
public:
|
||||
Fl_Line_Dial(int x,int y,int w,int h, const char *l = 0)
|
||||
: Fl_Dial(x,y,w,h,l) {type(FL_LINE_DIAL);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Line_Dial.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
33
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu.H
vendored
Normal file
33
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu.H
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// "$Id: Fl_Menu.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Old menu header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
// this include file is for back compatability only
|
||||
#include "Fl_Menu_Item.H"
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
102
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_.H
vendored
Normal file
102
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_.H
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Menu base class header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Menu__H
|
||||
#define Fl_Menu__H
|
||||
|
||||
#ifndef Fl_Widget_H
|
||||
#include "Fl_Widget.H"
|
||||
#endif
|
||||
#include "Fl_Menu_Item.H"
|
||||
|
||||
class FL_EXPORT Fl_Menu_ : public Fl_Widget {
|
||||
|
||||
Fl_Menu_Item *menu_;
|
||||
const Fl_Menu_Item *value_;
|
||||
|
||||
protected:
|
||||
|
||||
uchar alloc;
|
||||
uchar down_box_;
|
||||
uchar textfont_;
|
||||
uchar textsize_;
|
||||
unsigned textcolor_;
|
||||
|
||||
public:
|
||||
Fl_Menu_(int,int,int,int,const char * =0);
|
||||
~Fl_Menu_();
|
||||
|
||||
int item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem=0) const;
|
||||
const Fl_Menu_Item* picked(const Fl_Menu_Item*);
|
||||
const Fl_Menu_Item* find_item(const char *name);
|
||||
|
||||
const Fl_Menu_Item* test_shortcut() {return picked(menu()->test_shortcut());}
|
||||
void global();
|
||||
|
||||
const Fl_Menu_Item *menu() const {return menu_;}
|
||||
void menu(const Fl_Menu_Item *m);
|
||||
void copy(const Fl_Menu_Item *m, void* user_data = 0);
|
||||
int add(const char*, int shortcut, Fl_Callback*, void* = 0, int = 0);
|
||||
int add(const char* a, const char* b, Fl_Callback* c,
|
||||
void* d = 0, int e = 0) {return add(a,fl_old_shortcut(b),c,d,e);}
|
||||
int size() const ;
|
||||
void size(int W, int H) { Fl_Widget::size(W, H); }
|
||||
void clear();
|
||||
int add(const char *);
|
||||
void replace(int,const char *);
|
||||
void remove(int);
|
||||
void shortcut(int i, int s) {menu_[i].shortcut(s);}
|
||||
void mode(int i,int fl) {menu_[i].flags = fl;}
|
||||
int mode(int i) const {return menu_[i].flags;}
|
||||
|
||||
const Fl_Menu_Item *mvalue() const {return value_;}
|
||||
int value() const {return value_ ? (int)(value_-menu_) : -1;}
|
||||
int value(const Fl_Menu_Item*);
|
||||
int value(int i) {return value(menu_+i);}
|
||||
const char *text() const {return value_ ? value_->text : 0;}
|
||||
const char *text(int i) const {return menu_[i].text;}
|
||||
|
||||
Fl_Font textfont() const {return (Fl_Font)textfont_;}
|
||||
void textfont(uchar c) {textfont_=c;}
|
||||
uchar textsize() const {return textsize_;}
|
||||
void textsize(uchar c) {textsize_=c;}
|
||||
Fl_Color textcolor() const {return (Fl_Color)textcolor_;}
|
||||
void textcolor(unsigned c) {textcolor_=c;}
|
||||
|
||||
Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;}
|
||||
void down_box(Fl_Boxtype b) {down_box_ = b;}
|
||||
|
||||
// back compatability:
|
||||
Fl_Color down_color() const {return selection_color();}
|
||||
void down_color(unsigned c) {selection_color(c);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
46
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Bar.H
vendored
Normal file
46
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Bar.H
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Bar.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Menu bar header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Menu_Bar_H
|
||||
#define Fl_Menu_Bar_H
|
||||
|
||||
#include "Fl_Menu_.H"
|
||||
|
||||
class FL_EXPORT Fl_Menu_Bar : public Fl_Menu_ {
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
int handle(int);
|
||||
Fl_Menu_Bar(int X, int Y, int W, int H,const char *l=0)
|
||||
: Fl_Menu_(X,Y,W,H,l) {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Bar.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Button.H
vendored
Normal file
48
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Button.H
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Button.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Menu button header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Menu_Button_H
|
||||
#define Fl_Menu_Button_H
|
||||
|
||||
#include "Fl_Menu_.H"
|
||||
|
||||
class FL_EXPORT Fl_Menu_Button : public Fl_Menu_ {
|
||||
protected:
|
||||
void draw();
|
||||
public:
|
||||
// values for type:
|
||||
enum {POPUP1 = 1, POPUP2, POPUP12, POPUP3, POPUP13, POPUP23, POPUP123};
|
||||
int handle(int);
|
||||
const Fl_Menu_Item* popup();
|
||||
Fl_Menu_Button(int,int,int,int,const char * =0);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Button.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
167
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Item.H
vendored
Normal file
167
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Item.H
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Item.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Menu item header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Menu_Item_H
|
||||
#define Fl_Menu_Item_H
|
||||
|
||||
# include "Fl_Widget.H"
|
||||
# include "Fl_Image.H"
|
||||
|
||||
# if defined(__APPLE__) && defined(check)
|
||||
# undef check
|
||||
# endif
|
||||
|
||||
enum { // values for flags:
|
||||
FL_MENU_INACTIVE = 1,
|
||||
FL_MENU_TOGGLE= 2,
|
||||
FL_MENU_VALUE = 4,
|
||||
FL_MENU_RADIO = 8,
|
||||
FL_MENU_INVISIBLE = 0x10,
|
||||
FL_SUBMENU_POINTER = 0x20,
|
||||
FL_SUBMENU = 0x40,
|
||||
FL_MENU_DIVIDER = 0x80,
|
||||
FL_MENU_HORIZONTAL = 0x100
|
||||
};
|
||||
|
||||
extern FL_EXPORT int fl_old_shortcut(const char*);
|
||||
|
||||
class Fl_Menu_;
|
||||
|
||||
struct FL_EXPORT Fl_Menu_Item {
|
||||
const char *text; // label()
|
||||
int shortcut_;
|
||||
Fl_Callback *callback_;
|
||||
void *user_data_;
|
||||
int flags;
|
||||
uchar labeltype_;
|
||||
uchar labelfont_;
|
||||
uchar labelsize_;
|
||||
unsigned labelcolor_;
|
||||
|
||||
// advance N items, skipping submenus:
|
||||
const Fl_Menu_Item *next(int=1) const;
|
||||
Fl_Menu_Item *next(int i=1) {
|
||||
return (Fl_Menu_Item*)(((const Fl_Menu_Item*)this)->next(i));}
|
||||
const Fl_Menu_Item *first() const { return next(0); }
|
||||
Fl_Menu_Item *first() { return next(0); }
|
||||
|
||||
// methods on menu items:
|
||||
const char* label() const {return text;}
|
||||
void label(const char* a) {text=a;}
|
||||
void label(Fl_Labeltype a,const char* b) {labeltype_ = a; text = b;}
|
||||
Fl_Labeltype labeltype() const {return (Fl_Labeltype)labeltype_;}
|
||||
void labeltype(Fl_Labeltype a) {labeltype_ = a;}
|
||||
Fl_Color labelcolor() const {return (Fl_Color)labelcolor_;}
|
||||
void labelcolor(unsigned a) {labelcolor_ = a;}
|
||||
Fl_Font labelfont() const {return (Fl_Font)labelfont_;}
|
||||
void labelfont(uchar a) {labelfont_ = a;}
|
||||
uchar labelsize() const {return labelsize_;}
|
||||
void labelsize(uchar a) {labelsize_ = a;}
|
||||
Fl_Callback_p callback() const {return callback_;}
|
||||
void callback(Fl_Callback* c, void* p) {callback_=c; user_data_=p;}
|
||||
void callback(Fl_Callback* c) {callback_=c;}
|
||||
void callback(Fl_Callback0*c) {callback_=(Fl_Callback*)c;}
|
||||
void callback(Fl_Callback1*c, long p=0) {callback_=(Fl_Callback*)c; user_data_=(void*)p;}
|
||||
void* user_data() const {return user_data_;}
|
||||
void user_data(void* v) {user_data_ = v;}
|
||||
long argument() const {return (long)user_data_;}
|
||||
void argument(long v) {user_data_ = (void*)v;}
|
||||
int shortcut() const {return shortcut_;}
|
||||
void shortcut(int s) {shortcut_ = s;}
|
||||
int submenu() const {return flags&(FL_SUBMENU|FL_SUBMENU_POINTER);}
|
||||
int checkbox() const {return flags&FL_MENU_TOGGLE;}
|
||||
int radio() const {return flags&FL_MENU_RADIO;}
|
||||
int value() const {return flags&FL_MENU_VALUE;}
|
||||
void set() {flags |= FL_MENU_VALUE;}
|
||||
void clear() {flags &= ~FL_MENU_VALUE;}
|
||||
void setonly();
|
||||
int visible() const {return !(flags&FL_MENU_INVISIBLE);}
|
||||
void show() {flags &= ~FL_MENU_INVISIBLE;}
|
||||
void hide() {flags |= FL_MENU_INVISIBLE;}
|
||||
int active() const {return !(flags&FL_MENU_INACTIVE);}
|
||||
void activate() {flags &= ~FL_MENU_INACTIVE;}
|
||||
void deactivate() {flags |= FL_MENU_INACTIVE;}
|
||||
int activevisible() const {return !(flags&0x11);}
|
||||
|
||||
// compatibility for FLUID so it can set the image of a menu item...
|
||||
void image(Fl_Image* a) {a->label(this);}
|
||||
void image(Fl_Image& a) {a.label(this);}
|
||||
|
||||
// used by menubar:
|
||||
int measure(int* h, const Fl_Menu_*) const;
|
||||
void draw(int x, int y, int w, int h, const Fl_Menu_*, int t=0) const;
|
||||
|
||||
// popup menus without using an Fl_Menu_ widget:
|
||||
const Fl_Menu_Item* popup(
|
||||
int X, int Y,
|
||||
const char *title = 0,
|
||||
const Fl_Menu_Item* picked=0,
|
||||
const Fl_Menu_* = 0) const;
|
||||
const Fl_Menu_Item* pulldown(
|
||||
int X, int Y, int W, int H,
|
||||
const Fl_Menu_Item* picked = 0,
|
||||
const Fl_Menu_* = 0,
|
||||
const Fl_Menu_Item* title = 0,
|
||||
int menubar=0) const;
|
||||
const Fl_Menu_Item* test_shortcut() const;
|
||||
const Fl_Menu_Item* find_shortcut(int *ip=0) const;
|
||||
|
||||
void do_callback(Fl_Widget* o) const {callback_(o, user_data_);}
|
||||
void do_callback(Fl_Widget* o,void* arg) const {callback_(o, arg);}
|
||||
void do_callback(Fl_Widget* o,long arg) const {callback_(o, (void*)arg);}
|
||||
|
||||
// back-compatability, do not use:
|
||||
int checked() const {return flags&FL_MENU_VALUE;}
|
||||
void check() {flags |= FL_MENU_VALUE;}
|
||||
void uncheck() {flags &= ~FL_MENU_VALUE;}
|
||||
int add(const char*, int shortcut, Fl_Callback*, void* =0, int = 0);
|
||||
int add(const char*a, const char* b, Fl_Callback* c,
|
||||
void* d = 0, int e = 0) {
|
||||
return add(a,fl_old_shortcut(b),c,d,e);}
|
||||
int size() const ;
|
||||
};
|
||||
|
||||
typedef Fl_Menu_Item Fl_Menu; // back compatability
|
||||
|
||||
enum { // back-compatability enum:
|
||||
FL_PUP_NONE = 0,
|
||||
FL_PUP_GREY = FL_MENU_INACTIVE,
|
||||
FL_PUP_GRAY = FL_MENU_INACTIVE,
|
||||
FL_MENU_BOX = FL_MENU_TOGGLE,
|
||||
FL_PUP_BOX = FL_MENU_TOGGLE,
|
||||
FL_MENU_CHECK = FL_MENU_VALUE,
|
||||
FL_PUP_CHECK = FL_MENU_VALUE,
|
||||
FL_PUP_RADIO = FL_MENU_RADIO,
|
||||
FL_PUP_INVISIBLE = FL_MENU_INVISIBLE,
|
||||
FL_PUP_SUBMENU = FL_SUBMENU_POINTER
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Item.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
54
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Window.H
vendored
Normal file
54
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Menu_Window.H
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Window.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Menu window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Menu_Window_H
|
||||
#define Fl_Menu_Window_H
|
||||
|
||||
#include "Fl_Single_Window.H"
|
||||
|
||||
class FL_EXPORT Fl_Menu_Window : public Fl_Single_Window {
|
||||
enum {NO_OVERLAY = 128};
|
||||
public:
|
||||
void show();
|
||||
void erase();
|
||||
void flush();
|
||||
void hide();
|
||||
int overlay() {return !(flags()&NO_OVERLAY);}
|
||||
void set_overlay() {clear_flag(NO_OVERLAY);}
|
||||
void clear_overlay() {set_flag(NO_OVERLAY);}
|
||||
~Fl_Menu_Window();
|
||||
Fl_Menu_Window(int W, int H, const char *l = 0)
|
||||
: Fl_Single_Window(W,H,l) { image(0); }
|
||||
Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0)
|
||||
: Fl_Single_Window(X,Y,W,H,l) { image(0); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Window.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Multi_Browser.H
vendored
Normal file
43
SQCSim2021/external/irrKlang-1.6.0/examples/MusicPlayer/3rdparty/FL/Fl_Multi_Browser.H
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// "$Id: Fl_Multi_Browser.H 4288 2005-04-16 00:13:17Z mike $"
|
||||
//
|
||||
// Multi browser header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2005 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Library General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Library General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Library General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
// USA.
|
||||
//
|
||||
// Please report all bugs and problems on the following page:
|
||||
//
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#ifndef Fl_Multi_Browser_H
|
||||
#define Fl_Multi_Browser_H
|
||||
|
||||
#include "Fl_Browser.H"
|
||||
|
||||
class Fl_Multi_Browser : public Fl_Browser {
|
||||
public:
|
||||
Fl_Multi_Browser(int X,int Y,int W,int H,const char *L=0)
|
||||
: Fl_Browser(X,Y,W,H,L) {type(FL_MULTI_BROWSER);}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Multi_Browser.H 4288 2005-04-16 00:13:17Z mike $".
|
||||
//
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user