Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
startupsound.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2016-2017 Karolin Stange, Christoph Wick, and Haye Hinrichsen
3  *
4  * This file is part of JustIntonation.
5  *
6  * JustIntonation is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * JustIntonation is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with JustIntonation. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 //=============================================================================
21 // Class for playing a startup sound
22 //=============================================================================
23 
24 #ifndef STARTUPSOUND_H
25 #define STARTUPSOUND_H
26 
27 #include <QObject>
28 
29 #include "system/shared.h"
30 
43 
44 class StartupSound : public QObject
45 {
46  Q_OBJECT
47 public:
48  StartupSound(const QString& resourcefile);
49  bool isEnabled();
50  void setVerbosity (int verbosity);
51 
52 public slots:
53  void enable (bool enabled);
54  void play ();
55 
56 private:
57  QString mResourceFile;
58  int mVerbosity;
59 };
60 
61 #endif // STARTUPSOUND_H
int mVerbosity
Verbosity of qDebug() messages.
Definition: startupsound.h:58
QString mResourceFile
Resource file object.
Definition: startupsound.h:57
void play()
Play startup sound.
void enable(bool enabled)
Public slot: Enable / disable startup sound.
StartupSound(const QString &resourcefile)
Constructor.
bool isEnabled()
StartupSound::isEnabled.
Class for playing a startup soundThis module manages to play a short audio file at startup (welcome j...
Definition: startupsound.h:44
void setVerbosity(int verbosity)
Set verbosity level of qDebug() messages.