First commit

This commit is contained in:
2021-03-07 05:58:59 +01:00
committed by Andreas Schaafsma
commit 6e1a5f9fe5
18475 changed files with 3309357 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_openfl_media_ID3Info
#define INCLUDED_openfl_media_ID3Info
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_STACK_FRAME(_hx_pos_93e4eccf60244a3a_51_new)
HX_DECLARE_CLASS2(openfl,media,ID3Info)
namespace openfl{
namespace media{
class HXCPP_CLASS_ATTRIBUTES ID3Info_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef ID3Info_obj OBJ_;
ID3Info_obj();
public:
enum { _hx_ClassId = 0x12b63a6e };
void __construct();
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="openfl.media.ID3Info")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"openfl.media.ID3Info"); }
inline static hx::ObjectPtr< ID3Info_obj > __new() {
hx::ObjectPtr< ID3Info_obj > __this = new ID3Info_obj();
__this->__construct();
return __this;
}
inline static hx::ObjectPtr< ID3Info_obj > __alloc(hx::Ctx *_hx_ctx) {
ID3Info_obj *__this = (ID3Info_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(ID3Info_obj), true, "openfl.media.ID3Info"));
*(void **)__this = ID3Info_obj::_hx_vtable;
{
HX_STACKFRAME(&_hx_pos_93e4eccf60244a3a_51_new)
}
return __this;
}
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~ID3Info_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("ID3Info",86,60,e7,99); }
::String album;
::String artist;
::String comment;
::String genre;
::String songName;
::String track;
::String year;
};
} // end namespace openfl
} // end namespace media
#endif /* INCLUDED_openfl_media_ID3Info */

View File

@@ -0,0 +1,110 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_openfl_media_Sound
#define INCLUDED_openfl_media_Sound
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_openfl_events_EventDispatcher
#include <openfl/events/EventDispatcher.h>
#endif
HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS2(lime,app,Future)
HX_DECLARE_CLASS2(lime,media,AudioBuffer)
HX_DECLARE_CLASS2(openfl,events,EventDispatcher)
HX_DECLARE_CLASS2(openfl,events,IEventDispatcher)
HX_DECLARE_CLASS2(openfl,media,ID3Info)
HX_DECLARE_CLASS2(openfl,media,Sound)
HX_DECLARE_CLASS2(openfl,media,SoundChannel)
HX_DECLARE_CLASS2(openfl,media,SoundLoaderContext)
HX_DECLARE_CLASS2(openfl,media,SoundTransform)
HX_DECLARE_CLASS2(openfl,net,URLRequest)
HX_DECLARE_CLASS2(openfl,utils,ByteArrayData)
HX_DECLARE_CLASS2(openfl,utils,IDataInput)
HX_DECLARE_CLASS2(openfl,utils,IDataOutput)
namespace openfl{
namespace media{
class HXCPP_CLASS_ATTRIBUTES Sound_obj : public ::openfl::events::EventDispatcher_obj
{
public:
typedef ::openfl::events::EventDispatcher_obj super;
typedef Sound_obj OBJ_;
Sound_obj();
public:
enum { _hx_ClassId = 0x16cac3db };
void __construct( ::openfl::net::URLRequest stream, ::openfl::media::SoundLoaderContext context);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="openfl.media.Sound")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"openfl.media.Sound"); }
static hx::ObjectPtr< Sound_obj > __new( ::openfl::net::URLRequest stream, ::openfl::media::SoundLoaderContext context);
static hx::ObjectPtr< Sound_obj > __alloc(hx::Ctx *_hx_ctx, ::openfl::net::URLRequest stream, ::openfl::media::SoundLoaderContext context);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~Sound_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
static bool __GetStatic(const ::String &inString, Dynamic &outValue, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("Sound",af,fc,f9,13); }
static ::openfl::media::Sound fromAudioBuffer( ::lime::media::AudioBuffer buffer);
static ::Dynamic fromAudioBuffer_dyn();
static ::openfl::media::Sound fromFile(::String path);
static ::Dynamic fromFile_dyn();
static ::lime::app::Future loadFromFile(::String path);
static ::Dynamic loadFromFile_dyn();
static ::lime::app::Future loadFromFiles(::Array< ::String > paths);
static ::Dynamic loadFromFiles_dyn();
int bytesLoaded;
int bytesTotal;
bool isBuffering;
::String url;
::lime::media::AudioBuffer _hx___buffer;
void close();
::Dynamic close_dyn();
void load( ::openfl::net::URLRequest stream, ::openfl::media::SoundLoaderContext context);
::Dynamic load_dyn();
void loadCompressedDataFromByteArray( ::openfl::utils::ByteArrayData bytes,int bytesLength);
::Dynamic loadCompressedDataFromByteArray_dyn();
void loadPCMFromByteArray( ::openfl::utils::ByteArrayData bytes,int samples,::String format,hx::Null< bool > stereo,hx::Null< Float > sampleRate);
::Dynamic loadPCMFromByteArray_dyn();
::openfl::media::SoundChannel play(hx::Null< Float > startTime,hx::Null< int > loops, ::openfl::media::SoundTransform sndTransform);
::Dynamic play_dyn();
::openfl::media::ID3Info get_id3();
::Dynamic get_id3_dyn();
int get_length();
::Dynamic get_length_dyn();
void AudioBuffer_onURLLoad( ::lime::media::AudioBuffer buffer);
::Dynamic AudioBuffer_onURLLoad_dyn();
};
} // end namespace openfl
} // end namespace media
#endif /* INCLUDED_openfl_media_Sound */

