aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_convert.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-22 15:56:56 +0200
committerMax Kellermann <max@duempel.org>2009-07-22 15:56:56 +0200
commitc5a662f405a28caca2380d1b20fed050b1407ad5 (patch)
tree8d4e323e1f1196ac9c20e91903478b041551be00 /src/pcm_convert.h
parent92779504415e00c2ab5a15dd28ffaf3f067f2ead (diff)
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.
Diffstat (limited to 'src/pcm_convert.h')
-rw-r--r--src/pcm_convert.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pcm_convert.h b/src/pcm_convert.h
index be08ad8a..a048d659 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;
};
/**