Output: Halve volume when downmixing to mono
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
23248b2f22
commit
f7b1ebca27
3 changed files with 11 additions and 85 deletions
|
@ -157,6 +157,8 @@ static void downmix_to_mono(const float *inBuffer, int channels, uint32_t config
|
||||||
}
|
}
|
||||||
cblas_scopy((int)count, inBuffer, 2, outBuffer, 1);
|
cblas_scopy((int)count, inBuffer, 2, outBuffer, 1);
|
||||||
vDSP_vadd(outBuffer, 1, inBuffer + 1, 2, outBuffer, 1, count);
|
vDSP_vadd(outBuffer, 1, inBuffer + 1, 2, outBuffer, 1, count);
|
||||||
|
const float scale = 0.5f;
|
||||||
|
vDSP_vsmul(outBuffer, 1, &scale, outBuffer, 1, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void upmix(const float *inBuffer, int inchannels, uint32_t inconfig, float *outBuffer, int outchannels, uint32_t outconfig, size_t count) {
|
static void upmix(const float *inBuffer, int inchannels, uint32_t inconfig, float *outBuffer, int outchannels, uint32_t outconfig, size_t count) {
|
||||||
|
|
|
@ -1,76 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "1640"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "8D5B49AC048680CD000E48DA"
|
|
||||||
BuildableName = "GME.bundle"
|
|
||||||
BlueprintName = "GME Plugin"
|
|
||||||
ReferencedContainer = "container:GME.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "8D5B49AC048680CD000E48DA"
|
|
||||||
BuildableName = "GME.bundle"
|
|
||||||
BlueprintName = "GME Plugin"
|
|
||||||
ReferencedContainer = "container:GME.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "8D5B49AC048680CD000E48DA"
|
|
||||||
BuildableName = "GME.bundle"
|
|
||||||
BlueprintName = "GME Plugin"
|
|
||||||
ReferencedContainer = "container:GME.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
|
@ -15,9 +15,9 @@
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "8372C92227C785BD00E250C9"
|
BlueprintIdentifier = "8372C92227C785BD00E250C9"
|
||||||
BuildableName = "MAD.bundle"
|
BuildableName = "minimp3.bundle"
|
||||||
BlueprintName = "MAD"
|
BlueprintName = "minimp3"
|
||||||
ReferencedContainer = "container:MAD.xcodeproj">
|
ReferencedContainer = "container:minimp3.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</EnvironmentBuildable>
|
</EnvironmentBuildable>
|
||||||
</ActionContent>
|
</ActionContent>
|
||||||
|
@ -33,9 +33,9 @@
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "8372C92227C785BD00E250C9"
|
BlueprintIdentifier = "8372C92227C785BD00E250C9"
|
||||||
BuildableName = "MAD.bundle"
|
BuildableName = "minimp3.bundle"
|
||||||
BlueprintName = "MAD"
|
BlueprintName = "minimp3"
|
||||||
ReferencedContainer = "container:MAD.xcodeproj">
|
ReferencedContainer = "container:minimp3.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildActionEntry>
|
</BuildActionEntry>
|
||||||
</BuildActionEntries>
|
</BuildActionEntries>
|
||||||
|
@ -69,9 +69,9 @@
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "8372C92227C785BD00E250C9"
|
BlueprintIdentifier = "8372C92227C785BD00E250C9"
|
||||||
BuildableName = "MAD.bundle"
|
BuildableName = "minimp3.bundle"
|
||||||
BlueprintName = "MAD"
|
BlueprintName = "minimp3"
|
||||||
ReferencedContainer = "container:MAD.xcodeproj">
|
ReferencedContainer = "container:minimp3.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</MacroExpansion>
|
</MacroExpansion>
|
||||||
</ProfileAction>
|
</ProfileAction>
|
Loading…
Reference in a new issue