SDL2::AudioCVT - The Structure that Holds a Set of Audio Conversion Filters
use SDL2 qw[:all]; # TODO: I need to whip up a quick example
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.
buf
len
needed
src_format
dst_format
rate_incr
len_cvt
len_mult
len * len_mult
len_ratio
len * len_ratio
filters
filter_index
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.
Sanko Robinson <sanko@cpan.org>
To install SDL2::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL2::FFI
CPAN shell
perl -MCPAN -e shell install SDL2::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.