Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Traud
Opus
Commits
c6eb40f8
Commit
c6eb40f8
authored
16 years ago
by
Gregory Maxwell
Committed by
Jean-Marc Valin
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Celtclient improvements: A usable usage message and correct usage of the jitter buffer.
parent
5cfa93b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/celtclient.c
+5
-2
5 additions, 2 deletions
tools/celtclient.c
with
5 additions
and
2 deletions
tools/celtclient.c
+
5
−
2
View file @
c6eb40f8
...
...
@@ -75,13 +75,13 @@ int main(int argc, char *argv[])
if
(
argc
!=
5
)
{
fprintf
(
stderr
,
"
wrong options
\n
"
);
fprintf
(
stderr
,
"
Usage %s plughw:0,0 remote_host local_udp_port remote_udp_port
\n
"
,
argv
[
0
]
);
exit
(
1
);
}
h
=
gethostbyname
(
argv
[
2
]);
if
(
h
==
NULL
)
{
fprintf
(
stderr
,
"%s: unknown host '%s'
\n
"
,
argv
[
0
],
argv
[
1
]);
fprintf
(
stderr
,
"%s: unknown host '%s'
\n
"
,
argv
[
0
],
argv
[
2
]);
exit
(
1
);
}
...
...
@@ -185,7 +185,10 @@ int main(int argc, char *argv[])
/* Get audio from the jitter buffer */
packet
.
data
=
msg
;
packet
.
len
=
MAX_MSG
;
jitter_buffer_tick
(
jitter
);
jitter_buffer_get
(
jitter
,
&
packet
,
FRAME_SIZE
,
NULL
);
if
(
packet
.
len
==
0
)
packet
.
data
=
NULL
;
celt_decode
(
dec_state
,
packet
.
data
,
packet
.
len
,
pcm
);
}
else
{
for
(
i
=
0
;
i
<
FRAME_SIZE
;
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment