diff options
author | Max Kellermann <max@duempel.org> | 2013-07-29 08:10:10 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-30 08:31:02 +0200 |
commit | c75cb67c4406648314ce2a15daf8b632374d7913 (patch) | |
tree | 5e27b73f2c90e878631bfac5b60070505b094717 /src/pcm/PcmExport.hxx | |
parent | cd1bb2bafa2653e5d4c7c9abf6f464bcdec693c5 (diff) |
pcm_buffer: convert to C++
Diffstat (limited to 'src/pcm/PcmExport.hxx')
-rw-r--r-- | src/pcm/PcmExport.hxx | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/pcm/PcmExport.hxx b/src/pcm/PcmExport.hxx index 4fb5cc9fc..e420493f0 100644 --- a/src/pcm/PcmExport.hxx +++ b/src/pcm/PcmExport.hxx @@ -21,7 +21,7 @@ #define PCM_EXPORT_HXX #include "check.h" -#include "pcm_buffer.h" +#include "PcmBuffer.hxx" #include "audio_format.h" struct audio_format; @@ -38,21 +38,21 @@ struct PcmExport { * * @see #dsd_usb */ - struct pcm_buffer dsd_buffer; + PcmBuffer dsd_buffer; /** * The buffer is used to pack samples, removing padding. * * @see #pack24 */ - struct pcm_buffer pack_buffer; + PcmBuffer pack_buffer; /** * The buffer is used to reverse the byte order. * * @see #reverse_endian */ - struct pcm_buffer reverse_buffer; + PcmBuffer reverse_buffer; /** * The number of channels. @@ -84,18 +84,6 @@ struct PcmExport { */ uint8_t reverse_endian; - PcmExport() { - pcm_buffer_init(&reverse_buffer); - pcm_buffer_init(&pack_buffer); - pcm_buffer_init(&dsd_buffer); - } - - ~PcmExport() { - pcm_buffer_deinit(&reverse_buffer); - pcm_buffer_deinit(&pack_buffer); - pcm_buffer_deinit(&dsd_buffer); - } - /** * Open the #pcm_export_state object. * |