|
Size: 1231
Comment: add categories
|
Size: 1296
Comment: update content - pointers, structs
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 19: | Line 19: |
| ||'''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|| |
||'''dst'''||the destination for the mixed audio|| ||'''src'''||the source audio buffer to be mixed|| ||'''format'''||the specified audio format; see [[SDL_AudioFormat]] for more information ''-or-'' the [[SDL_AudioFormat]] structure representing the desired audio format|| ||'''len'''||,,defines ,,the length of the audio buffer in bytes|| |
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 |
the destination for the mixed audio |
src |
the source audio buffer to be mixed |
format |
the specified audio format; see SDL_AudioFormat for more information -or- the SDL_AudioFormat structure representing the desired audio format |
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.
