</code></pre></div></div><p>Used to play <codeclass="highlighter-rouge">mp3/wav/wma</code> files. The path given is relative to the Fallout folder. Specify mode as 1 to loop the file continuously, 2 to replace the current background game music with playing the specified file in loop mode, or 0 to play the file once. If you don’t wish to loop, <codeclass="highlighter-rouge">play_sfall_sound</code> returns 0. If you do loop, it returns an id which can be passed back to <codeclass="highlighter-rouge">stop_sfall_sound</code> when you want to stop the effect. All sounds effects will be stopped on game reload, looping or not. Does not require <codeclass="highlighter-rouge">AllowDShowSound</code> to be set to 1 in <codeclass="highlighter-rouge">ddraw.ini</code>.</p><p>Starting from sfall 4.2.8/3.8.28, you can pass a value in the <codeclass="highlighter-rouge">mode</code> argument for a reduced sound volume. To set the volume, You need to convert the number to hexadecimal and use the argument format <codeclass="highlighter-rouge">0xZZZZ000Y</code>, where <codeclass="highlighter-rouge">ZZZZ</code> is the volume reduction value in range from 0 to 32767 (the value 32767 is mute), and <codeclass="highlighter-rouge">Y</code> is the playback mode.</p><hr/><h3id="set_eax_environment"><ahref="#set_eax_environment"class="anchor-heading"aria-labelledby="set_eax_environment"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_eax_environment</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_eax_environment</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">environment</span><spanclass="p">)</span>
</code></pre></div></div><p>Stops looping <codeclass="highlighter-rouge">mp3/wav/wma</code> files previously launched by <codeclass="highlighter-rouge">play_sfall_sound</code>. All sounds effects will be stopped on game reload, looping or not. Does not require <codeclass="highlighter-rouge">AllowDShowSound</code> to be set to 1 in <codeclass="highlighter-rouge">ddraw.ini</code>.</p></div></div><divclass="search-overlay"></div></div></body></html>