- API -
middlewareInfoList = reaper.AZ_MIDDLESCANNER_Wwise_GetVolumeForMediaItemList(itemList,language,parentID,options)
- API Detail-
▼Input value
・itemList(table): Array of media
・language(string): Language
・objList(table): List of search results
ID: The ID of the object.
Name: Name of the object.
Path: The path of the object.
▼Output value
・middlewareInfoList(table): An array of the sum of the volume settings for the output of the Wwise object corresponding to the media
・Item(MediaItem): Media item
・Volume(double): Volume
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_BRONZE")
require("reaper_AZSTOKE_SILVER")
require("reaper_AZSTOKE_GOLD")
jsonStr = reaper.AZ_ReadFile("D://script","savedata.txt")
loudnessTable = reaper.AZ_Json_Deserialize(jsonStr)
options = {
ExcludeBusList = {"Hall"},
}
itemList = reaper.AZ_GetMediaItemList(0)
if (reaper.AZ_Wwise_Connect("127.0.0.1",8080)) then
middlewareInfoList = reaper.AZ_MIDDLESCANNER_Wwise_GetVolumeForMediaItemList(itemList,"English(US)",0,options)
for i, value in pairs(middlewareInfoList) do
Msg(reaper.AZ_GetMediaItemName(value.Item))
Msg(value.Volume)
end
reaper.AZ_Wwise_Disconnect()
end