</code></pre></div></div><p>Used to play <codeclass="language-plaintext 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="language-plaintext highlighter-rouge">play_sfall_sound</code> returns 0. If you do loop, it returns an ID which can be passed back to <codeclass="language-plaintext 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="language-plaintext highlighter-rouge">AllowDShowSound</code> to be set to 1 in <codeclass="language-plaintext highlighter-rouge">ddraw.ini</code>.</p><p>Starting from sfall 4.2.8/3.8.28, you can pass a value in the <codeclass="language-plaintext 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="language-plaintext highlighter-rouge">0xZZZZ000Y</code>, where <codeclass="language-plaintext highlighter-rouge">ZZZZ</code> is the volume reduction value in the range of 0 to 32767 (the value 32767 is mute), and <codeclass="language-plaintext 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>Obsolete since sfall 2.1a. Has no effect.</p><hr/><h3id="stop_sfall_sound"><ahref="#stop_sfall_sound"class="anchor-heading"aria-labelledby="stop_sfall_sound"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>stop_sfall_sound</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">stop_sfall_sound</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">soundID</span><spanclass="p">)</span>
</code></pre></div></div><p>Stops looping <codeclass="language-plaintext highlighter-rouge">mp3/wav/wma</code> files previously launched by <codeclass="language-plaintext highlighter-rouge">play_sfall_sound</code>. All sounds effects will be stopped on game reload, looping or not. Does not require <codeclass="language-plaintext highlighter-rouge">AllowDShowSound</code> to be set to 1 in <codeclass="language-plaintext highlighter-rouge">ddraw.ini</code>.</p></main><hr><footer><divclass="d-md-none mt-4 fs-2"> This site uses <ahref="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll. </div></footer></div></div><divclass="search-overlay"></div></div></body></html>