View File

@@ -0,0 +1,88 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_openfl_media_SoundChannel
#define INCLUDED_openfl_media_SoundChannel
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_openfl_events_EventDispatcher
#include <openfl/events/EventDispatcher.h>
#endif
HX_DECLARE_CLASS2(lime,media,AudioSource)
HX_DECLARE_CLASS2(openfl,events,EventDispatcher)
HX_DECLARE_CLASS2(openfl,events,IEventDispatcher)
HX_DECLARE_CLASS2(openfl,media,SoundChannel)
HX_DECLARE_CLASS2(openfl,media,SoundTransform)
namespace openfl{
namespace media{
class HXCPP_CLASS_ATTRIBUTES SoundChannel_obj : public ::openfl::events::EventDispatcher_obj
{
public:
typedef ::openfl::events::EventDispatcher_obj super;
typedef SoundChannel_obj OBJ_;
SoundChannel_obj();
public:
enum { _hx_ClassId = 0x1b643044 };
void __construct( ::lime::media::AudioSource source, ::openfl::media::SoundTransform soundTransform);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="openfl.media.SoundChannel")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"openfl.media.SoundChannel"); }
static hx::ObjectPtr< SoundChannel_obj > __new( ::lime::media::AudioSource source, ::openfl::media::SoundTransform soundTransform);
static hx::ObjectPtr< SoundChannel_obj > __alloc(hx::Ctx *_hx_ctx, ::lime::media::AudioSource source, ::openfl::media::SoundTransform soundTransform);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~SoundChannel_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("SoundChannel",d4,af,1c,a9); }
Float leftPeak;
Float rightPeak;
bool _hx___isValid;
::openfl::media::SoundTransform _hx___soundTransform;
::lime::media::AudioSource _hx___source;
void stop();
::Dynamic stop_dyn();
void _hx___dispose();
::Dynamic _hx___dispose_dyn();
void _hx___updateTransform();
::Dynamic _hx___updateTransform_dyn();
Float get_position();
::Dynamic get_position_dyn();
Float set_position(Float value);
::Dynamic set_position_dyn();
::openfl::media::SoundTransform get_soundTransform();
::Dynamic get_soundTransform_dyn();
::openfl::media::SoundTransform set_soundTransform( ::openfl::media::SoundTransform value);
::Dynamic set_soundTransform_dyn();
void source_onComplete();
::Dynamic source_onComplete_dyn();
};
} // end namespace openfl
} // end namespace media
#endif /* INCLUDED_openfl_media_SoundChannel */

