class_spatialsampleplayer - dragonsoulz/godot GitHub Wiki
SpatialSamplePlayer
####Inherits: SpatialPlayer ####Category: Core
Brief Description
Member Functions
- void set_sample_library ( SampleLibrary library )
- SampleLibrary get_sample_library ( ) const
- void set_polyphony ( int voices )
- int get_polyphony ( ) const
- int play ( String sample, int voice=-2 )
- void voice_set_pitch_scale ( int voice, float ratio )
- void voice_set_volume_scale_db ( int voice, float db )
- bool is_voice_active ( int voice ) const
- void stop_voice ( int voice )
- void stop_all ( )
Numeric Constants
- INVALID_VOICE = -1
- NEXT_VOICE = -2