mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 12:12:56 +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;
|
||||
}
|
||||
|
||||
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()));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue