Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

AudioStreamPlayback

Inherits: RefCounted < Object

Inherited By: AudioStreamPlaybackPolyphonic, AudioStreamPlaybackResampled

Meta class for playing back audio.

描述

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

void

_tag_used_streams ( ) virtual


Method Descriptions

int _get_loop_count ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _get_playback_position ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


bool _is_playing ( ) virtual const

There is currently no description for this method. Please help us by contributing one!


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

There is currently no description for this method. Please help us by contributing one!


void _seek ( float position ) virtual

There is currently no description for this method. Please help us by contributing one!


void _start ( float from_pos ) virtual

There is currently no description for this method. Please help us by contributing one!


void _stop ( ) virtual

There is currently no description for this method. Please help us by contributing one!


void _tag_used_streams ( ) virtual

There is currently no description for this method. Please help us by contributing one!