GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
pods::SDL::Mixer::MixChunk(3) User Contributed Perl Documentation pods::SDL::Mixer::MixChunk(3)

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

Mixer, Structure

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

Stores audio data in memory.

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

length of audio data in bytes

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

See "AUTHORS" in SDL.
2022-06-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.