View File

@@ -0,0 +1,72 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_openfl_media_SoundLoaderContext
#define INCLUDED_openfl_media_SoundLoaderContext
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_STACK_FRAME(_hx_pos_baeaab40d0a56ac0_148_new)
HX_DECLARE_CLASS2(openfl,media,SoundLoaderContext)
namespace openfl{
namespace media{
class HXCPP_CLASS_ATTRIBUTES SoundLoaderContext_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef SoundLoaderContext_obj OBJ_;
SoundLoaderContext_obj();
public:
enum { _hx_ClassId = 0x44beed41 };
void __construct(hx::Null< Float > __o_bufferTime,hx::Null< bool > __o_checkPolicyFile);
inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="openfl.media.SoundLoaderContext")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,false,"openfl.media.SoundLoaderContext"); }
inline static hx::ObjectPtr< SoundLoaderContext_obj > __new(hx::Null< Float > __o_bufferTime,hx::Null< bool > __o_checkPolicyFile) {
hx::ObjectPtr< SoundLoaderContext_obj > __this = new SoundLoaderContext_obj();
__this->__construct(__o_bufferTime,__o_checkPolicyFile);
return __this;
}
inline static hx::ObjectPtr< SoundLoaderContext_obj > __alloc(hx::Ctx *_hx_ctx,hx::Null< Float > __o_bufferTime,hx::Null< bool > __o_checkPolicyFile) {
SoundLoaderContext_obj *__this = (SoundLoaderContext_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(SoundLoaderContext_obj), false, "openfl.media.SoundLoaderContext"));
*(void **)__this = SoundLoaderContext_obj::_hx_vtable;
{
Float bufferTime = __o_bufferTime.Default(1000);
bool checkPolicyFile = __o_checkPolicyFile.Default(false);
HX_STACKFRAME(&_hx_pos_baeaab40d0a56ac0_148_new)
HXLINE( 149) ( ( ::openfl::media::SoundLoaderContext)(__this) )->bufferTime = bufferTime;
HXLINE( 150) ( ( ::openfl::media::SoundLoaderContext)(__this) )->checkPolicyFile = checkPolicyFile;
}
return __this;
}
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~SoundLoaderContext_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("SoundLoaderContext",ed,bf,f5,97); }
Float bufferTime;
bool checkPolicyFile;
};
} // end namespace openfl
} // end namespace media
#endif /* INCLUDED_openfl_media_SoundLoaderContext */

View File

@@ -0,0 +1,87 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_openfl_media_SoundMixer
#define INCLUDED_openfl_media_SoundMixer
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(openfl,events,EventDispatcher)
HX_DECLARE_CLASS2(openfl,events,IEventDispatcher)
HX_DECLARE_CLASS2(openfl,media,SoundChannel)
HX_DECLARE_CLASS2(openfl,media,SoundMixer)
HX_DECLARE_CLASS2(openfl,media,SoundTransform)
namespace openfl{
namespace media{
class HXCPP_CLASS_ATTRIBUTES SoundMixer_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef SoundMixer_obj OBJ_;
SoundMixer_obj();
public:
enum { _hx_ClassId = 0x41efa64a };
void __construct();
inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="openfl.media.SoundMixer")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,false,"openfl.media.SoundMixer"); }
inline static hx::ObjectPtr< SoundMixer_obj > __new() {
hx::ObjectPtr< SoundMixer_obj > __this = new SoundMixer_obj();
__this->__construct();
return __this;
}
inline static hx::ObjectPtr< SoundMixer_obj > __alloc(hx::Ctx *_hx_ctx) {
SoundMixer_obj *__this = (SoundMixer_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(SoundMixer_obj), false, "openfl.media.SoundMixer"));
*(void **)__this = SoundMixer_obj::_hx_vtable;
return __this;
}
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~SoundMixer_obj();
HX_DO_RTTI_ALL;
static bool __GetStatic(const ::String &inString, Dynamic &outValue, hx::PropertyAccess inCallProp);
static bool __SetStatic(const ::String &inString, Dynamic &ioValue, hx::PropertyAccess inCallProp);
static void __register();
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("SoundMixer",da,21,66,68); }
static void __boot();
static int MAX_ACTIVE_CHANNELS;
static int bufferTime;
static ::Array< ::Dynamic> _hx___soundChannels;
static ::openfl::media::SoundTransform _hx___soundTransform;
static bool areSoundsInaccessible();
static ::Dynamic areSoundsInaccessible_dyn();
static void stopAll();
static ::Dynamic stopAll_dyn();
static void _hx___registerSoundChannel( ::openfl::media::SoundChannel soundChannel);
static ::Dynamic _hx___registerSoundChannel_dyn();
static void _hx___unregisterSoundChannel( ::openfl::media::SoundChannel soundChannel);
static ::Dynamic _hx___unregisterSoundChannel_dyn();
static ::openfl::media::SoundTransform get_soundTransform();
static ::Dynamic get_soundTransform_dyn();
static ::openfl::media::SoundTransform set_soundTransform( ::openfl::media::SoundTransform value);
static ::Dynamic set_soundTransform_dyn();
};
} // end namespace openfl
} // end namespace media
#endif /* INCLUDED_openfl_media_SoundMixer */

