UnityEngine.WWW.GetAudioClipCompressed C# (CSharp) Method

GetAudioClipCompressed() public method

Returns an AudioClip generated from the downloaded data that is compressed in memory (Read Only).

public GetAudioClipCompressed ( bool threeD, AudioType audioType ) : AudioClip
threeD bool Use this to specify whether the clip should be a 2D or 3D clip.
audioType AudioType The AudioType of the content your downloading. If this is not set Unity will try to determine the type from URL.
return AudioClip
        public AudioClip GetAudioClipCompressed(bool threeD, AudioType audioType)
        {
            return this.GetAudioClipInternal(threeD, false, true, audioType);
        }

Same methods

WWW::GetAudioClipCompressed ( ) : AudioClip
WWW::GetAudioClipCompressed ( bool threeD ) : AudioClip

Usage Example

コード例 #1
0
        static int _m_GetAudioClipCompressed(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.WWW __cl_gen_to_be_invoked = (UnityEngine.WWW)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1)
                {
                    UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool threeD = LuaAPI.lua_toboolean(L, 2);

                    UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(threeD);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.AudioType>(L, 3))
                {
                    bool threeD = LuaAPI.lua_toboolean(L, 2);
                    UnityEngine.AudioType audioType; translator.Get(L, 3, out audioType);

                    UnityEngine.AudioClip __cl_gen_ret = __cl_gen_to_be_invoked.GetAudioClipCompressed(threeD, audioType);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WWW.GetAudioClipCompressed!"));
        }
All Usage Examples Of UnityEngine.WWW::GetAudioClipCompressed