//
// pre 1.0 alut version
//
- ALvoid* data = load_file(path, file)
+ ALvoid* data = load_file(path, file);
// Copy data to the internal OpenAL buffer
alBufferData( buffer, format, data, size, freq );
}
// 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");
}