Version

menu_open
Wwise SDK 2023.1.5
Create a Music Playlist Container with segment and playlist

Creates a new Music Playlist Container, import a wav file in a Music Segment and create a playlist.

Function URI

ak.wwise.core.object.set

Arguments

{
"objects": [
{
"object": "\\Interactive Music Hierarchy\\Default Work Unit",
"children": [
{
"type": "MusicPlaylistContainer",
"name": "MySequence",
"children": [
{
"type": "MusicSegment",
"name": "Segment1",
"import": {
"files": [
{
"audioFile": "C:\\wave\\music.wav"
}
]
}
}
],
"@PlaylistRoot": {
"type": "MusicPlaylistItem",
"name": "",
"children": [
{
"type": "MusicPlaylistItem",
"name": "",
"@PlaylistItemType": 1,
"@Segment": "\\Interactive Music Hierarchy\\Default Work Unit\\MySequence\\Segment1"
}
]
}
}
]
}
],
"onNameConflict": "merge",
"listMode": "replaceAll"
}

Options

{}

Result

{
"objects": [
{
"id": "{78C8AE0D-6F8F-4FD3-BF65-436C7647C433}",
"name": "Default Work Unit",
"children": [
{
"id": "{8719EFDC-914D-4E95-9017-3DE5A0000E8E}",
"name": "MySequence",
"children": [
{
"id": "{69CA2921-725B-4D1D-BD7E-2674E70B9CA7}",
"name": "Segment1",
"import": {
"objects": [
{
"id": "{C736DC34-45A9-463F-AAD3-80503B1EAD9F}",
"name": "music"
}
],
"logs": [
{
"message": "Finalizing Importation...",
"severity": "Message"
}
]
}
}
],
"@PlaylistRoot": {
"id": "{97E6D2CD-940D-4CF1-9D41-32FC626711B5}",
"name": "",
"children": [
{
"id": "{DA859307-B176-46E8-8A8A-98D359667C49}",
"name": ""
}
]
}
}
]
}
]
}

Refer to Using the Wwise Authoring API (WAAPI) for more information about Wwise Authoring API.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise