pcm_resample: one-time global initialization

Load the samplerate_converter on MPD startup.  Fail if the converter
name is invalid.
This commit is contained in:
Max Kellermann
2011-10-08 13:14:29 +02:00
parent 894b9cfdb9
commit 2b3fd0d4d3
5 changed files with 85 additions and 43 deletions

View File

@@ -32,6 +32,9 @@
#ifdef HAVE_LIBSAMPLERATE
bool
pcm_resample_lsr_global_init(const char *converter, GError **error_r);
void
pcm_resample_lsr_deinit(struct pcm_resample_state *state);