AudioStreamPlayback

Inherits: RefCounted < Object

Inherited By: AudioStreamPlaybackResampled

Meta class for playing back audio.

Description

Can play, loop, pause a scroll through audio. See AudioStream and AudioStreamOGGVorbis for usage.

Methods

int

_get_loop_count ( ) virtual const

float

_get_playback_position ( ) virtual const

bool

_is_playing ( ) virtual const

int

_mix ( AudioFrame* buffer, float rate_scale, int frames ) virtual

void

_seek ( float position ) virtual

void

_start ( float from_pos ) virtual

void

_stop ( ) virtual

Method Descriptions

  • int _get_loop_count ( ) virtual const


  • float _get_playback_position ( ) virtual const


  • bool _is_playing ( ) virtual const


  • int _mix ( AudioFrame* buffer, float rate_scale, int frames ) virtual


  • void _seek ( float position ) virtual


  • void _start ( float from_pos ) virtual


  • void _stop ( ) virtual