summaryrefslogtreecommitdiffstats
path: root/polyp/pactl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-11-20 16:23:53 +0000
committerLennart Poettering <lennart@poettering.net>2004-11-20 16:23:53 +0000
commit5f647c8fef33f35210d550ad1477ef43520b32a3 (patch)
treec6eb28bbbca0966dede1d7635f67b471fef06924 /polyp/pactl.c
parent8641af3c6d11e3e6710cb946e9a93d0e9f639519 (diff)
* add µlaw/alaw support
* abstracted resampler API * add integer-only resampler ("trivial") * show used resampler wherever useful * add mixing/volume adjusting for float32ne and u8 git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@294 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/pactl.c')
-rw-r--r--polyp/pactl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/polyp/pactl.c b/polyp/pactl.c
index 641106df..d73f703c 100644
--- a/polyp/pactl.c
+++ b/polyp/pactl.c
@@ -324,7 +324,8 @@ static void get_sink_input_info_callback(struct pa_context *c, const struct pa_s
"Sample Specification: %s\n"
"Volume: 0x%03x (%0.2f dB)\n"
"Buffer Latency: %0.0f usec\n"
- "Sink Latency: %0.0f usec\n",
+ "Sink Latency: %0.0f usec\n"
+ "Resample method: %s\n",
i->index,
i->name,
i->owner_module != PA_INVALID_INDEX ? t : "n/a",
@@ -333,7 +334,8 @@ static void get_sink_input_info_callback(struct pa_context *c, const struct pa_s
s,
i->volume, pa_volume_to_dB(i->volume),
(double) i->buffer_usec,
- (double) i->sink_usec);
+ (double) i->sink_usec,
+ i->resample_method ? i->resample_method : "n/a");
}
static void get_source_output_info_callback(struct pa_context *c, const struct pa_source_output_info *i, int is_last, void *userdata) {
@@ -367,7 +369,8 @@ static void get_source_output_info_callback(struct pa_context *c, const struct p
"Source: %u\n"
"Sample Specification: %s\n"
"Buffer Latency: %0.0f usec\n"
- "Source Latency: %0.0f usec\n",
+ "Source Latency: %0.0f usec\n"
+ "Resample method: %s\n",
i->index,
i->name,
i->owner_module != PA_INVALID_INDEX ? t : "n/a",
@@ -375,7 +378,8 @@ static void get_source_output_info_callback(struct pa_context *c, const struct p
i->source,
s,
(double) i->buffer_usec,
- (double) i->source_usec);
+ (double) i->source_usec,
+ i->resample_method ? i->resample_method : "n/a");
}
static void get_sample_info_callback(struct pa_context *c, const struct pa_sample_info *i, int is_last, void *userdata) {