Warning, /system/mycroft-gui/import/qml/SoundEffects.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * Copyright 2021 by Aditya Mehra <aix.m@outlook.com>
0003  *
0004  * Licensed under the Apache License, Version 2.0 (the "License");
0005  * you may not use this file except in compliance with the License.
0006  * You may obtain a copy of the License at
0007  *
0008  *    http://www.apache.org/licenses/LICENSE-2.0
0009  *
0010  * Unless required by applicable law or agreed to in writing, software
0011  * distributed under the License is distributed on an "AS IS" BASIS,
0012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013  * See the License for the specific language governing permissions and
0014  * limitations under the License.
0015  *
0016  */
0017 
0018 import QtQuick 2.15
0019 import QtMultimedia
0020 
0021 pragma Singleton
0022 
0023 QtObject {
0024     id: navigationSoundEffects
0025 
0026     property SoundEffect clickedSound: SoundEffect {}
0027 
0028     function playClickedSound(url) {
0029         clickedSound.source = url
0030         clickedSound.play();
0031     }
0032 }