}
// constructor
-SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq,
- bool cleanup) :
+SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq ) :
buffer(0),
source(0),
pitch(1.0),
throw sg_exception("Failed to buffer data.");
}
- if ( cleanup ) {
- free(_data);
- }
-
print_openal_error("constructor return");
}