W3cubDocs

/Godot 2.1

SoundPlayer2D

Inherits: Node2D < CanvasItem < Node < Object

Inherited By: SamplePlayer2D

Category: Core

Brief Description

Base class for playing spatial 2D sound.

Member Functions

float get_param ( int param ) const
void set_param ( int param, float value )

Numeric Constants

  • PARAM_VOLUME_DB = 0
  • PARAM_PITCH_SCALE = 1
  • PARAM_ATTENUATION_MIN_DISTANCE = 2
  • PARAM_ATTENUATION_MAX_DISTANCE = 3
  • PARAM_ATTENUATION_DISTANCE_EXP = 4
  • PARAM_MAX = 5

Description

Base class for playing spatial 2D sound.

Member Function Description

float get_param ( int param ) const

void set_param ( int param, float value )

© 2014–2017 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/2.1/classes/class_soundplayer2d.html