Properly et frequency, format and buffer size

This commit is contained in:
Erik Hofman
2016-06-27 13:19:37 +02:00
parent 2321d9783d
commit a8d8158fac

View File

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