|
|
@ -67,12 +67,11 @@
|
|
|
|
#include "kcolorcombo2.h"
|
|
|
|
#include "kcolorcombo2.h"
|
|
|
|
#include "htmlexporter.h"
|
|
|
|
#include "htmlexporter.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#ifdef WITH_ARTS
|
|
|
|
#ifndef WITHOUT_ARTS
|
|
|
|
#include <arts/kplayobject.h>
|
|
|
|
#include <arts/kplayobject.h>
|
|
|
|
#include <arts/kplayobjectfactory.h>
|
|
|
|
#include <arts/kplayobjectfactory.h>
|
|
|
|
#include <arts/kartsserver.h>
|
|
|
|
#include <arts/kartsserver.h>
|
|
|
|
#include <arts/kartsdispatcher.h>
|
|
|
|
#include <arts/kartsdispatcher.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/** class NoteContent:
|
|
|
|
/** class NoteContent:
|
|
|
@ -1164,11 +1163,7 @@ TQString SoundContent::zoneTip(int zone)
|
|
|
|
|
|
|
|
|
|
|
|
void SoundContent::setHoveredZone(int oldZone, int newZone)
|
|
|
|
void SoundContent::setHoveredZone(int oldZone, int newZone)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef WITHOUT_ARTS
|
|
|
|
#ifdef WITH_ARTS
|
|
|
|
Q_UNUSED(oldZone);
|
|
|
|
|
|
|
|
if (newZone == Note::Custom0 || newZone == Note::Content)
|
|
|
|
|
|
|
|
std::cout << "Compiled without aRts: sound is not played." << std::endl;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static KArtsDispatcher *s_dispatcher = new KArtsDispatcher(); // Needed for s_playObj (we don't use it directly)
|
|
|
|
static KArtsDispatcher *s_dispatcher = new KArtsDispatcher(); // Needed for s_playObj (we don't use it directly)
|
|
|
|
static KArtsServer *s_playServer = new KArtsServer();
|
|
|
|
static KArtsServer *s_playServer = new KArtsServer();
|
|
|
|
static KDE::PlayObjectFactory *s_playFactory = new KDE::PlayObjectFactory(s_playServer);
|
|
|
|
static KDE::PlayObjectFactory *s_playFactory = new KDE::PlayObjectFactory(s_playServer);
|
|
|
@ -1189,6 +1184,10 @@ void SoundContent::setHoveredZone(int oldZone, int newZone)
|
|
|
|
s_playObj = 0;
|
|
|
|
s_playObj = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
Q_UNUSED(oldZone);
|
|
|
|
|
|
|
|
if (newZone == Note::Custom0 || newZone == Note::Content)
|
|
|
|
|
|
|
|
std::cout << "Compiled without aRts: sound is not played." << std::endl;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|