๐Sounds
MelodyMine Sounds API
To use the MelodyMine Sound API, you need to navigate to the path web/client/src/
within the MelodyMine website and open the file sounds.ts
.
In this file you will find a list of JSON objects representing different sounds.
export default [
{
name: "notification",
url: "sound/notif-sound.mp3",
loop: false,
volume: 0.5
},
{
name: "calling",
url: "sound/calling-sound.mp3",
loop: false,
volume: 0.5
},
{
name: "calling2",
url: "sound/calling-sound_2.mp3",
loop: false,
volume: 0.5
},
{
name: "hangUp",
url: "sound/hang-up-sound.mp3",
loop: false,
volume: 0.5
},
{
name: "radio",
url: "http://stream.laut.fm/pop-musik",
loop: false,
volume: 0.1
},
]
To add a new sound to the client, you simply need to follow a similar procedure to the example provided below:
{
name: string, // Name must be unique.
url: string, // Sound URL local or stream.
loop: boolean, // Loop for local sounds.
volume: number // Sound volume between 0 / 1.
}
Sound Events and Managers
You can create and utilize events and sound managers within MelodyMine to handle various functionalities related to sounds.
By navigating to the Sounds Events and Sounds Manager pages in the MelodyMine plugin, you can explore examples of how sound is used within the plugin.
Events
๐นSoundManagers
๐ธSoundLast updated