Commit 568b1f79 authored by Nassbouh's avatar Nassbouh

Fix problem of parameter number in o_sound.sh

parent db940d8a
......@@ -24,7 +24,7 @@ blaar_add_option device D "" "device_name" "device to use for the speaker"
blaar_add_option filename f "" "filename" "file to save the sound to"
blaar_add_option size s "" "integer" "number of items per buffer" "4096"
blaar_add_option samplerate S "" "integer" "samplerate of the sound export" "44100"
blaar_add_parameter sound "blc_channel-in" "sound todiffuse"
blaar_add_parameter sound "blc_channel-in" 1 "sound to diffuse"
blaar_parse_args "$@"
[ $filename ] && file_option="-f=$filename" || file_option=""
......@@ -32,7 +32,7 @@ blaar_parse_args "$@"
if [ $filename ]; then
echo "to '$filename'" >&2
[ $device ] && { echo "You cannot have file (-f $filename) and speaker (-D $device) at the same time"; exit 1; }
blaar_module sndfile o_sndfile --file=$filename --size=$size --samplerate=$samplerate
blaar_module sndfile o_sndfile --file=$filename --size=$size --samplerate=$samplerate $sound
elif [ $(uname) = "Darwin" ]; then #microphone
echo "to coreaudio speaker" >&2
blaar_module coreaudio o_coreaudio
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment