CPSample_ID CPMixerImpl::get_voice_sample_id(int p_voice_index) { Voice &v=voices[p_voice_index]; ERR_FAIL_COND_V(v.channel==AudioMixer::INVALID_CHANNEL,CPSample_ID()); return v.sample; }
void CPSample::reset() { name[0]=0; default_volume=64; global_volume=64; pan_enabled=false; pan=32; vibrato_type=VIBRATO_SINE; vibrato_speed=0; vibrato_depth=0; vibrato_rate=0; if (!id.is_null() && CPSampleManager::get_singleton()) CPSampleManager::get_singleton()->destroy( id ); id=CPSample_ID(); }