Module sample_resource

Module sample_resource 

Source

Structs§

DecodedAudio
A wrapper around symphonium::DecodedAudio which implements the SampleResource trait.
DecodedAudioF32
A wrapper around symphonium::DecodedAudioF32 which implements the SampleResource trait.
InterleavedResourceF32
InterleavedResourceI16
InterleavedResourceU16

Traits§

SampleResource
A resource of audio samples.
SampleResourceF32
A resource of audio samples stored as de-interleaved f32 values.
SampleResourceInfo
Trait returning information about a resource of audio samples

Functions§

decoded_f32_to_resource
A helper method to convert a symphonium::DecodedAudioF32 resource into a SampleResource.
decoded_to_resource
A helper method to convert a symphonium::DecodedAudio resource into a SampleResource.
fill_buffers_deinterleaved
A helper method to fill buffers from a resource of deinterleaved samples.
fill_buffers_deinterleaved_f32
A helper method to fill buffers from a resource of deinterleaved f32 samples.
fill_buffers_interleaved
A helper method to fill buffers from a resource of interleaved samples.
load_audio_file
A helper method to load an audio file from a path using Symphonium.
load_audio_file_from_source
A helper method to load an audio file from a custom source using Symphonium.
load_audio_file_from_source_stretched
A helper method to load an audio file from a custom source using Symphonium. This also stretches (pitch shifts) the sample by the given amount.
load_audio_file_stretched
A helper method to load an audio file from a path using Symphonium. This also stretches (pitch shifts) the sample by the given amount.
pcm_i16_to_f32
pcm_u16_to_f32