NAME

SDL2::AudioCVT - The Structure that Holds a Set of Audio Conversion Filters

SYNOPSIS

use SDL2 qw[:all];
# TODO: I need to whip up a quick example

DESCRIPTION

SDL2::AudioCVT is a structure to hold a set of audio conversion filters and buffers.

Note that various parts of the conversion pipeline can take advantage of SIMD operations (like SSE2, for example). SDL2::AudioCVT doesn't require you to pass it aligned data, but can possibly run much faster if you set both its (buf) field to a pointer that is aligned to 16 bytes, and its (len) field to something that's a multiple of 16, if possible.

Fields

needed - Set to 1 if conversion possible
src_format - Source audio format
dst_format - Target audio format
rate_incr - Rate conversion increment
buf - Buffer to hold entire audio data
len - Length of original audio buffer
len_cvt - Length of converted audio buffer
len_mult - Buffer must be len * len_mult big
len_ratio - Given len, final size is len * len_ratio
filters - List of filter functions
filter_index - Current audio conversion function

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>