1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2006 Christian Schoenebeck * |
* Copyright (C) 2006 - 2007 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
73 |
midiMapsMutex.Unlock(); |
midiMapsMutex.Unlock(); |
74 |
if (!Entry.InstrumentFile.size()) |
if (!Entry.InstrumentFile.size()) |
75 |
throw Exception("No instrument file name given"); |
throw Exception("No instrument file name given"); |
76 |
|
// TODO: an easy one - we should check here if given file exists and throw an exception if it doesn't |
77 |
if (Entry.Volume < 0.0) |
if (Entry.Volume < 0.0) |
78 |
throw Exception("Volume may not be a negative value"); |
throw Exception("Volume may not be a negative value"); |
79 |
Engine* pEngine = EngineFactory::Create(Entry.EngineName); |
Engine* pEngine = EngineFactory::Create(Entry.EngineName); |