-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Smokey <78874128+Smokey555@users.noreply.github.com> Co-authored-by: Cobalt Bar <79053181+CobaltBar@users.noreply.github.com>
- Loading branch information
1 parent
bc8f506
commit 95b31dc
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[general] | ||
sample-type=float32 | ||
stereo-mode=speakers | ||
stereo-encoding=panpot | ||
hrtf=false | ||
cf_level=0 | ||
resampler=fast_bsinc24 | ||
front-stablizer=false | ||
output-limiter=false | ||
volume-adjust=0 | ||
[decoder] | ||
hq-mode=false | ||
distance-comp=false | ||
nfc=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package funkin.audio; | ||
|
||
import haxe.io.Path; | ||
|
||
/* | ||
* A class that simply points OpenALSoft to a custom configuration file when | ||
* the game starts up. | ||
* | ||
* The config overrides a few global OpenALSoft settings with the aim of | ||
* improving audio quality on desktop targets. | ||
*/ | ||
@:keep class ALSoftConfig | ||
{ | ||
#if desktop | ||
static function __init__():Void | ||
{ | ||
var origin:String = #if hl Sys.getCwd() #else Sys.programPath() #end; | ||
|
||
var configPath:String = Path.directory(Path.withoutExtension(origin)); | ||
#if windows | ||
configPath += "/plugins/alsoft.ini"; | ||
#elseif mac | ||
configPath = Path.directory(configPath) + "/Resources/plugins/alsoft.conf"; | ||
#else | ||
configPath += "/plugins/alsoft.conf"; | ||
#end | ||
|
||
Sys.putEnv("ALSOFT_CONF", configPath); | ||
} | ||
#end | ||
} |