comparison docs/html/guideaudioexamples.html @ 181:e5bc29de3f0a

Updated from the SDL Documentation Project
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Sep 2001 02:41:09 +0000
parents 55f1f1b3e27d
children 355632dca928
comparison
equal deleted inserted replaced
180:578815880307 181:e5bc29de3f0a
130 if ( audio_len == 0 ) 130 if ( audio_len == 0 )
131 return; 131 return;
132 132
133 /* Mix as much data as possible */ 133 /* Mix as much data as possible */
134 len = ( len &#62; audio_len ? audio_len : len ); 134 len = ( len &#62; audio_len ? audio_len : len );
135 SDL_MixAudio(stream, audio_pos, len, SDL_MIX_MAXVOLUME) 135 SDL_MixAudio(stream, audio_pos, len, SDL_MIX_MAXVOLUME);
136 audio_pos += len; 136 audio_pos += len;
137 audio_len -= len; 137 audio_len -= len;
138 } 138 }
139 139
140 /* Load the audio data ... */ 140 /* Load the audio data ... */