mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
modify alsa drivers to make use of new global fragment setting variables
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1633 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
793f750429
commit
e1100b5b20
2 changed files with 4 additions and 10 deletions
|
|
@ -71,9 +71,6 @@ PA_MODULE_USAGE(
|
|||
|
||||
#define DEFAULT_DEVICE "default"
|
||||
|
||||
#define DEFAULT_NFRAGS 4
|
||||
#define DEFAULT_FRAGSIZE_MSEC 25
|
||||
|
||||
struct userdata {
|
||||
pa_core *core;
|
||||
pa_module *module;
|
||||
|
|
@ -741,8 +738,8 @@ int pa__init(pa_module*m) {
|
|||
|
||||
frame_size = pa_frame_size(&ss);
|
||||
|
||||
nfrags = DEFAULT_NFRAGS;
|
||||
frag_size = pa_usec_to_bytes(DEFAULT_FRAGSIZE_MSEC*1000, &ss);
|
||||
nfrags = m->core->default_n_fragments;
|
||||
frag_size = pa_usec_to_bytes(m->core->default_fragment_size_msec*1000, &ss);
|
||||
if (frag_size <= 0)
|
||||
frag_size = frame_size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue