mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-07 20:23:55 +02:00
use AduioEvent instead of string
This commit is contained in:
parent
61b283743e
commit
7c1827d672
2 changed files with 2 additions and 3 deletions
|
@ -71,8 +71,7 @@ TabletProxy* TabletScriptingInterface::getTablet(const QString& tabletId) {
|
||||||
return tabletProxy;
|
return tabletProxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabletScriptingInterface::playSound(QString soundId)
|
void TabletScriptingInterface::playSound(Tablet::AudioEvents aevent) {
|
||||||
{
|
|
||||||
QFileInfo inf = QFileInfo(PathUtils::resourcesPath() + "sounds/snap.wav");
|
QFileInfo inf = QFileInfo(PathUtils::resourcesPath() + "sounds/snap.wav");
|
||||||
SharedSoundPointer _snapshotSound = DependencyManager::get<SoundCache>()->
|
SharedSoundPointer _snapshotSound = DependencyManager::get<SoundCache>()->
|
||||||
getSound(QUrl::fromLocalFile(inf.absoluteFilePath()));
|
getSound(QUrl::fromLocalFile(inf.absoluteFilePath()));
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE TabletProxy* getTablet(const QString& tabletId);
|
Q_INVOKABLE TabletProxy* getTablet(const QString& tabletId);
|
||||||
|
|
||||||
Q_INVOKABLE void playSound(QString soundId);
|
Q_INVOKABLE void playSound(Tablet::AudioEvents aevent);
|
||||||
void setToolbarMode(bool toolbarMode);
|
void setToolbarMode(bool toolbarMode);
|
||||||
|
|
||||||
void setQmlTabletRoot(QString tabletId, OffscreenQmlSurface* offscreenQmlSurface);
|
void setQmlTabletRoot(QString tabletId, OffscreenQmlSurface* offscreenQmlSurface);
|
||||||
|
|
Loading…
Reference in a new issue