use AduioEvent instead of string

This commit is contained in:
vladest 2017-09-14 20:21:11 +02:00
parent 61b283743e
commit 7c1827d672
2 changed files with 2 additions and 3 deletions

View file

@ -71,8 +71,7 @@ TabletProxy* TabletScriptingInterface::getTablet(const QString& tabletId) {
return tabletProxy;
}
void TabletScriptingInterface::playSound(QString soundId)
{
void TabletScriptingInterface::playSound(Tablet::AudioEvents aevent) {
QFileInfo inf = QFileInfo(PathUtils::resourcesPath() + "sounds/snap.wav");
SharedSoundPointer _snapshotSound = DependencyManager::get<SoundCache>()->
getSound(QUrl::fromLocalFile(inf.absoluteFilePath()));

View file

@ -57,7 +57,7 @@ public:
*/
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 setQmlTabletRoot(QString tabletId, OffscreenQmlSurface* offscreenQmlSurface);