<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8">
<title>Audiophile Playback - ArchWiki</title>
<meta name="generator" content="MediaWiki 1.22.7">
<meta name="robots" content="noindex,follow">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="ArchWiki (en)">
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.archlinux.org/api.php?action=rsd">
<link rel="copyright" href="http://www.gnu.org/copyleft/fdl.html">
<link rel="alternate" type="application/atom+xml" title="ArchWiki Atom feed" href="/index.php?title=Special:RecentChanges&amp;feed=atom">
<link rel="stylesheet" href="../ArchWikiOffline.css">
<meta name="ResourceLoaderDynamicStyles" content="">

</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Audiophile_Playback skin-archlinux action-view">

<div id="globalWrapper" style="width: 100%">
<div id="column-content"><div id="content" class="mw-body-primary" role="main" style="margin: 2em; margin-bottom: 0">
	<a id="top"></a>
	
	<h1 id="firstHeading" class="firstHeading" lang="en"><span dir="auto">Audiophile Playback</span></h1>
	<div id="bodyContent" class="mw-body">
		<div id="contentSub"></div>
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="disputed" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-emblem-important.png" class="image"><img alt="Tango-emblem-important.png" src="../File:Tango-emblem-important.png" width="48" height="48"></a>
</td>
<td>  <b>The factual accuracy of this article or section is disputed.</b> <div style="font-size: 90%">
<b>Reason:</b> This page is based on superficial knowledge on how digital audio works (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Audiophile_Playback#This_Page_Considered_Harmful">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-emblem-important.png" class="image"><img alt="Tango-emblem-important.png" src="../File:Tango-emblem-important.png" width="48" height="48"></a>
</td>
</tr>
</table>
</div>
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="translateme" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-document-new.png" class="image"><img alt="Tango-document-new.png" src="../File:Tango-document-new.png" width="48" height="48"></a>
</td>
<td>  <b>This article is a stub.</b> <div style="font-size: 90%">
<b>Notes:</b> This is very work in progress stuff, feel welcome to edit and correct :) (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Audiophile_Playback">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-document-new.png" class="image"><img alt="Tango-document-new.png" src="../File:Tango-document-new.png" width="48" height="48"></a>
</td>
</tr>
</table>
</div>
<p>This settings are meant for HD audio playback at 24bit depth and 96000Hz frequency. So there's no need to change anything default if your audio sources have standard CD quality.
</p>
<h2><span class="mw-headline" id="Checking_actual_output_parameters">Checking actual output parameters</span></h2>
<p>Check the contents of /proc/asound/cardX/pcmYp/subZ/hw_params, where X, Y, and Z are numbers depending on your system.
In order to find this file, execute the following command while playing some sound:<br>
<code>find /proc/asound/ -name hw_params | xargs -I FILE grep -v -l "closed" FILE | grep '/proc/asound/card./pcm.p/sub./hw_params'</code><br>
Indeed, there exist a hw_params file for each sound input/ouput subsystem whose content is either "closed" if unused, or the actual format of the played sound.
</p>
<p>Here is an example of an hw_param contents for a stereo 96kHz / 24bits:<br>
</p>
<pre style="margin-bottom: 0; border-bottom:none; padding-bottom:0.8em;">/proc/asound/cardX/pcmYp/subZ/hw_params</pre>
<pre style="margin-top: 0; border-top-style:dashed; padding-top: 0.8em;">
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 96000 (96000/1)
period_size: 9000
buffer_size: 288000
</pre>
<p>More info is available in the <a rel="nofollow" class="external text" href="http://alsa.opensrc.org/Proc_asound_documentation">alsa documentation</a>.
</p>
</div>
<div id="catlinks" class="catlinks"><div id="mw-normal-catlinks" class="mw-normal-catlinks">
<a href="../Special:Categories.html" title="Special:Categories">Categories</a>: <ul>
<li><a href="../en/Category:Sound.html" title="Category:Sound">Sound</a></li>
<li><a href="../en/Category:Audio/Video.html" title="Category:Audio/Video">Audio/Video</a></li>
</ul>
</div></div>		<div class="visualClear"></div>
	</div>
</div></div>
<div class="visualClear"></div>
<div id="footer" role="contentinfo">
	<ul id="f-list" style="margin: 0 2em">
		<li>
Retrieved from "<a href="https://wiki.archlinux.org/index.php?title=Audiophile_Playback&amp;oldid=321286">https://wiki.archlinux.org/index.php?title=Audiophile_Playback&amp;oldid=321286</a>"</li>
		<li id="lastmod"> This page was last modified on 23 June 2014, at 01:59.</li>
		<li id="copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a> unless otherwise noted.</li>
		<br><li id="privacy"><a href="../en/ArchWiki:General_disclaimer.html" title="ArchWiki:Privacy policy">Privacy policy</a></li>
		<li id="about"><a href="../en/ArchWiki:About.html" title="ArchWiki:About">About ArchWiki</a></li>
		<li id="disclaimer"><a href="../en/ArchWiki:General_disclaimer.html" title="ArchWiki:General disclaimer">Disclaimers</a></li>
	</ul>
</div>
</div>
</body>
</html>
