SDL_AudioCVT



SDL_AudioCVT

NAME
STRUCTURE DEFINITION
STRUCTURE DATA
DESCRIPTION
SEE ALSO

NAME

SDL_AudioCVT − Audio Conversion Structure

STRUCTURE DEFINITION

typedef struct{
  int needed;
  Uint16 src_format;
  Uint16 dest_format;
  double rate_incr;
  Uint8 *buf;
  int len;
  int len_cvt;
  int len_mult;
  double len_ratio;
  void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
  int filter_index;
} SDL_AudioCVT;

STRUCTURE DATA

needed

Set to one if the conversion is possible

src_format

Audio format of the source

dest_format

Audio format of the destination

rate_incr

Rate conversion increment

buf

Audio buffer

len

Length of the original audio buffer in bytes

len_cvt

Length of converted audio buffer in bytes (calculated)

len_mult

buf must be len*len_mult bytes in size(calculated)

len_ratio

Final audio size is len*len_ratio

filters[10](..)

Pointers to functions needed for this conversion

filter_index

Current conversion function

DESCRIPTION

The SDL_AudioCVT is used to convert audio data between different formats. A SDL_AudioCVT structure is created with the SDL_BuildAudioCVT function, while the actual conversion is done by the SDL_ConvertAudio function.

Many of the fields in the SDL_AudioCVT structure should be considered private and their function will not be discussed here.
Uint8 *buf

int len

int len_mult
double len_ratio

SEE ALSO

SDL_BuildAudioCVT, SDL_ConvertAudio, SDL_AudioSpec



More Linux Commands

manpages/perlreguts.1.html
perlreguts(1) - Description of the Perl regular expression e
This document is an attempt to shine some light on the guts of the regex engine and how it works. The regex engine represents a significant chunk of the perl co

manpages/XGetErrorDatabaseText.3.html
XGetErrorDatabaseText(3) - default error handlers (ManPage)
Xlib generally calls the programs supplied error handler whenever an error is received. It is not called on BadName errors from OpenFont, LookupColor, or AllocN

manpages/git-fsck-objects.1.html
git-fsck-objects(1) - Verifies the connectivity and validity
This is a synonym for git-fsck(1). Please refer to the documentation of that command. GIT Part of the git(1) suite git-fsck-objects.1 (Commands - Linux manual

manpages/Tcl_GetEnsembleFlags.3.html
Tcl_GetEnsembleFlags(3) - manipulate ensemble commands......
An ensemble is a command, bound to some namespace, which consists of a collection of subcommands implemented by other Tcl commands. The first argument to the en

manpages/kexec_load.2.html
kexec_load(2) - load a new kernel for later execution.......
The kexec_load() system call loads a new kernel that can be executed later by reboot(2). The flags argument is a mask whose high-order bits control the operatio

manpages/gnutls_x509_crt_get_issuer_dn.3.html
gnutls_x509_crt_get_issuer_dn(3) - API function (Man Page)
This function will copy the name of the Certificate issuer in the provided buffer. The name will be in the form C=xxxx,O=yyyy,CN=zzzz as described in RFC2253. T

manpages/Tcl_LimitGetCommands.3.html
Tcl_LimitGetCommands(3) - manage and check resource limits o
Tcls interpreter resource limit subsystem allows for close control over how much computation time a script may use, and is useful for cases where a program is d

manpages/XCreatePixmap.3.html
XCreatePixmap(3) - create or destroy pixmaps (Man Page).....
The XCreatePixmap function creates a pixmap of the width, height, and depth you specified and returns a pixmap ID that identifies it. It is valid to pass an Inp

manpages/xdr_pmaplist.3.html
xdr_pmaplist(3) - library routines for remote procedure call
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

manpages/gc-analyze.1.html
gc-analyze(1) - Analyze Garbage Collector (GC) memory dumps
gc-analyze prints an analysis of a GC memory dump to standard out. The memory dumps may be created by calling gnu.gcj.util.GCInfo.enumerate(String namePrefix) f

manpages/buffchan.8.html
buffchan(8) - Buffered file-writing backend for INN.........
buffchan reads lines from standard input and copies the initial fields in each line to the files named by the remaining fields on the line. buffchan is intended

manpages/XML::SAX::DocumentLocator.3pm.html
XML::SAX::DocumentLocator(3pm) - Helper class for document l
This module gives you a tied hash reference that calls the specified closures when asked for PublicId, SystemId, LineNumber and ColumnNumber. It is useful for w





We can't live, work or learn in freedom unless the software we use is free.