SDL::Mixer::MixChunk(3pm)

SDL::Mixer::MixChunk3pm

Usage

 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);

Category

Mixer, Structure

Overview

Stores audio data in memory.

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

Methods

alen

length of audio data in bytes

volume

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Authors

See "AUTHORS" in SDL.

From libsdl-perl 2.548-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.