Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are pointing <code>aplay</code> directly to some piece of hardware (<code>hw:0,1</code> – second output of the first sound device) instead of letting it use your <code>asound.conf</code> definition. Try this instead:</p> <pre><code>aplay -D bluetooth -c 2 -f S16_LE abc.wav </code></pre> <p>Please note, that if you are using the ALSA interface this way anything else using that device (e.g. the Pulse Audio daemon) make this not work. You could probably use Pulse Audio instead of 'raw' ALSA, but I cannot help with that.</p> <p>Update:</p> <blockquote> <p>why we used here <code>-D hw:0,0</code> in this?</p> </blockquote> <p>How can we know? You provided the command. This means: use directly (this means: ignoring the aliases in <code>asound.conf</code> file) the first output of the first audio hardware (this usually means the output of your primary sound card).</p> <blockquote> <p>why we not used here -Dplug:bluetooth hw:0,0 ?</p> </blockquote> <p>Because the '-D' option accepts a single parameter. This can be 'hw:0,0', this can be 'plug:bluetooth', this can be any alias defined in the <code>asound.conf</code> file (like 'jack' or 'bluetooth' defined in your file), but it must be one parameter. 'plug:bluetooth hw:0,0' would be two parameters.</p> <blockquote> <p>Why we used asound.conf file.</p> </blockquote> <ol> <li>Not to have to provide a specific device address directly to each command. You may set the default in <code>asound.conf</code> and omit the '-D something' option all toghether</li> <li>To provide more sophisticated configuration for the audio output</li> </ol> <p><a href="http://www.alsa-project.org/main/index.php/Asoundrc#The_naming_of_PCM_devices" rel="nofollow">http://www.alsa-project.org/main/index.php/Asoundrc#The_naming_of_PCM_devices</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload