forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_samplelibrary
reduz edited this page Apr 10, 2014
·
10 revisions
####Inherits: Resource ####Category: Core
Library that contains a collection of Samples.
- void add_sample ( String name, Sample sample )
- Sample get_sample ( String name ) const
- bool has_sample ( String name ) const
- void remove_sample ( String name )
- void sample_set_volume_db ( String name, float db )
- float sample_get_volume_db ( String name ) const
- void sample_set_pitch_scale ( String name, float pitch )
- float sample_get_pitch_scale ( String name ) const
Library that contains a collection of Samples, each identified by an text id. This is used as a data containeer for the majority of the SamplePlayer classes and derivatives.
Add a sample to the library, with a given text id;
Return a sample from the library, from a given text-id. Return null if the sample is not found.
Return true if the sample text id exists in the library.
- void remove_sample ( String name )
Remove a sample given a specific text id.