<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7483&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to change PreferredSampleRate in Firefox's about:config]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7483</link>
		<description><![CDATA[The most recent posts in How to change PreferredSampleRate in Firefox's about:config.]]></description>
		<lastBuildDate>Thu, 23 Oct 2025 03:00:00 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[How to change PreferredSampleRate in Firefox's about:config]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58749#p58749</link>
			<description><![CDATA[<p>The top secret settings in Firefox&#039;s <span class="bbc">about:config</span> are invisible. For example:</p><div class="codebox"><pre><code>// Allows to get something non-default for the preferred sample-rate
media.cubeb.force_sample_rate</code></pre></div><div class="codebox"><pre><code>media.cubeb.backend
media.cubeb.output_device</code></pre></div><div class="quotebox"><blockquote><div><p>_https://searchfox.org/firefox-main/source/dom/media/CubebUtils.cpp</p><div class="codebox"><pre><code>#define PREF_VOLUME_SCALE &quot;media.volume_scale&quot;
#define PREF_CUBEB_BACKEND &quot;media.cubeb.backend&quot;
#define PREF_CUBEB_OUTPUT_DEVICE &quot;media.cubeb.output_device&quot;
#define PREF_CUBEB_LATENCY_PLAYBACK &quot;media.cubeb_latency_playback_ms&quot;
#define PREF_CUBEB_LATENCY_MTG &quot;media.cubeb_latency_mtg_frames&quot;
// Allows to get something non-default for the preferred sample-rate, to allow
// troubleshooting in the field and testing.
#define PREF_CUBEB_FORCE_SAMPLE_RATE &quot;media.cubeb.force_sample_rate&quot;
#define PREF_CUBEB_LOGGING_LEVEL &quot;logging.cubeb&quot;
// Hidden pref used by tests to force failure to obtain cubeb context</code></pre></div></div></blockquote></div><p>Open a new tab in Firefox. Type <span class="bbc">about:config</span> in the address bar.<br />Type into &quot;Search preference name&quot;</p><div class="codebox"><pre><code>media.cubeb.force_sample_rate</code></pre></div><p>Select &quot;Number&quot;<br />Press &quot;+&quot;<br />Type &quot;48000&quot;, then Enter</p><p>You have a new entry in Firefox&#039;s &quot;hidden preferences&quot;:</p><div class="codebox"><pre><code>media.cubeb.force_sample_rate        48000</code></pre></div><p>Restart Firefox. Type <span class="bbc">about:support</span> in the address bar.</p><div class="codebox"><pre><code>Name 	Firefox
Version 	140.4.0esr
...
Media
Audio Backend	alsa
Max Channels	10000
Preferred Sample Rate	48000</code></pre></div><div class="quotebox"><blockquote><div><h5>Reference media files:</h5><p><strong>Hi-Res Music 32 Bit - Greatest Audiophile Collection - Natural Beat Records</strong><br />_https://rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf/</p><p><strong>Best Audiophile Vocal 24 bit - Hi-Res Music 2025 - Audiophile Voices</strong><br />_https://www.youtube.com/watch?v=uO6jfQ5tQHM<br />_https://youtu.be/uO6jfQ5tQHM</p><div class="codebox"><pre><code>$ youtube-dl -F &quot;https://youtu.be/uO6jfQ5tQHM&quot; | grep &quot;audio only&quot;
249          webm       audio only audio_quality_low   54k , webm_dash container, opus  (48000Hz), 30.39MiB
250          webm       audio only audio_quality_low   71k , webm_dash container, opus  (48000Hz), 39.87MiB
140          m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 72.39MiB
251          webm       audio only audio_quality_medium  137k , webm_dash container, opus  (48000Hz), 76.97MiB</code></pre></div></div></blockquote></div><div class="codebox"><pre><code>$ firefox 2&gt;&amp;1 youtube.com/watch?v=uO6jfQ5tQHM
Input:  44100 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1764
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  44100 --&gt; 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.

Input:  44100 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1764
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  44100 --&gt; 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.

Input:  48000 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1920
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  48000 --&gt; 48000 (J: 0.00%, T: None, W: Planar)
Ok.

Input:  44100 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1764
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  44100 --&gt; 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.</code></pre></div><div class="codebox"><pre><code>$ firefox 2&gt;&amp;1 rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf
Input:  44100 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1764
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  44100 --&gt; 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.</code></pre></div><p>The same is for <span class="bbc">PreferredSampleRate = 44100</span><br />It does not change Firefox&#039;s playback with ALSA.<br />You may test it with <span class="bbc">apulse</span></p><div class="codebox"><pre><code>apulse firefox 2&gt;&amp;1</code></pre></div><p>What has changed is that you can now see <span class="bbc">Preferred Sample Rate 48000</span> in <span class="bbc">about:support</span></p><div class="quotebox"><blockquote><div><p>The statement &quot;The deaf may try a blind test. The blind may try a deaf test&quot; is a philosophical observation about perspective, not a literal one. It points to the idea that people with different life experiences and challenges can gain new understanding by experiencing things from another&#039;s point of view.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Thu, 23 Oct 2025 03:00:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58749#p58749</guid>
		</item>
	</channel>
</rss>
