static void Main(string[] args) { if (args.Length != 3) { Console.WriteLine("Usage: wemsharp.exe <helper file> <input file> <output file>"); return; } WEMFile wem = new WEMFile(args[1], WEMForcePacketFormat.NoForcePacketFormat); wem.GenerateOGG(args[2], args[0], false, false); }
async Task Async_Wwise_Extract_To_Ogg_File(int Index, string To_Dir) { await Task.Run(() => { try { //.pck内のファイルが.ogg形式でないとファイルサイズが0バイトになる WEMFile wem = new WEMFile(To_Dir + "/" + Sounds[Index].id + ".wem", WEMForcePacketFormat.NoForcePacketFormat); wem.GenerateOGG(To_Dir + "/" + Sounds[Index].id + ".ogg", Voice_Set.Special_Path + "/Wwise/packed_codebooks_aoTuV_603.bin", false, false); wem.Close(); } catch { } }); }
static void Main(string[] args) { WEMFile wem = new WEMFile("LoL_MUSIC_TreelineINTRO.wem", WEMForcePacketFormat.NoForcePacketFormat); wem.GenerateOGG("LoL_MUSIC_TreelineINTRO.ogg", "packed_codebooks_aoTuV_603.bin", false, false); }