add default fragment settings variables to pa_core
authorLennart Poettering <lennart@poettering.net>
Sat, 11 Aug 2007 15:56:06 +0000 (15:56 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 11 Aug 2007 15:56:06 +0000 (15:56 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1629 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/core.c
src/pulsecore/core.h

index a56dd4e..8b10d39 100644 (file)
@@ -112,6 +112,8 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) {
     c->default_sample_spec.format = PA_SAMPLE_S16NE;
     c->default_sample_spec.rate = 44100;
     c->default_sample_spec.channels = 2;
+    c->default_n_fragments = 4;
+    c->default_fragment_size_msec = 25;
 
     c->module_auto_unload_event = NULL;
     c->module_defer_unload_event = NULL;
index d86d551..003b24b 100644 (file)
@@ -65,6 +65,8 @@ struct pa_core {
     char *default_source_name, *default_sink_name;
 
     pa_sample_spec default_sample_spec;
+    unsigned default_n_fragments, default_fragment_size_msec;
+    
     pa_time_event *module_auto_unload_event;
     pa_defer_event *module_defer_unload_event;