View File

@@ -0,0 +1,85 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_openfl_media_SoundTransform
#define INCLUDED_openfl_media_SoundTransform
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_STACK_FRAME(_hx_pos_b69a1b3bd673fa32_58_new)
HX_DECLARE_CLASS2(openfl,media,SoundTransform)
namespace openfl{
namespace media{
class HXCPP_CLASS_ATTRIBUTES SoundTransform_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef SoundTransform_obj OBJ_;
SoundTransform_obj();
public:
enum { _hx_ClassId = 0x00b0ff2d };
void __construct(hx::Null< Float > __o_vol,hx::Null< Float > __o_panning);
inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="openfl.media.SoundTransform")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,false,"openfl.media.SoundTransform"); }
inline static hx::ObjectPtr< SoundTransform_obj > __new(hx::Null< Float > __o_vol,hx::Null< Float > __o_panning) {
hx::ObjectPtr< SoundTransform_obj > __this = new SoundTransform_obj();
__this->__construct(__o_vol,__o_panning);
return __this;
}
inline static hx::ObjectPtr< SoundTransform_obj > __alloc(hx::Ctx *_hx_ctx,hx::Null< Float > __o_vol,hx::Null< Float > __o_panning) {
SoundTransform_obj *__this = (SoundTransform_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(SoundTransform_obj), false, "openfl.media.SoundTransform"));
*(void **)__this = SoundTransform_obj::_hx_vtable;
{
Float vol = __o_vol.Default(1);
Float panning = __o_panning.Default(0);
HX_STACKFRAME(&_hx_pos_b69a1b3bd673fa32_58_new)
HXLINE( 59) ( ( ::openfl::media::SoundTransform)(__this) )->volume = vol;
HXLINE( 60) ( ( ::openfl::media::SoundTransform)(__this) )->pan = panning;
HXLINE( 61) ( ( ::openfl::media::SoundTransform)(__this) )->leftToLeft = ( (Float)(0) );
HXLINE( 62) ( ( ::openfl::media::SoundTransform)(__this) )->leftToRight = ( (Float)(0) );
HXLINE( 63) ( ( ::openfl::media::SoundTransform)(__this) )->rightToLeft = ( (Float)(0) );
HXLINE( 64) ( ( ::openfl::media::SoundTransform)(__this) )->rightToRight = ( (Float)(0) );
}
return __this;
}
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~SoundTransform_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("SoundTransform",bd,82,34,cd); }
static void __boot();
static ::Dynamic __meta__;
Float leftToLeft;
Float leftToRight;
Float pan;
Float rightToLeft;
Float rightToRight;
Float volume;
::openfl::media::SoundTransform clone();
::Dynamic clone_dyn();
};
} // end namespace openfl
} // end namespace media
#endif /* INCLUDED_openfl_media_SoundTransform */