Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Vorbis tools
Commits
c00f340d
Commit
c00f340d
authored
Jul 11, 2002
by
Stan Seibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added long option for controlling audio buffer.
svn path=/trunk/vorbis-tools/; revision=3567
parent
4ec9698f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ogg123/cmdline_options.c
ogg123/cmdline_options.c
+9
-4
No files found.
ogg123/cmdline_options.c
View file @
c00f340d
...
...
@@ -11,7 +11,7 @@
* *
********************************************************************
last mod: $Id: cmdline_options.c,v 1.1
2
2002/07/
06 19:12:17
volsung Exp $
last mod: $Id: cmdline_options.c,v 1.1
3
2002/07/
11 02:44:39
volsung Exp $
********************************************************************/
...
...
@@ -46,6 +46,7 @@ struct option long_options[] = {
{
"ntimes"
,
required_argument
,
0
,
'y'
},
{
"shuffle"
,
no_argument
,
0
,
'z'
},
{
"list"
,
required_argument
,
0
,
'@'
},
{
"audio-buffer"
,
required_argument
,
0
,
0
},
{
0
,
0
,
0
,
0
}
};
...
...
@@ -67,9 +68,13 @@ int parse_cmdline_options (int argc, char **argv,
switch
(
ret
)
{
case
0
:
status_error
(
_
(
"Internal error: long option given when none expected.
\n
"
));
exit
(
1
);
if
(
!
strcmp
(
long_options
[
option_index
].
name
,
"audio-buffer"
))
{
ogg123_opts
->
buffer_size
=
1024
*
atoi
(
optarg
);
}
else
{
status_error
(
_
(
"Internal error parsing command line options.
\n
"
));
exit
(
1
);
}
break
;
case
'b'
:
ogg123_opts
->
input_buffer_size
=
atoi
(
optarg
)
*
1024
;
if
(
ogg123_opts
->
input_buffer_size
<
MIN_INPUT_BUFFER_SIZE
*
1024
)
{
...
...
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