diff options
author | Takashi Iwai <tiwai@suse.de> | 2004-12-20 13:17:08 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2004-12-20 13:17:08 +0000 |
commit | 2c82a989689ca12d7643c101e52ed6f56f2cc534 (patch) | |
tree | 313b2bc37cecbd890837546064bbf01a9fd17c73 /alsaconf | |
parent | 30b608001f99c4f00961516ee29b679035e3ad3c (diff) | |
download | alsa-utils-2c82a989689ca12d7643c101e52ed6f56f2cc534.tar.gz |
Start aplay/arecord in non-blocking mode
Start aplay/arecord with -N option in non-blocking mode.
Diffstat (limited to 'alsaconf')
-rw-r--r-- | alsaconf/alsaconf.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in index 890361d..3a468b3 100644 --- a/alsaconf/alsaconf.in +++ b/alsaconf/alsaconf.in @@ -673,7 +673,7 @@ If you have a big amplifier, lower your volumes or say no. then clear echo - aplay $TESTSOUND + aplay -N $TESTSOUND fi fi if [ ! -r /etc/asound.state ]; then @@ -734,7 +734,7 @@ ac_try_load () { amixer set PCM 0% mute >/dev/null 2>&1 # output 0.5 sec - head -c 4000 < /dev/zero | aplay -r8000 -fS16_LE -traw -c1 > /dev/null 2>&1 & + head -c 4000 < /dev/zero | aplay -N -r8000 -fS16_LE -traw -c1 > /dev/null 2>&1 & # remember pid pp=$! # sleep for 2 seconds (to be sure -- 1 sec would be enough) @@ -775,11 +775,11 @@ ac_try_capture () { play_pid=0 if [ $2 = yes ]; then # try duplex - start dummy playing - aplay -r8000 -fS16_LE -traw -c1 < /dev/zero > /dev/null 2>&1 & + aplay -N -r8000 -fS16_LE -traw -c1 < /dev/zero > /dev/null 2>&1 & play_pid=$! fi # record 1sec - arecord -d1 > /dev/null 2>&1 & + arecord -N -d1 > /dev/null 2>&1 & # remember pid pp=$! # sleep for 2 seconds |