<?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=4395&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Sound in Linux: OSS, ALSA, Pulse Audio ...]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4395</link>
		<description><![CDATA[The most recent posts in Sound in Linux: OSS, ALSA, Pulse Audio ....]]></description>
		<lastBuildDate>Sun, 04 Jul 2021 21:13:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Sound in Linux: OSS, ALSA, Pulse Audio ...]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30506#p30506</link>
			<description><![CDATA[<p>Hello:</p><p>My recent search for a simple/lightweight system mail notification for my Devuan Beowulf installation got me more or less what I wanted.</p><p>Simple in that it was only for the installed MTA (no POP/SMTP/etc.) and lightweight because it had to be independent and do just that: notify me of system mail.<br />ie: not integrated to a panel or desktop, I am not at all happy with Xfce4 and will eventually move on to something similar to what <span class="bbc">#! Waldorf</span> had as a desktop.</p><p>I found a very interesting ca. 1995 (!) application called <span class="bbc">Coolmail</span> which does all I want.<br />If interested, you can read about it <a href="https://dev1galaxy.org/viewtopic.php?id=4393" rel="nofollow">here</a>.</p><p>Besides firing up a mail utility such as <span class="bbc">mutt</span>, <span class="bbc">mailx</span>, etc., this application has is the possibility of playing a system beep ie: through the on-board hardware&#039;s piezo or a sound file through external speakers.</p><p>I cannot seem to get the system beep to be loud enough and the application is rather dated so it uses OSS drivers.<br />And Linux kernel support for OSS was dropped around 4.15.</p><p>My Beowulf installation has Poettering&#039;s Pulse Audio installed and I&#039;ve never paid much attention to it save to raise the main volume when I&#039;m listening to music or watching a movie.</p><p>My box does no games and I&#039;m <em>still</em> using the same Sony SRS-PC30 active speaker system I reluctantly purchased (whatever for?) along with a SB16 ISA card back in 1995. Works great and even have a service manual in case it ever acts up.</p><p>In any case, I was unable to get a <span class="bbc">*.au</span> sound file played as <span class="bbc">coolmail</span> complained of not being able to write to <span class="bbc">/dev/audio</span> which was not present in my file system.</p><p>Seems Linux sound is a complicated thing.</p><p>After a while I came across a post (sorry, lost the link) that gave indications for installing the <span class="bbc">oss-compat</span> package, which I promptly I did.<br />Doing so removed <span class="bbc">osspd-pulseaudio</span>.</p><p>Could not help but smile ...&#160; 8^D<br />I&#039;ll look into ripping out the rest of it further on ...</p><p>Now I have <span class="bbc">/dev/audio</span> in my system, along with <span class="bbc">/dev/dsp</span> and <span class="bbc">/dev/mixer</span> which were already present:</p><div class="codebox"><pre><code>groucho@devuan:~$ ls -l /dev/ | grep audio
crw-rw----+ 1 root audio      14,   4 Jul  4 15:53 audio
crw-rw----+ 1 root audio      14,   3 Jul  4 15:53 dsp
crw-rw----+ 1 root audio      14,   0 Jul  4 15:53 mixer
groucho@devuan:~$ </code></pre></div><p>---<br /><span class="bbs">Q: for some reason my terminal output shows <span class="bbc">dsp</span> and <span class="bbc">mixer</span> in yellow lettering but <span class="bbc">audio</span> in red. Why?</span><br />Sorry.<br />Dumb question ...&#160; 8^|<br />---</p><p>Now the <span class="bbc">*.au</span> file <span class="bbc">coolmail</span> could not play <em>is</em> played but unrecognizably distorted.<br />And I am <span class="bbc">still</span> getting an error from the application:</p><div class="codebox"><pre><code>groucho@devuan:~$ coolmail -v
Coolmail 1.3 watching file: /var/spool/mail/groucho
Coolmail: Error writing to /dev/audio.
--- snip ---
groucho@devuan:~$ </code></pre></div><p>The file plays normally via <span class="bbc">Audacious</span>, <span class="bbc">VLC</span> and <span class="bbc">aplay</span>:</p><div class="codebox"><pre><code>groucho@devuan:~$ aplay -v /home/groucho/Downloads/ding.au
Playing Sparc Audio &#039;/home/groucho/Downloads/ding.au&#039; : Signed 16 bit Big Endian, Rate 48000 Hz, Stereo
ALSA &lt;-&gt; PulseAudio PCM I/O Plugin
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_BE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : GETTIMEOFDAY
  period_step  : 1
  avail_min    : 6000
  period_event : 0
  start_threshold  : 24000
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary     : 6755399441055744000
groucho@devuan:~$ </code></pre></div><p>Any idea on what is going on?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 04 Jul 2021 21:13:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30506#p30506</guid>
		</item>
	</channel>
</rss>
