Logo Search packages:      
Sourcecode: qsynth version File versions


// qsynthSetup.h
   Copyright (C) 2003-2004, rncbc aka Rui Nuno Capela. All rights reserved.

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2
   of the License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


#ifndef __qsynthSetup_h
#define __qsynthSetup_h

#include <qstring.h>
#include <qstringlist.h>
#include <qsettings.h>

#include <stdlib.h>
#include <unistd.h>

#include <fluidsynth.h>

// qsynthSetup - Prototype settings class.

class qsynthSetup

    // Constructor.
    // Default destructor.

    // Settings cache realization.
    void realize();

    // Fluidsynth settings accessor.
    fluid_settings_t *fluid_settings();

    // Setup display name.
    QString sDisplayName;

    // Settings variables.
    bool    bMidiIn;
    QString sMidiDriver;
    int     iMidiChannels;
    QString sAlsaName;
    QString sAudioDriver;
    QString sJackName;
    bool    bJackAutoConnect;
    bool    bJackMulti;
    int     iAudioChannels;
    int     iAudioGroups;
    int     iAudioBufSize;
    int     iAudioBufCount;
    QString sSampleFormat;
    float   fSampleRate;
    int     iPolyphony;
    bool    bReverbActive;
    double  fReverbRoom;
    double  fReverbDamp;
    double  fReverbWidth;
    double  fReverbLevel;
    bool    bChorusActive;
    int     iChorusNr;
    double  fChorusLevel;
    double  fChorusSpeed;
    double  fChorusDepth;
    int     iChorusType;
    bool    bLadspaActive;
    float   fGain;
    bool    bServer;
    bool    bMidiDump;
    bool    bVerbose;

    // Optional file lists.
    QStringList soundfonts;
    QStringList bankoffsets;
    QStringList midifiles;

    // Current (translated) preset name.
    QString sDefPresetName;

    // Current (default) preset name.
    QString sDefPreset;
    // Available presets list.
    QStringList presets;


    // Fluidsynth settings member variable.
    fluid_settings_t *m_pFluidSettings;

#endif  // __qsynthSetup_h

// end of qsynthSetup.h

Generated by  Doxygen 1.6.0   Back to index