[linux-audio-dev] pros/cons of poll vs. asynch notify in ALSA

2003-06-28 Thread jacob robbins

Anybody have any opinions on whether it is better to use polling or
asynchronous notification when using the ALSA lib?

i'm fishing for advantages re: speed, robustness, portability, etc

-jacob robbins.



[linux-audio-dev] RTP MIDI update ...

2003-06-28 Thread John Lazzaro

Hi everyone,

Just sent in an updated version of the RTP MIDI normative I-D
off to [EMAIL PROTECTED] You can download a copy now from:

  http://www.cs.berkeley.edu/~lazzaro/sa/pubs/txt/current-rtp-midi.txt

In a hopeful sign, the Change Log is sufficiently short to
reproduce in full below:

  Chapter M (Appendix A.9) has been redesigned, to follow the semantic
  design of Chapters C and E.  Several definitions in Appendix A.1 have
  been changed to reflect this change, as have the chapter inclusion
  semantics for Chapter M in Appendix C.1.3.

  Many small editorial changes throughout the document, to correct
  grammatical errors and improve phrasing.

I'm actually starting to re-code sfront networking to be compliant
with the I-D (it has fallen out of date since the AVT RTP MIDI effort
began), in the hopes of gcc catching bugs that peer-review may miss.
Once that coding is complete, "Last Call" is probably not too far away
... so if you've been planning to spend a few hours to reading over
the I-D and sending along comments, now would be a good time to do it.
You might also want to download the non-normative Implementation Guide
for RTP MIDI:

  http://www.cs.berkeley.edu/~lazzaro/sa/pubs/txt/current-guide.txt 

-
John Lazzaro -- Research Specialist -- CS Division -- EECS -- UC Berkeley
lazzaro [at] cs [dot] berkeley [dot] edu www.cs.berkeley.edu/~lazzaro
-


Re: [linux-audio-dev] Re: |||| Gain/Peak indicator

2003-06-28 Thread Steve Harris
On Tue, Jun 24, 2003 at 11:19:52AM -0400, Marc Lavallée wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Le 24 Juin 2003 10:35, Andrew Burgess a écrit :
> > >Also for sound limiter (compressor) algorithms .
> >
> > Sox has a compander and there is also a Dyson compressor LADSPA plugin.
> >
> > http://sox.sourceforge.net/
> > http://plugin.org.uk/faq.php
> 
> The Dyson compressor is also included in ecasound:
> http://www.wakkanet.fi/~kaiv/ecasound/

Yup the LADSPA code comes form the ecasound version of the origninal
Dyson. I dont recommend if for study though, its unusually cryptic.

There are some native LADSPA compressors (SCn) that are easier to follow.

- Steve 


Re: [linux-audio-dev] |||| Gain/Peak indicator

2003-06-28 Thread Steve Harris
Peak amplitude is just that - the largest abs sample value since you last
read it.

RMS is calculated by summing sqaured samples over some period of time then
taking the sqrt of the mean.

Limiters and compressors are much trickier.

On Mon, Jun 23, 2003 at 05:50:08 +0300, Ralfs Kurmis wrote:
> Hi to developers
> 
> I'm search for realtime sound and peak gain indicator (db) algorithms and 
> formulas.
> My first idea is all 16 bit absolute sound_sample_values in time interval  
> t1...t2  compare with ethalon sine wave 
> ( where ethalon sine wave  amplitude is 32000  and lenght/2 is  t2-t1 )
> 
> Also for sound limiter (compressor) algorithms .