PcmConvert: don't memset() in the constructor
This destroys data inside PcmDsd and other attributes. It was once necessary, but is not anymore.
This commit is contained in:
parent
a1a97d663e
commit
46b9388bb0
|
@ -24,18 +24,16 @@
|
|||
#include "pcm_pack.h"
|
||||
#include "audio_format.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
|
||||
#undef G_LOG_DOMAIN
|
||||
#define G_LOG_DOMAIN "pcm"
|
||||
|
||||
PcmConvert::PcmConvert()
|
||||
{
|
||||
memset(this, 0, sizeof(*this));
|
||||
|
||||
pcm_resample_init(&resample);
|
||||
|
||||
pcm_buffer_init(&format_buffer);
|
||||
|
|
Loading…
Reference in New Issue