From: Erik Hofman Date: Mon, 27 Jun 2016 11:19:37 +0000 (+0200) Subject: Properly et frequency, format and buffer size X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2914812f223b2ce25bb07ce28589042887b929c3;p=simgear.git Properly et frequency, format and buffer size --- diff --git a/simgear/sound/sample.cxx b/simgear/sound/sample.cxx index 2a02e82a..b201a8b7 100644 --- a/simgear/sound/sample.cxx +++ b/simgear/sound/sample.cxx @@ -136,6 +136,10 @@ SGSoundSample::SGSoundSample( const unsigned char** data, { SG_LOG( SG_SOUND, SG_DEBUG, "In memory sounds sample" ); _data = (unsigned char*)*data; *data = NULL; + + set_frequency(freq); + set_format(format); + set_size(len); } // constructor @@ -149,6 +153,10 @@ SGSoundSample::SGSoundSample( void** data, int len, int freq, int format ) : { SG_LOG( SG_SOUND, SG_DEBUG, "In memory sounds sample" ); _data = (unsigned char*)*data; *data = NULL; + + set_frequency(freq); + set_format(format); + set_size(len); }