mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-22 07:53:21 -04:00
patman, reworked resampling, sample extensions
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@471 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* engine.cpp - implementation of LMMS' engine-system
|
||||
*
|
||||
* Copyright (c) 2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2006-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -52,6 +52,8 @@ engine::engine( const bool _has_gui ) :
|
||||
m_pianoRoll( NULL ),
|
||||
m_projectJournal( NULL )
|
||||
{
|
||||
load_extensions();
|
||||
|
||||
m_projectJournal = new projectJournal( this );
|
||||
m_mainWindow = new mainWindow( this );
|
||||
m_mixer = new mixer( this );
|
||||
@@ -123,6 +125,35 @@ void engine::updateFramesPerTact64th( void )
|
||||
|
||||
|
||||
|
||||
void engine::load_extensions( void )
|
||||
{
|
||||
vvector<plugin::descriptor> pluginDescriptors;
|
||||
plugin::getDescriptorsOfAvailPlugins( pluginDescriptors );
|
||||
for( vvector<plugin::descriptor>::iterator it =
|
||||
pluginDescriptors.begin();
|
||||
it != pluginDescriptors.end(); ++it )
|
||||
{
|
||||
if( it->sub_plugin_features )
|
||||
{
|
||||
if( it->type == plugin::Instrument )
|
||||
{
|
||||
const QStringList & ext =
|
||||
it->sub_plugin_features
|
||||
->supportedExtensions();
|
||||
for( QStringList::const_iterator itExt =
|
||||
ext.begin();
|
||||
itExt != ext.end(); ++itExt )
|
||||
{
|
||||
m_sample_extensions[*itExt] = it->name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
engineObject::engineObject( engine * _engine ) :
|
||||
m_engine( _engine )
|
||||
|
||||
Reference in New Issue
Block a user