Discussion:
[Alsa-user] Speaker-Test Tone Duration
Alan Bromborsky
2015-09-13 01:21:05 UTC
Permalink
I am using alsa speaker-test to set my channel gain levels with a spl
meter and alsamixer one channel at a time. If I run the follow command
line -

speaker-test -Dhw:PCH -c 6 -s 1

everything works fine and I hear pink noise from the front left speaker,
but the tone doesn't last long enough to set the channel gain using my
spl meter. Is there anyway to make the duration of the tone (pink
noise) longer. Fifteen seconds would be sufficient.

------------------------------------------------------------------------------
Bill Unruh
2015-09-13 02:05:05 UTC
Permalink
man speaker-test ?

if -s is used the program will always only produce a single shot.

SO use -l 0 (loop indefinitely)

and unplug one of the speakers
Post by Alan Bromborsky
I am using alsa speaker-test to set my channel gain levels with a spl
meter and alsamixer one channel at a time. If I run the follow command
line -
speaker-test -Dhw:PCH -c 6 -s 1
everything works fine and I hear pink noise from the front left speaker,
but the tone doesn't last long enough to set the channel gain using my
spl meter. Is there anyway to make the duration of the tone (pink
noise) longer. Fifteen seconds would be sufficient.
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------
Anders Genell
2015-09-13 06:52:36 UTC
Permalink
Actually, I believe disconnecting anything should be unnecessary?

If speaker-test -Dhw:PCH -c 6 -s 1 already works, adding infinite loop option should suffice?

speaker-test -Dhw:PCH -c 6 -s 1 -l 0

Regards,
Anders
Post by Bill Unruh
man speaker-test ?
if -s is used the program will always only produce a single shot.
SO use -l 0 (loop indefinitely)
and unplug one of the speakers
Post by Alan Bromborsky
I am using alsa speaker-test to set my channel gain levels with a spl
meter and alsamixer one channel at a time. If I run the follow command
line -
speaker-test -Dhw:PCH -c 6 -s 1
everything works fine and I hear pink noise from the front left speaker,
but the tone doesn't last long enough to set the channel gain using my
spl meter. Is there anyway to make the duration of the tone (pink
noise) longer. Fifteen seconds would be sufficient.
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
Bill Unruh
2015-09-13 07:48:30 UTC
Permalink
Post by Anders Genell
Actually, I believe disconnecting anything should be unnecessary?
If speaker-test -Dhw:PCH -c 6  -s 1 already works, adding infinite loop option should
suffice?
speaker-test -Dhw:PCH -c 6  -s 1 -l 0 
All I did was read the man page. It says that if you use -s it only plays
once. No matter what -l says. Ie the man page says that -l only works for two
channel. Butr maybe the man page is wrong? I do not know.
Post by Anders Genell
Regards,
Anders
man speaker-test ?
if -s is used the program will always only produce a single shot.
SO use -l 0 (loop indefinitely)
and unplug one of the speakers
I am using alsa speaker-test to set my channel gain levels
with a spl
meter and alsamixer one channel at a time.  If I run the
follow command
line -
speaker-test -Dhw:PCH -c 6  -s 1
everything works fine and I hear pink noise from the front
left speaker,
but the tone doesn't last long enough to set the channel gain
using my
spl meter.  Is there anyway to make the duration of the tone
(pink
noise) longer.  Fifteen seconds would be sufficient.
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
Anders Genell
2015-09-13 08:02:13 UTC
Permalink
Post by Anders Genell
Actually, I believe disconnecting anything should be unnecessary?
Post by Anders Genell
If speaker-test -Dhw:PCH -c 6 -s 1 already works, adding infinite loop
option should
suffice?
speaker-test -Dhw:PCH -c 6 -s 1 -l 0
All I did was read the man page. It says that if you use -s it only plays
once. No matter what -l says. Ie the man page says that -l only works for two
channel. Butr maybe the man page is wrong? I do not know.
Ah, ok, that may well be true - I interpreted the manual as saying the just
using -s option would always just do one-shot, so -l would be needed to
increase the number of repetitions. I did not try it myself, but will do so
as soon as I have opportunity and report back.

Regards,
Anders
Post by Anders Genell
Post by Anders Genell
Regards,
Anders
man speaker-test ?
if -s is used the program will always only produce a single shot.
SO use -l 0 (loop indefinitely)
and unplug one of the speakers
I am using alsa speaker-test to set my channel gain levels
with a spl
meter and alsamixer one channel at a time. If I run the
follow command
line -
speaker-test -Dhw:PCH -c 6 -s 1
everything works fine and I hear pink noise from the front
left speaker,
but the tone doesn't last long enough to set the channel gain
using my
spl meter. Is there anyway to make the duration of the tone
(pink
noise) longer. Fifteen seconds would be sufficient.
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
Anders Genell
2015-09-13 08:08:37 UTC
Permalink
Post by Anders Genell
Post by Anders Genell
Actually, I believe disconnecting anything should be unnecessary?
Post by Anders Genell
If speaker-test -Dhw:PCH -c 6 -s 1 already works, adding infinite loop
option should
suffice?
speaker-test -Dhw:PCH -c 6 -s 1 -l 0
All I did was read the man page. It says that if you use -s it only plays
once. No matter what -l says. Ie the man page says that -l only works for two
channel. Butr maybe the man page is wrong? I do not know.
Ah, ok, that may well be true - I interpreted the manual as saying the
just using -s option would always just do one-shot, so -l would be needed
to increase the number of repetitions. I did not try it myself, but will do
so as soon as I have opportunity and report back.
Regards,
Anders
I just tried and indeed the -s option ignores the -l option, so there is
just one shot no matter what.
I suggest preparing multichannel wav files with all channels except one
silent (using e.g. sox) and use the wav file input option for speaker-test.

I would love of future version of speaker-test to let the -s option take
the -l option into account!

Regards,
Anders
Post by Anders Genell
Post by Anders Genell
Post by Anders Genell
Regards,
Anders
man speaker-test ?
if -s is used the program will always only produce a single shot.
SO use -l 0 (loop indefinitely)
and unplug one of the speakers
I am using alsa speaker-test to set my channel gain levels
with a spl
meter and alsamixer one channel at a time. If I run the
follow command
line -
speaker-test -Dhw:PCH -c 6 -s 1
everything works fine and I hear pink noise from the front
left speaker,
but the tone doesn't last long enough to set the channel gain
using my
spl meter. Is there anyway to make the duration of the tone
(pink
noise) longer. Fifteen seconds would be sufficient.
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
https://lists.sourceforge.net/lists/listinfo/alsa-user
Loading...