diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:47:24 +0100 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:50:02 +0100 |
commit | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch) | |
tree | a3c28058efb7a80faed23bff683fe0931859ed52 /scene/resources/audio_stream_sample.cpp | |
parent | bf64df4427836a4e7a5060ee11d75eea6da79b14 (diff) | |
download | redot-engine-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz |
Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer
This is a step towards fixing #56
Diffstat (limited to 'scene/resources/audio_stream_sample.cpp')
-rw-r--r-- | scene/resources/audio_stream_sample.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/scene/resources/audio_stream_sample.cpp b/scene/resources/audio_stream_sample.cpp index d9dd2396e0..297cec0c83 100644 --- a/scene/resources/audio_stream_sample.cpp +++ b/scene/resources/audio_stream_sample.cpp @@ -504,26 +504,26 @@ String AudioStreamSample::get_stream_name() const { void AudioStreamSample::_bind_methods() { - ClassDB::bind_method(_MD("set_format","format"),&AudioStreamSample::set_format); - ClassDB::bind_method(_MD("get_format"),&AudioStreamSample::get_format); + ClassDB::bind_method(D_METHOD("set_format","format"),&AudioStreamSample::set_format); + ClassDB::bind_method(D_METHOD("get_format"),&AudioStreamSample::get_format); - ClassDB::bind_method(_MD("set_loop_mode","loop_mode"),&AudioStreamSample::set_loop_mode); - ClassDB::bind_method(_MD("get_loop_mode"),&AudioStreamSample::get_loop_mode); + ClassDB::bind_method(D_METHOD("set_loop_mode","loop_mode"),&AudioStreamSample::set_loop_mode); + ClassDB::bind_method(D_METHOD("get_loop_mode"),&AudioStreamSample::get_loop_mode); - ClassDB::bind_method(_MD("set_loop_begin","loop_begin"),&AudioStreamSample::set_loop_begin); - ClassDB::bind_method(_MD("get_loop_begin"),&AudioStreamSample::get_loop_begin); + ClassDB::bind_method(D_METHOD("set_loop_begin","loop_begin"),&AudioStreamSample::set_loop_begin); + ClassDB::bind_method(D_METHOD("get_loop_begin"),&AudioStreamSample::get_loop_begin); - ClassDB::bind_method(_MD("set_loop_end","loop_end"),&AudioStreamSample::set_loop_end); - ClassDB::bind_method(_MD("get_loop_end"),&AudioStreamSample::get_loop_end); + ClassDB::bind_method(D_METHOD("set_loop_end","loop_end"),&AudioStreamSample::set_loop_end); + ClassDB::bind_method(D_METHOD("get_loop_end"),&AudioStreamSample::get_loop_end); - ClassDB::bind_method(_MD("set_mix_rate","mix_rate"),&AudioStreamSample::set_mix_rate); - ClassDB::bind_method(_MD("get_mix_rate"),&AudioStreamSample::get_mix_rate); + ClassDB::bind_method(D_METHOD("set_mix_rate","mix_rate"),&AudioStreamSample::set_mix_rate); + ClassDB::bind_method(D_METHOD("get_mix_rate"),&AudioStreamSample::get_mix_rate); - ClassDB::bind_method(_MD("set_stereo","stereo"),&AudioStreamSample::set_stereo); - ClassDB::bind_method(_MD("is_stereo"),&AudioStreamSample::is_stereo); + ClassDB::bind_method(D_METHOD("set_stereo","stereo"),&AudioStreamSample::set_stereo); + ClassDB::bind_method(D_METHOD("is_stereo"),&AudioStreamSample::is_stereo); - ClassDB::bind_method(_MD("set_data","data"),&AudioStreamSample::set_data); - ClassDB::bind_method(_MD("get_data"),&AudioStreamSample::get_data); + ClassDB::bind_method(D_METHOD("set_data","data"),&AudioStreamSample::set_data); + ClassDB::bind_method(D_METHOD("get_data"),&AudioStreamSample::get_data); ADD_PROPERTY(PropertyInfo(Variant::INT,"format",PROPERTY_HINT_ENUM,"8-Bit,16-Bit,IMA-ADPCM"),"set_format","get_format"); ADD_PROPERTY(PropertyInfo(Variant::INT,"loop_mode",PROPERTY_HINT_ENUM,"Disabled,Forward,Ping-Pong"),"set_loop_mode","get_loop_mode"); |