Home ··· Articles ··· Documentation ··· Dev ··· Irc ··· Download ··· About

Index


NAME

Top

SDL::Mixer::MixChunk -- SDL Bindings for structure SDL_MixChunk

CATEGORY

Top

Mixer, Structure

SYNOPSIS

Top

 use SDL;
 use SDL::Mixer::MixChunk;

 my $mix_chunk = SDL::Mixer::Music::load_WAV('sample.wav');

 printf("length of audio data is %d bytes\n", $mix_chunk->alen);
 printf("volume is %d\n",                     $mix_chunk->volume);

DESCRIPTION

Top

Stores audio data in memory.

Note: It's a bad idea to free a chunk that is still being played...

METHODS

Top

alen

length of audio data in bytes

volume

Per-sample volume, 0-128 (normally MIX_MAX_VOLUME after loading)

AUTHORS

Top

©2009. designed by FROGGS, hosted by mst, maintained by kthakore