Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
blaar
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
blaar
blaar
Commits
aae759a3
Commit
aae759a3
authored
Jul 11, 2019
by
Arnaud Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manage more options
parent
e2f43631
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
i_sound.sh
scripts/i_sound.sh
+1
-0
o_sound.sh
scripts/o_sound.sh
+3
-3
No files found.
scripts/i_sound.sh
View file @
aae759a3
...
...
@@ -22,6 +22,7 @@ blaar_add_option size s "" "integer" "number of items per buffer" "4096"
blaar_add_option samplerate S
""
"integer"
"Samplerate of the sound acquisition"
"44100"
blaar_parse_args
"
$@
"
[
$filename
]
&&
file_option
=
"--file=
$filename
"
||
file_option
=
""
[
$output
]
&&
output_option
=
"--output=
$output
"
||
output_option
=
""
if
[
$filename
]
;
then
...
...
scripts/o_sound.sh
View file @
aae759a3
...
...
@@ -32,12 +32,12 @@ 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
;
}
o_sndfile
--file
=
$filename
--size
=
$size
--samplerate
=
$samplerate
$sound
elif
[
$(
uname
)
=
"Darwin"
]
;
then
#microphone
elif
[
$(
uname
)
=
"Darwin"
]
;
then
echo
"to coreaudio speaker"
>
&2
o_coreaudio
$sound
o_coreaudio
--samplerate
=
$samplerate
$sound
elif
[
$(
uname
)
=
"Linux"
]
;
then
echo
"to ALSA speaker"
>
&2
o_asound
$sound
o_asound
--samplerate
=
$samplerate
$sound
else
echo
"
$blaar_program_name
does not work on '
$(
uname
)
' platform"
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment