File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
source/funkin/backend/system/modules Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ [general]
2+ sample-type=float32
3+ stereo-mode=speakers
4+ stereo-encoding=panpot
5+ hrtf=false
6+ cf_level=0
7+ resampler=fast_bsinc24
8+ front-stablizer=false
9+ output-limiter=false
10+ volume-adjust=0
11+ [decoder]
12+ hq-mode=false
13+ distance-comp=false
14+ nfc=false
Original file line number Diff line number Diff line change 6767 <assets path =' mods' rename =' mods' embed =' false' />
6868 <assets path =' art/readme.txt' rename =' do NOT readme.txt' />
6969
70+ <!-- OpenAL config -->
71+ <section if =" desktop" >
72+ <assets path =" alsoft.txt" rename =" plugins/alsoft.ini" type =" text" if =" windows" />
73+ <assets path =" alsoft.txt" rename =" plugins/alsoft.conf" type =" text" unless =" windows" />
74+ </section >
75+
7076 <!-- ______________________________ Haxedefines _____________________________ -->
7177
7278 <haxeflag name =" --macro" value =" funkin.backend.system.macros.NewHaxeWarning.warn()" />
Original file line number Diff line number Diff line change 1+ package funkin .backend .system .modules ;
2+
3+ import haxe .io .Path ;
4+
5+ /*
6+ * A class that simply points OpenALSoft to a custom configuration file when
7+ * the game starts up.
8+ *
9+ * The config overrides a few global OpenALSoft settings with the aim of
10+ * improving audio quality on desktop targets.
11+ */
12+ @:keepInit class ALSoftConfig
13+ {
14+ #if desktop
15+ static function __init__ (): Void
16+ {
17+ var origin : String = #if hl Sys .getCwd () #else Sys .programPath () #end;
18+
19+ var configPath : String = Path .directory (Path .withoutExtension (origin ));
20+ #if windows
21+ configPath + = " /plugins/alsoft.ini" ;
22+ #elseif mac
23+ configPath = Path .directory (configPath ) + " /Resources/plugins/alsoft.conf" ;
24+ #else
25+ configPath + = " /plugins/alsoft.conf" ;
26+ #end
27+
28+ Sys .putEnv (" ALSOFT_CONF" , configPath );
29+ }
30+ #end
31+ }
You can’t perform that action at this time.
0 commit comments