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); }