X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Mixer.html-inc;h=43e150ab8c4a2edd8d3771900fe904bd58aef7e5;hb=d5943b684b1240307fbf0a103abbf18dd93998f4;hp=f3bd5090f0ffd4d64f9f7fa3a00c90b059eebc75;hpb=3bc8c797322373e5107d166c9c3228eedf807af0;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Mixer.html-inc b/pages/SDL-Mixer.html-inc index f3bd509..43e150a 100644 --- a/pages/SDL-Mixer.html-inc +++ b/pages/SDL-Mixer.html-inc @@ -4,6 +4,7 @@
@@ -30,6 +31,72 @@

Mixer

+

CONSTANTS

Top

+
+

The constants are exported by default. You can avoid this by doing:

+
 use SDL::Mixer ();
+
+
+

and access them directly:

+
 SDL::Mixer::MIX_DEFAULT_FREQUENCY;
+
+
+

or by choosing the export tags below:

+

Export tag: ':init'

+
 MIX_INIT_FLAC
+ MIX_INIT_MOD
+ MIX_INIT_MP3
+ MIX_INIT_OGG
+
+
+

Export tag: ':defaults'

+
 MIX_CHANNELS
+ MIX_DEFAULT_FORMAT
+ MIX_DEFAULT_FREQUENCY
+ MIX_DEFAULT_CHANNELS
+ MIX_MAX_VOLUME
+ MIX_CHANNEL_POST
+
+
+

Export tag: ':fading'

+
 MIX_NO_FADING
+ MIX_FADING_OUT
+ MIX_FADING_IN
+
+
+

Export tag: ':type'

+
 MUS_NONE
+ MUS_CMD
+ MUS_WAV
+ MUS_MOD
+ MUS_MID
+ MUS_OGG
+ MUS_MP3
+ MUS_MP3_MAD
+ MUS_MP3_FLAC
+
+
+

Export tag: ':format'

+
 AUDIO_U8
+ AUDIO_S8
+ AUDIO_U16LSB
+ AUDIO_S16LSB
+ AUDIO_U16MSB
+ AUDIO_S16MSB
+ AUDIO_U16
+ AUDIO_S16 
+ AUDIO_U16SYS
+ AUDIO_S16SYS
+
+
+

Export tag: ':status'

+
 SDL_AUDIO_STOPPED
+ SDL_AUDIO_PLAYING
+ SDL_AUDIO_PAUSED
+
+
+ +

DESCRIPTION

Top

SDL::Mixer allows you to enable sound, alter music volume settings, and lets you play, pause and resume, as well as fading the sound and music @@ -110,7 +177,7 @@ error code when they fail. The result will be a horrible staticy noise. You can of SDL should take this parameter only as a hint, then read back the value that the OS (for example, OSS or ALSA) has chosen to use in case the desired audio type is not supported.

Note: When already initialized, this function will not re-initialize SDL_mixer, nor fail. It will merely increment the number of times -SDL::Mixer::close_audio must be called to actually get it to uninitialize. This serves as a very simplistic method for multiple application +SDL::Mixer::close_audio must be called to actually get it to uninitialize. This serves as a very simplistic method for multiple application components to use SDL_mixer without necessitating a great deal of inter-component awareness. Be warned however that in such a situation, the latest components to initialize SDL_mixer will probably not get the SDL_mixer settings they're expecting.

Example:

@@ -147,14 +214,14 @@ This function returns 1 as first array element (status) if the audio has been op
-

AUTHORS

Top

-
-

Tobias Leich [FROGGS]

- -

SEE ALSO

Top

-

perl, SDL::Mixer::Channels, SDL::Mixer::Effects, SDL::Mixer::Groups, SDL::Mixer::Music.

+

perl, SDL::Mixer::Channels, SDL::Mixer::Effects, SDL::Mixer::Groups, SDL::Mixer::Music.

+ +
+

AUTHORS

Top

+
+

See AUTHORS in SDL.

\ No newline at end of file