Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2009-11-17 21:24:28
Size: 1141
Editor: SheenaSmith
Comment: create page, add content
Revision 2 as of 2009-11-19 06:37:57
Size: 1183
Editor: SheenaSmith
Comment: edit content
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
||'''src'''||points to the source audio buffers to be mixed||
||'''format'''||the specified audio format||
||'''len'''||defines the length of the audio buffers in bytes||
||'''volume'''||ranges from 0 - 128, and should be set to ::SDL_MIX_MAXVOLUME for full audio volume||
||'''src'''||points to the source audio buffer to be mixed||
||'''format'''||the specified audio format; see [[SDL_AudioFormat]] for more information||
||'''len'''||defines the length of the audio buffer in bytes||
||'''volume'''||ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME for full audio volume||

SDL_MixAudioFormat

Use this function to mix audio data in a specified format.

Syntax

void SDL_MixAudioFormat(Uint8*          dst,
                        const Uint8*    src,
                        SDL_AudioFormat format,
                        Uint32          len, 
                        int             volume)

Function Parameters

dst

points to the destination for the mixed audio

src

points to the source audio buffer to be mixed

format

the specified audio format; see SDL_AudioFormat for more information

len

defines the length of the audio buffer in bytes

volume

ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME for full audio volume

Code Examples

You can add your code example here

Remarks

This works like SDL_MixAudio(), but you specify the audio format instead of using the format of audio device 1. Thus it can be used when no audio device is open at all.

None: SDL_MixAudioFormat (last edited 2015-01-02 21:15:47 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit