Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
b58b15d1
Commit
b58b15d1
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9832: pulse: cleanup logging
parent
34b63542
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
daemon/src/audio/pulseaudio/audiostream.cpp
+13
-13
13 additions, 13 deletions
daemon/src/audio/pulseaudio/audiostream.cpp
with
13 additions
and
13 deletions
daemon/src/audio/pulseaudio/audiostream.cpp
+
13
−
13
View file @
b58b15d1
...
...
@@ -53,8 +53,8 @@ AudioStream::AudioStream(pa_context *c, pa_threaded_mainloop *m, const char *des
audiostream_
=
pa_stream_new
(
c
,
desc
,
&
sample_spec
,
&
channel_map
);
if
(
!
audiostream_
)
{
ERROR
(
"
Pulse:
%s: pa_stream_new() failed : %s"
,
desc
,
pa_strerror
(
pa_context_errno
(
c
)));
throw
std
::
runtime_error
(
"
Pulse : c
ould not create stream
\n
"
);
ERROR
(
"%s: pa_stream_new() failed : %s"
,
desc
,
pa_strerror
(
pa_context_errno
(
c
)));
throw
std
::
runtime_error
(
"
C
ould not create stream
\n
"
);
}
pa_buffer_attr
attributes
;
...
...
@@ -102,30 +102,30 @@ AudioStream::stream_state_callback(pa_stream* s, void* /*user_data*/)
switch
(
pa_stream_get_state
(
s
))
{
case
PA_STREAM_CREATING
:
DEBUG
(
"
Pulse:
Stream is creating..."
);
DEBUG
(
"Stream is creating..."
);
break
;
case
PA_STREAM_TERMINATED
:
DEBUG
(
"
Pulse:
Stream is terminating..."
);
DEBUG
(
"Stream is terminating..."
);
break
;
case
PA_STREAM_READY
:
DEBUG
(
"
Pulse:
Stream successfully created, connected to %s"
,
pa_stream_get_device_name
(
s
));
DEBUG
(
"
Pulse:
maxlength %u"
,
pa_stream_get_buffer_attr
(
s
)
->
maxlength
);
DEBUG
(
"
Pulse:
tlength %u"
,
pa_stream_get_buffer_attr
(
s
)
->
tlength
);
DEBUG
(
"
Pulse:
prebuf %u"
,
pa_stream_get_buffer_attr
(
s
)
->
prebuf
);
DEBUG
(
"
Pulse:
minreq %u"
,
pa_stream_get_buffer_attr
(
s
)
->
minreq
);
DEBUG
(
"
Pulse:
fragsize %u"
,
pa_stream_get_buffer_attr
(
s
)
->
fragsize
);
DEBUG
(
"
Pulse:
samplespec %s"
,
pa_sample_spec_snprint
(
str
,
sizeof
(
str
),
pa_stream_get_sample_spec
(
s
)));
DEBUG
(
"Stream successfully created, connected to %s"
,
pa_stream_get_device_name
(
s
));
DEBUG
(
"maxlength %u"
,
pa_stream_get_buffer_attr
(
s
)
->
maxlength
);
DEBUG
(
"tlength %u"
,
pa_stream_get_buffer_attr
(
s
)
->
tlength
);
DEBUG
(
"prebuf %u"
,
pa_stream_get_buffer_attr
(
s
)
->
prebuf
);
DEBUG
(
"minreq %u"
,
pa_stream_get_buffer_attr
(
s
)
->
minreq
);
DEBUG
(
"fragsize %u"
,
pa_stream_get_buffer_attr
(
s
)
->
fragsize
);
DEBUG
(
"samplespec %s"
,
pa_sample_spec_snprint
(
str
,
sizeof
(
str
),
pa_stream_get_sample_spec
(
s
)));
break
;
case
PA_STREAM_UNCONNECTED
:
DEBUG
(
"
Pulse:
Stream unconnected"
);
DEBUG
(
"Stream unconnected"
);
break
;
case
PA_STREAM_FAILED
:
default:
ERROR
(
"
Pulse:
Sink/Source doesn't exists: %s"
,
pa_strerror
(
pa_context_errno
(
pa_stream_get_context
(
s
))));
ERROR
(
"Sink/Source doesn't exists: %s"
,
pa_strerror
(
pa_context_errno
(
pa_stream_get_context
(
s
))));
break
;
}
}
...
...
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