[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.13-235-gab97364
Lennart Poettering
gitmailer-noreply at 0pointer.de
Tue Jan 13 15:08:01 PST 2009
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 3d631df8dd4017a17bfd196783bfe3d4898feb63 (commit)
- Log -----------------------------------------------------------------
ab97364... remove calc_sine() since we don't need it anymore
cd45cd9... include new proplist functions in export list
407b4fe... fix calculation of avail_min
1872526... add pa_proplist_size() and pa_proplist_isempty()
ef5a2b5... Fix version info
-----------------------------------------------------------------------
Summary of changes:
src/map-file | 4 +++-
src/modules/module-alsa-sink.c | 2 +-
src/modules/module-alsa-source.c | 2 +-
src/modules/module-sine-source.c | 9 ---------
src/pulse/proplist.c | 12 ++++++++++++
src/pulse/proplist.h | 8 +++++++-
6 files changed, 24 insertions(+), 13 deletions(-)
-----------------------------------------------------------------------
commit ef5a2b5f2c5eca12946c538dc2a6b686b3f2f3ed
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 00:05:54 2009 +0100
Fix version info
diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h
index 4f1a1ec..217a770 100644
--- a/src/pulse/proplist.h
+++ b/src/pulse/proplist.h
@@ -214,7 +214,7 @@ const char *pa_proplist_iterate(pa_proplist *p, void **state);
char *pa_proplist_to_string(pa_proplist *p);
/** Allocate a new property list and assign key/value from a human readable string. \since
- * 0.9.14 */
+ * 0.9.15 */
pa_proplist *pa_proplist_from_string(const char *str);
/** Returns 1 if an entry for the specified key is existant in the
commit 18725265087dd7f8a8bf8e460b848826361d3f50
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 00:06:26 2009 +0100
add pa_proplist_size() and pa_proplist_isempty()
diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c
index 1694284..eec9d31 100644
--- a/src/pulse/proplist.c
+++ b/src/pulse/proplist.c
@@ -406,3 +406,15 @@ pa_proplist* pa_proplist_copy(pa_proplist *template) {
return p;
}
+
+unsigned pa_proplist_size(pa_proplist *p) {
+ pa_assert(p);
+
+ return pa_hashmap_size(MAKE_HASHMAP(p));
+}
+
+int pa_proplist_isempty(pa_proplist *p) {
+ pa_assert(p);
+
+ return pa_hashmap_isempty(MAKE_HASHMAP(p));
+}
diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h
index 217a770..5d65ff3 100644
--- a/src/pulse/proplist.h
+++ b/src/pulse/proplist.h
@@ -228,6 +228,12 @@ void pa_proplist_clear(pa_proplist *p);
* the specific list. \since 0.9.11 */
pa_proplist* pa_proplist_copy(pa_proplist *t);
+/** Return the number of entries on the property list. \since 0.9.15 */
+unsigned pa_proplist_size(pa_proplist *t);
+
+/** Returns 0 when the proplist is empty, positive otherwise \since 0.9.15 */
+int pa_proplist_isempty(pa_proplist *t);
+
PA_C_DECL_END
#endif
commit 407b4fe5bee1539bae8007daa6532bcf78454590
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 00:06:40 2009 +0100
fix calculation of avail_min
diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c
index f9fb9bd..6fa45e3 100644
--- a/src/modules/module-alsa-sink.c
+++ b/src/modules/module-alsa-sink.c
@@ -613,7 +613,7 @@ static int update_sw_params(struct userdata *u) {
pa_usec_t sleep_usec, process_usec;
hw_sleep_time(u, &sleep_usec, &process_usec);
- avail_min += pa_usec_to_bytes(sleep_usec, &u->sink->sample_spec);
+ avail_min += pa_usec_to_bytes(sleep_usec, &u->sink->sample_spec) / u->frame_size;
}
pa_log_debug("setting avail_min=%lu", (unsigned long) avail_min);
diff --git a/src/modules/module-alsa-source.c b/src/modules/module-alsa-source.c
index a6e4c90..768c8c1 100644
--- a/src/modules/module-alsa-source.c
+++ b/src/modules/module-alsa-source.c
@@ -558,7 +558,7 @@ static int update_sw_params(struct userdata *u) {
pa_usec_t sleep_usec, process_usec;
hw_sleep_time(u, &sleep_usec, &process_usec);
- avail_min += pa_usec_to_bytes(sleep_usec, &u->source->sample_spec);
+ avail_min += pa_usec_to_bytes(sleep_usec, &u->source->sample_spec) / u->frame_size;
}
pa_log_debug("setting avail_min=%lu", (unsigned long) avail_min);
commit cd45cd9e3ebba2d137ddd90fb181fdde07e65c18
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 00:07:32 2009 +0100
include new proplist functions in export list
diff --git a/src/map-file b/src/map-file
index 59006fe..0247933 100644
--- a/src/map-file
+++ b/src/map-file
@@ -148,15 +148,17 @@ pa_proplist_clear;
pa_proplist_contains;
pa_proplist_copy;
pa_proplist_free;
+pa_proplist_from_string;
pa_proplist_get;
pa_proplist_gets;
+pa_proplist_isempty;
pa_proplist_iterate;
pa_proplist_new;
pa_proplist_set;
pa_proplist_setf;
pa_proplist_sets;
+pa_proplist_size;
pa_proplist_to_string;
-pa_proplist_from_string;
pa_proplist_unset;
pa_proplist_unset_many;
pa_proplist_update;
commit ab9736421013d6eb7ccac1a6cce57a33fcf2c599
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 00:07:50 2009 +0100
remove calc_sine() since we don't need it anymore
diff --git a/src/modules/module-sine-source.c b/src/modules/module-sine-source.c
index be95cc3..1b8e7b3 100644
--- a/src/modules/module-sine-source.c
+++ b/src/modules/module-sine-source.c
@@ -201,15 +201,6 @@ finish:
pa_log_debug("Thread shutting down");
}
-static void calc_sine(float *f, size_t l, double freq) {
- size_t i;
-
- l /= sizeof(float);
-
- for (i = 0; i < l; i++)
- *(f++) = (float) 0.5f * sin((double) i*M_PI*2*freq / (double) l);
-}
-
int pa__init(pa_module*m) {
struct userdata *u;
pa_modargs *ma;
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list