From 2914812f223b2ce25bb07ce28589042887b929c3 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 27 Jun 2016 13:19:37 +0200 Subject: [PATCH] Properly et frequency, format and buffer size --- simgear/sound/sample.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } -- 2.39.5