readded ability to set loop offset in seconds, closes #9630

This commit is contained in:
Juan Linietsky
2017-08-22 11:47:24 -03:00
parent e54c4028ef
commit 8ad7139631
3 changed files with 21 additions and 1 deletions

View File

@ -89,6 +89,7 @@ class AudioStreamOGGVorbis : public AudioStream {
int channels;
float length;
bool loop;
float loop_offset;
protected:
static void _bind_methods();
@ -97,6 +98,9 @@ public:
void set_loop(bool p_enable);
bool has_loop() const;
void set_loop_offset(float p_seconds);
float get_loop_offset() const;
virtual Ref<AudioStreamPlayback> instance_playback();
virtual String get_stream_name() const;