cinderblocks / libremetaverse

An fork of the libopenmetaverse library striving for performance improvements and up-to-date compatibility with SL/OS/Halcyon
BSD 3-Clause "New" or "Revised" License
60 stars 40 forks source link

Missing function [Todo] / OpenMetaverse.Assets / Sounds / Encode function #49

Closed Madpeterz closed 2 years ago

Madpeterz commented 2 years ago

the Encode function for AssetSound is currently blank and uploads will fail.

            AssetSound S = new AssetSound();
            S.AssetData = audioData;
            S.Encode();

            bot.GetClient.Inventory.RequestCreateItemFromAsset(S.AssetData, inventoryName, "", AssetType.Sound, InventoryType.Sound, AA.UUID, uploadFinished);