summaryrefslogtreecommitdiff
path: root/modules/opus
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-02 23:03:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-02 23:03:46 -0300
commit118eed485e8f928a5a0dab530ae93211afa10525 (patch)
tree83efb5cbcebb7046e5b64dfe1712475a7d3b7f14 /modules/opus
parentce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (diff)
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
Diffstat (limited to 'modules/opus')
-rw-r--r--modules/opus/audio_stream_opus.h4
-rw-r--r--modules/opus/register_types.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/opus/audio_stream_opus.h b/modules/opus/audio_stream_opus.h
index 68e15f188b..5093456ccd 100644
--- a/modules/opus/audio_stream_opus.h
+++ b/modules/opus/audio_stream_opus.h
@@ -40,7 +40,7 @@
class AudioStreamPlaybackOpus : public AudioStreamPlayback {
- OBJ_TYPE(AudioStreamPlaybackOpus,AudioStreamPlayback)
+ GDCLASS(AudioStreamPlaybackOpus,AudioStreamPlayback)
enum {
MIN_MIX=1024
@@ -115,7 +115,7 @@ public:
class AudioStreamOpus: public AudioStream {
- OBJ_TYPE(AudioStreamOpus,AudioStream)
+ GDCLASS(AudioStreamOpus,AudioStream)
String file;
public:
diff --git a/modules/opus/register_types.cpp b/modules/opus/register_types.cpp
index 9d9a707994..a177bc9463 100644
--- a/modules/opus/register_types.cpp
+++ b/modules/opus/register_types.cpp
@@ -36,7 +36,7 @@ void register_opus_types() {
opus_stream_loader = memnew( ResourceFormatLoaderAudioStreamOpus );
ResourceLoader::add_resource_format_loader(opus_stream_loader);
- ObjectTypeDB::register_type<AudioStreamOpus>();
+ ClassDB::register_class<AudioStreamOpus>();
}
void unregister_opus_types() {