pcm_resample: use pcm_buffer (1/2)

Return a temporary buffer from pcm_resample_*() and pcm_convert().
This commit is contained in:
Max Kellermann
2009-01-08 00:46:38 +01:00
parent aab85577bf
commit 2a83138913
5 changed files with 76 additions and 58 deletions

View File

@@ -23,4 +23,6 @@
void pcm_resample_init(struct pcm_resample_state *state)
{
memset(state, 0, sizeof(*state));
pcm_buffer_init(&state->buffer);
}