mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
* 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
This commit is contained in:
parent
8641af3c6d
commit
5f647c8fef
28 changed files with 3237 additions and 192 deletions
|
|
@ -44,7 +44,7 @@ struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *n
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (resample_method < 0)
|
||||
if (resample_method == PA_RESAMPLER_INVALID)
|
||||
resample_method = s->core->resample_method;
|
||||
|
||||
if (!pa_sample_spec_equal(&s->sample_spec, spec))
|
||||
|
|
@ -175,3 +175,12 @@ void pa_source_output_cork(struct pa_source_output *o, int b) {
|
|||
|
||||
o->state = b ? PA_SOURCE_OUTPUT_CORKED : PA_SOURCE_OUTPUT_RUNNING;
|
||||
}
|
||||
|
||||
enum pa_resample_method pa_source_output_get_resample_method(struct pa_source_output *o) {
|
||||
assert(o && o->ref >= 1);
|
||||
|
||||
if (!o->resampler)
|
||||
return PA_RESAMPLER_INVALID;
|
||||
|
||||
return pa_resampler_get_method(o->resampler);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue