summaryrefslogtreecommitdiff
path: root/modules/gdnative/include/videodecoder
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-12-30 14:05:05 -0300
committerGeorge Marques <george@gmarqu.es>2021-01-25 09:28:02 -0300
commit030d1d6a17f7356e771335a5908d0336a8adda95 (patch)
treefe4bf01990182467bdb6fbb6047c21249dcb61b6 /modules/gdnative/include/videodecoder
parentd39f6386ce3a7916dbb94fef5ff65e7599e060f0 (diff)
GDNative: New core API
This API now uses the discovery functions present in Variant instead of wrapping every built-in function. Users now need to query for function pointers and use those.
Diffstat (limited to 'modules/gdnative/include/videodecoder')
-rw-r--r--modules/gdnative/include/videodecoder/godot_videodecoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdnative/include/videodecoder/godot_videodecoder.h b/modules/gdnative/include/videodecoder/godot_videodecoder.h
index e5a2657997..dc2cf5ec07 100644
--- a/modules/gdnative/include/videodecoder/godot_videodecoder.h
+++ b/modules/gdnative/include/videodecoder/godot_videodecoder.h
@@ -49,11 +49,11 @@ typedef struct
const char *(*get_plugin_name)();
const char **(*get_supported_extensions)(int *count);
godot_bool (*open_file)(void *, void *); // data struct, and a FileAccess pointer
- godot_real (*get_length)(const void *);
- godot_real (*get_playback_position)(const void *);
- void (*seek)(void *, godot_real);
+ godot_float (*get_length)(const void *);
+ godot_float (*get_playback_position)(const void *);
+ void (*seek)(void *, godot_float);
void (*set_audio_track)(void *, godot_int);
- void (*update)(void *, godot_real);
+ void (*update)(void *, godot_float);
godot_packed_byte_array *(*get_videoframe)(void *);
godot_int (*get_audioframe)(void *, float *, int);
godot_int (*get_channels)(const void *);