bugfix: loading presets

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@68 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andreas Brandmaier
2006-01-24 22:18:12 +00:00
parent 564a1e48ac
commit 452b7a200f

View File

@@ -606,12 +606,18 @@ void bitInvader::loadSettings( const QDomElement & _this )
// Load sample shape
delete[] sample_shape;
sample_shape = new float[sample_length];
QString sampleString = _this.attribute( "sampleShape ");
QString sampleString = _this.attribute( "sampleShape");
int size = 0;
char * dst = 0;
base64::decode( sampleString, &dst, &size );
memcpy( sample_shape, dst, size );
cout << sampleString.ascii() << endl;
for (int i=0; i < sample_length; i++)
{
cout << sample_shape[i] << endl;
}
// Load LED normalize
if ( _this.attribute( "interpolation" ).toInt() == 1 ) {
m_interpolationToggle->setChecked( true );