Rename pos to position in user facing methods and variables
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
This commit is contained in:
@ -178,9 +178,9 @@ int AudioStreamPlaybackRandomPitch::get_loop_count() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
float AudioStreamPlaybackRandomPitch::get_pos() const {
|
||||
float AudioStreamPlaybackRandomPitch::get_position() const {
|
||||
if (playing.is_valid()) {
|
||||
return playing->get_pos();
|
||||
return playing->get_position();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -45,7 +45,7 @@ public:
|
||||
|
||||
virtual int get_loop_count() const = 0; //times it looped
|
||||
|
||||
virtual float get_pos() const = 0;
|
||||
virtual float get_position() const = 0;
|
||||
virtual void seek_pos(float p_time) = 0;
|
||||
|
||||
virtual void mix(AudioFrame *p_bufer, float p_rate_scale, int p_frames) = 0;
|
||||
@ -133,7 +133,7 @@ public:
|
||||
|
||||
virtual int get_loop_count() const; //times it looped
|
||||
|
||||
virtual float get_pos() const;
|
||||
virtual float get_position() const;
|
||||
virtual void seek_pos(float p_time);
|
||||
|
||||
virtual void mix(AudioFrame *p_bufer, float p_rate_scale, int p_frames);
|
||||
|
||||
Reference in New Issue
Block a user