Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2009-11-19 06:40:21
Size: 1187
Editor: SheenaSmith
Comment: edit content
Revision 4 as of 2009-11-24 21:29:12
Size: 1231
Editor: SheenaSmith
Comment: add categories
Deletions are marked like this. Additions are marked like this.
Line 35: Line 35:

----
[[CategoryAPI]], [[CategoryAudio]]

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 the default audio device. Thus it can be used when no audio device is open at all.


CategoryAPI, CategoryAudio

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