pcm_resample: use pcm_buffer (2/2)
Use the PCM buffer library for the libsamplerate output buffer.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "pcm_resample.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -24,5 +25,10 @@ void pcm_resample_init(struct pcm_resample_state *state)
|
||||
{
|
||||
memset(state, 0, sizeof(*state));
|
||||
|
||||
#ifdef HAVE_LIBSAMPLERATE
|
||||
pcm_buffer_init(&state->in);
|
||||
pcm_buffer_init(&state->out);
|
||||
#endif
|
||||
|
||||
pcm_buffer_init(&state->buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user