Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
99743b43
Commit
99743b43
authored
Jun 03, 2010
by
Alexandre Savard
Browse files
[#3471] Fix delay in Pulseaudio
parent
4a664536
Changes
1
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/audio/pulseaudio/audiostream.cpp
View file @
99743b43
...
...
@@ -214,7 +214,7 @@ AudioStream::createStream (pa_context* c, std::string *deviceName)
if
(
_streamType
==
PLAYBACK_STREAM
)
{
attributes
->
maxlength
=
(
uint32_t
)
-
1
;
attributes
->
tlength
=
pa_usec_to_bytes
(
20
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
tlength
=
pa_usec_to_bytes
(
5
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
prebuf
=
0
;
attributes
->
minreq
=
(
uint32_t
)
-
1
;
...
...
@@ -231,9 +231,9 @@ AudioStream::createStream (pa_context* c, std::string *deviceName)
}
else
if
(
_streamType
==
CAPTURE_STREAM
)
{
attributes
->
maxlength
=
(
uint32_t
)
-
1
;
attributes
->
tlength
=
pa_usec_to_bytes
(
20
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
tlength
=
pa_usec_to_bytes
(
5
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
prebuf
=
0
;
attributes
->
fragsize
=
pa_usec_to_bytes
(
20
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
fragsize
=
pa_usec_to_bytes
(
5
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
pa_threaded_mainloop_lock
(
_mainloop
);
...
...
@@ -248,7 +248,7 @@ AudioStream::createStream (pa_context* c, std::string *deviceName)
}
else
if
(
_streamType
==
RINGTONE_STREAM
)
{
attributes
->
maxlength
=
(
uint32_t
)
-
1
;
attributes
->
tlength
=
pa_usec_to_bytes
(
10
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
tlength
=
pa_usec_to_bytes
(
5
0
*
PA_USEC_PER_MSEC
,
&
_sample_spec
);
attributes
->
prebuf
=
0
;
attributes
->
minreq
=
(
uint32_t
)
-
1
;
...
...
Write
Preview
Supports
Markdown
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