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 possiblesrc_format
- Source audio formatdst_format
- Target audio formatrate_incr
- Rate conversion incrementbuf
- Buffer to hold entire audio datalen
- Length of original audio bufferlen_cvt
- Length of converted audio bufferlen_mult
- Buffer must belen * len_mult
biglen_ratio
- Givenlen
, final size islen * len_ratio
filters
- List of filter functionsfilter_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>