PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/pods/SDL/Mixer/MixChunk.pod

http://github.com/PerlGameDev/SDL
Unknown | 42 lines | 22 code | 20 blank | 0 comment | 0 complexity | 82fcc302b107b4459c6104c887312a71 MD5 | raw file
 1
 2=pod
 3
 4=head1 NAME
 5
 6SDL::Mixer::MixChunk -- SDL Bindings for structure SDL_MixChunk
 7
 8=head1 CATEGORY
 9
10Mixer, Structure
11
12=head1 SYNOPSIS
13
14 use SDL;
15 use SDL::Mixer::MixChunk;
16
17 my $mix_chunk = SDL::Mixer::Music::load_WAV('sample.wav');
18
19 printf("length of audio data is %d bytes\n", $mix_chunk->alen);
20 printf("volume is %d\n",                     $mix_chunk->volume);
21
22=head1 DESCRIPTION
23
24Stores audio data in memory.
25
26B<Note:> It's a bad idea to free a chunk that is still being played...
27
28=head1 METHODS
29
30=head2 alen
31
32length of audio data in bytes
33
34=head2 volume
35
36Per-sample volume, 0-128 (normally C<MIX_MAX_VOLUME> after loading)
37
38=head1 AUTHORS
39
40See L<SDL/AUTHORS>.
41
42=cut