From c5a662f405a28caca2380d1b20fed050b1407ad5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jul 2009 15:56:56 +0200 Subject: pcm_convert: added pcm_convert_state.byteswap_buffer Currently, byteswapping is performed on the format_buffer. This can go wrong when this buffer is used twice during one run. Add a separate buffer for swapping the byte order. --- src/pcm_convert.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pcm_convert.h') diff --git a/src/pcm_convert.h b/src/pcm_convert.h index be08ad8a8..a048d6598 100644 --- a/src/pcm_convert.h +++ b/src/pcm_convert.h @@ -41,6 +41,9 @@ struct pcm_convert_state { /** the buffer for converting the channel count */ struct pcm_buffer channels_buffer; + + /** the buffer for swapping the byte order */ + struct pcm_buffer byteswap_buffer; }; /** -- cgit v1.2.3