  <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.alsa-project.org/main/index.php?action=history&amp;feed=atom&amp;title=ALSAresampler</id>
	<title>ALSAresampler - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.alsa-project.org/main/index.php?action=history&amp;feed=atom&amp;title=ALSAresampler"/>
	<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=ALSAresampler&amp;action=history"/>
	<updated>2026-04-18T15:29:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=ALSAresampler&amp;diff=830&amp;oldid=prev</id>
		<title>Y2kbug: remove unnecessary link</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=ALSAresampler&amp;diff=830&amp;oldid=prev"/>
		<updated>2007-08-11T17:32:16Z</updated>

		<summary type="html">&lt;p&gt;remove unnecessary link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:32, 11 August 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will result in the application only being able to open the sound card at the sample rates that the sound card can do in hardware. So, taking rule (3) above, the alsa-lib software resampler will therefore never be used.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will result in the application only being able to open the sound card at the sample rates that the sound card can do in hardware. So, taking rule (3) above, the alsa-lib software resampler will therefore never be used.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://bugtrack.alsa-project.org/wiki/wikka.php?wakka=ALSAresampler Original] created on &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/del&gt;2006-09-24&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;by [[User:JamesCourtierDutton]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://bugtrack.alsa-project.org/wiki/wikka.php?wakka=ALSAresampler Original] created on 2006-09-24 by [[User:JamesCourtierDutton]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Development]] [[Category:MigratedFromDev]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Development]] [[Category:MigratedFromDev]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Y2kbug</name></author>
	</entry>
	<entry>
		<id>https://www.alsa-project.org/main/index.php?title=ALSAresampler&amp;diff=626&amp;oldid=prev</id>
		<title>EliotBlennerhassett: migration from dev</title>
		<link rel="alternate" type="text/html" href="https://www.alsa-project.org/main/index.php?title=ALSAresampler&amp;diff=626&amp;oldid=prev"/>
		<updated>2007-08-06T23:05:35Z</updated>

		<summary type="html">&lt;p&gt;migration from dev&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;1. The buffer and period sizes for the sound card between the sound card hardware and the ALSA resampler are limited to the max buffer and period sizes available on the hardware. As a result, the available buffer and period sizes vary depending on hardware utilised.&lt;br /&gt;
&lt;br /&gt;
2. The resampler converts one hardware period size at a time. This results in the buffer and period size constraints explained in (1) arriving at the application as a direct ratio of source and destination sample rate.&lt;br /&gt;
e.g. hardware has 2 periods of 1024 frames running at 48000 Hz.&lt;br /&gt;
application will see 2 periods of 1024 * 44100 / 48000 = 940.8. This is&lt;br /&gt;
rounded down to 940 frames. So the user application sees 2 periods of&lt;br /&gt;
940 frames.&lt;br /&gt;
If user space asks for 2 periods of 1024 at 44100 hz it will fail.&lt;br /&gt;
&lt;br /&gt;
3. The alsa-lib software resampler is only used&lt;br /&gt;
if (possible hardware sample rates != requested sample rate)&lt;br /&gt;
&lt;br /&gt;
4. It is possible to detect if the resampler will be used at the requested sampling rate.&lt;br /&gt;
While opening the ALSA device, use the function:&lt;br /&gt;
 #if SND_LIB_VERSION &amp;gt;= 0x010009&lt;br /&gt;
 /* Restrict a configuration space to contain only real hardware rates */&lt;br /&gt;
 err = snd_pcm_hw_params_set_rate_resample(this-&amp;gt;audio_fd, params, 0);&lt;br /&gt;
 #endif&lt;br /&gt;
This will result in the application only being able to open the sound card at the sample rates that the sound card can do in hardware. So, taking rule (3) above, the alsa-lib software resampler will therefore never be used.&lt;br /&gt;
----&lt;br /&gt;
[https://bugtrack.alsa-project.org/wiki/wikka.php?wakka=ALSAresampler Original] created on [[2006-09-24]] by [[User:JamesCourtierDutton]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]] [[Category:MigratedFromDev]]&lt;/div&gt;</summary>
		<author><name>EliotBlennerhassett</name></author>
	</entry>
</feed>