See also: destroy_sample, load_voc, load_wav, play_sample, save_sample, register_sample_file_type, Voice control.
See also: load_sample, register_sample_file_type.
See also: load_sample, register_sample_file_type.
See also: load_sample, register_sample_file_type.
See also: load_sample, destroy_sample.
See also: load_sample.
See also: load_sample, create_sample.
See also: load_sample, save_sample.
See also: install_sound, load_sample, adjust_sample, stop_sample, Voice control.
See also: play_sample.
See also: play_sample.
If you need more detailed control over how samples are played, you can use the lower level voice functions rather than just calling play_sample(). This is rather more work, because you have to explicitly allocate and free the voices rather than them being automatically released when they finish playing, but allows far more precise specification of exactly how you want everything to sound. You may also want to modify a couple of fields from the sample structure:
int priority; Ranging 0-255 (default 128), this controls how voices are allocated if you attempt to play more than the driver can handle. This may be used to ensure that the less important sounds are cut off while the important ones are preserved. unsigned long loop_start; unsigned long loop_end; Loop position in sample units, by default set to the start and end of the sample.
See also: install_sound, allocate_voice, deallocate_voice, reallocate_voice, release_voice, voice_start, voice_set_priority, voice_check, voice_set_position, voice_set_playmode, voice_set_volume, voice_set_frequency, voice_set_pan.
See also: Voice control, deallocate_voice, reallocate_voice, release_voice, load_sample.
See also: allocate_voice, voice_stop.
deallocate_voice(voice); voice = allocate_voice(sample);
See also: allocate_voice, deallocate_voice, load_sample.
See also: allocate_voice, deallocate_voice.
See also: Voice control, allocate_voice, voice_stop, release_voice.
See also: voice_start, deallocate_voice, release_voice.
See also: Voice control.
See also: allocate_voice, voice_start, voice_get_position.
See also: Voice control, voice_set_position.
See also: Voice control, voice_get_position, voice_set_playmode.
See also: Voice control.
See also: Voice control, voice_set_volume.
See also: Voice control, voice_get_volume, voice_ramp_volume.
See also: Voice control, voice_set_volume.
See also: voice_ramp_volume.
See also: Voice control, voice_set_frequency.
See also: Voice control, voice_get_frequency, voice_sweep_frequency.
See also: Voice control, voice_set_frequency.
See also: voice_sweep_frequency.
See also: Voice control, voice_set_pan.
See also: Voice control, voice_get_pan, voice_sweep_pan.
See also: Voice control, voice_set_pan.
See also: voice_sweep_pan.
See also: Voice control.
See also: Voice control.
See also: Voice control.