1 /**
2 
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.audioeffectrecord;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.meta;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.object;
22 import godot.classdb;
23 import godot.audioeffect;
24 import godot.audiostreamsample;
25 import godot.resource;
26 import godot.reference;
27 /**
28 
29 */
30 @GodotBaseClass struct AudioEffectRecord
31 {
32 	enum string _GODOT_internal_name = "AudioEffectRecord";
33 public:
34 @nogc nothrow:
35 	union { godot_object _godot_object; AudioEffect _GODOT_base; }
36 	alias _GODOT_base this;
37 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
38 	package(godot) __gshared bool _classBindingInitialized = false;
39 	package(godot) static struct _classBinding
40 	{
41 		__gshared:
42 		@GodotName("set_recording_active") GodotMethod!(void, bool) setRecordingActive;
43 		@GodotName("is_recording_active") GodotMethod!(bool) isRecordingActive;
44 		@GodotName("set_format") GodotMethod!(void, long) setFormat;
45 		@GodotName("get_format") GodotMethod!(AudioStreamSample.Format) getFormat;
46 		@GodotName("get_recording") GodotMethod!(AudioStreamSample) getRecording;
47 	}
48 	bool opEquals(in AudioEffectRecord other) const { return _godot_object.ptr is other._godot_object.ptr; }
49 	AudioEffectRecord opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
50 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
51 	mixin baseCasts;
52 	static AudioEffectRecord _new()
53 	{
54 		static godot_class_constructor constructor;
55 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("AudioEffectRecord");
56 		if(constructor is null) return typeof(this).init;
57 		return cast(AudioEffectRecord)(constructor());
58 	}
59 	@disable new(size_t s);
60 	/**
61 	
62 	*/
63 	void setRecordingActive(in bool record)
64 	{
65 		checkClassBinding!(typeof(this))();
66 		ptrcall!(void)(_classBinding.setRecordingActive, _godot_object, record);
67 	}
68 	/**
69 	
70 	*/
71 	bool isRecordingActive() const
72 	{
73 		checkClassBinding!(typeof(this))();
74 		return ptrcall!(bool)(_classBinding.isRecordingActive, _godot_object);
75 	}
76 	/**
77 	
78 	*/
79 	void setFormat(in long format)
80 	{
81 		checkClassBinding!(typeof(this))();
82 		ptrcall!(void)(_classBinding.setFormat, _godot_object, format);
83 	}
84 	/**
85 	
86 	*/
87 	AudioStreamSample.Format getFormat() const
88 	{
89 		checkClassBinding!(typeof(this))();
90 		return ptrcall!(AudioStreamSample.Format)(_classBinding.getFormat, _godot_object);
91 	}
92 	/**
93 	
94 	*/
95 	Ref!AudioStreamSample getRecording() const
96 	{
97 		checkClassBinding!(typeof(this))();
98 		return ptrcall!(AudioStreamSample)(_classBinding.getRecording, _godot_object);
99 	}
100 	/**
101 	
102 	*/
103 	@property AudioStreamSample.Format format()
104 	{
105 		return getFormat();
106 	}
107 	/// ditto
108 	@property void format(long v)
109 	{
110 		setFormat(v);
111 	}
112 }