Version

menu_open
Wwise SDK 2023.1.5
Importing two WAV files into a Music Segment to create two Music Tracks

Creates a Music Segment, and imports two WAV files. Two new Music Tracks and two Music Clips are also created.

Function URI

ak.wwise.core.object.set

Arguments

{
"objects": [
{
"object": "\\Interactive Music Hierarchy\\Default Work Unit",
"children": [
{
"type": "MusicSegment",
"name": "MultiTrack Segment",
"import": {
"files": [
{
"audioFile": "c:\\path\\track1.wav"
},
{
"audioFile": "c:\\path\\track2.wav"
}
]
}
}
]
}
],
"onNameConflict": "merge"
}

Result

{
"objects": [
{
"children": [
{
"id": "{7367EE35-EF2E-4EBC-81AC-6B7C23260BF2}",
"import": {
"logs": [
{
"message": "Finalizing Importation...",
"severity": "Message"
}
],
"objects": [
{
"id": "{DB365588-EDE7-4DF3-8473-9DE29F78B077}",
"name": "track1"
},
{
"id": "{8CE8D07A-F7E0-4A6E-9FD8-1CD2A2B7BBA3}",
"name": "track1"
},
{
"id": "{6D7EE38E-A8B7-4A90-B7B5-EED543C0B396}",
"name": "track2"
},
{
"id": "{D9CCB1A3-FAF7-46F8-A14C-18679F78B56E}",
"name": "track2"
}
]
},
"name": "MultiTrack Segment"
}
],
"id": "{6128CF6C-DE55-4E1C-A582-BD27EAD90A13}",
"name": "Default Work Unit"
}
]
}

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