All of lore.kernel.org
 help / color / mirror / Atom feed
* pcm_peak code in aplay
@ 2002-06-02  7:11 Ed Sweetman
  2002-06-02 13:40 ` Paul Davis
  0 siblings, 1 reply; 5+ messages in thread
From: Ed Sweetman @ 2002-06-02  7:11 UTC (permalink / raw)
  To: alsa-devel

It seems to me that the pcm_peak code in aplay doesn't work or maybe i
dont understand it's actual function.  It shows the same thing over and
over no matter what the volume of the audio going through it (captured
from mic).  


I want to return the decibel level of audio being captured from my
soundcard in alsa 0.9x and it seemed an easy enough hack to make in
aplay since it found the max peak.  should I look somewhere else? Can
anyone show me something that maybe does this already or at least finds
the max peak of any given interval (console)?   




_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pcm_peak code in aplay
  2002-06-02  7:11 pcm_peak code in aplay Ed Sweetman
@ 2002-06-02 13:40 ` Paul Davis
  2002-06-02 13:49   ` Ed Sweetman
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Davis @ 2002-06-02 13:40 UTC (permalink / raw)
  To: Ed Sweetman; +Cc: alsa-devel

>It seems to me that the pcm_peak code in aplay doesn't work or maybe i
>dont understand it's actual function.  It shows the same thing over and
>over no matter what the volume of the audio going through it (captured
>from mic).  

then its probably not working on your system for some other reason,
since it works just as you think it does on my system (and at least 2
others).

are you sure you really have a variable signal arriving at the input
connector that is currently being used for capture?

--p

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pcm_peak code in aplay
  2002-06-02 13:40 ` Paul Davis
@ 2002-06-02 13:49   ` Ed Sweetman
  2002-06-04 10:49     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Ed Sweetman @ 2002-06-02 13:49 UTC (permalink / raw)
  To: Paul Davis; +Cc: alsa-devel

Ok, this is strange. arecord is not recording anything from the sound
card.  I have done this before with arecord so it's nothing new but now
it's like i'm recording silence, no matter if i'm capturing the mic, or
line in. Capture volume is way up, it doesn't change anything.  

(cvs)
Advanced Linux Sound Architecture Driver Version 0.9.0rc1.
Compiled on May 23 2002 for kernel 2.4.19-pre8-ac5-preempt.

it's a sblive.  i'm using alsamixer to set the capture interface.  Has
something changed with the last few versions of 0.9x in order to
capture?



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pcm_peak code in aplay
  2002-06-02 13:49   ` Ed Sweetman
@ 2002-06-04 10:49     ` Takashi Iwai
  2002-06-04 14:12       ` Ed Sweetman
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2002-06-04 10:49 UTC (permalink / raw)
  To: Ed Sweetman; +Cc: alsa-devel

At 02 Jun 2002 09:49:51 -0400,
Ed Sweetman wrote:
> 
> Ok, this is strange. arecord is not recording anything from the sound
> card.  I have done this before with arecord so it's nothing new but now
> it's like i'm recording silence, no matter if i'm capturing the mic, or
> line in. Capture volume is way up, it doesn't change anything.  

did you adjust "AC97 Capture Volume" too?
emu10k1 has a complex routing, and there are many volumes/switches to
be adjusted.


Takashi

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pcm_peak code in aplay
  2002-06-04 10:49     ` Takashi Iwai
@ 2002-06-04 14:12       ` Ed Sweetman
  0 siblings, 0 replies; 5+ messages in thread
From: Ed Sweetman @ 2002-06-04 14:12 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

the problem was tha capture flag had to be set for "Capture" in order
for any capturing to be done on any other mixer element (which also
needs a capture flag set) 



On Tue, 2002-06-04 at 06:49, Takashi Iwai wrote:
> At 02 Jun 2002 09:49:51 -0400,
> Ed Sweetman wrote:
> > 
> > Ok, this is strange. arecord is not recording anything from the sound
> > card.  I have done this before with arecord so it's nothing new but now
> > it's like i'm recording silence, no matter if i'm capturing the mic, or
> > line in. Capture volume is way up, it doesn't change anything.  
> 
> did you adjust "AC97 Capture Volume" too?
> emu10k1 has a complex routing, and there are many volumes/switches to
> be adjusted.
> 
> 
> Takashi
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
> 



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-04 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-02  7:11 pcm_peak code in aplay Ed Sweetman
2002-06-02 13:40 ` Paul Davis
2002-06-02 13:49   ` Ed Sweetman
2002-06-04 10:49     ` Takashi Iwai
2002-06-04 14:12       ` Ed Sweetman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.