Let the application free the buffer data.

This commit is contained in:
ehofman
2005-11-12 12:22:23 +00:00
parent faf41f7d96
commit 2af37b484e
2 changed files with 1 additions and 2 deletions

View File

@@ -179,8 +179,6 @@ SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq ) :
throw sg_exception("Failed to buffer data.");
}
free(_data);
print_openal_error("constructor return");
}

View File

@@ -115,6 +115,7 @@ public:
/**
* Constructor.
* @param _data Pointer to a memory buffer containing the sample data
the application is responsible for freeing the buffer data.
* @param len Byte length of array
* @param _freq Frequency of the provided data (bytes per second)
should usually be true unless you want to manipulate the data