diff options
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"); |