home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_MixAudio.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  1.8 KB  |  52 lines

  1. <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
  2. <!-- available at http://polyglotman.sourceforge.net/ -->
  3.  
  4. <html>
  5. <head>
  6. <title>"SDL_MixAudio"("3") manual page</title>
  7. </head>
  8. <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
  9. <a href='#toc'>Table of Contents</a><p>
  10.  
  11. <h2><a name='sect0' href='#toc0'>Name</a></h2>
  12. SDL_MixAudio- Mix audio data 
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <p>
  15. <b>#include "SDL.h" <p>
  16. </b><b>void <b>SDL_MixAudio</b></b>(<b>Uint8
  17. *dst, Uint8 *src, Uint32 len, int volume</b>); 
  18. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  19. <p>
  20. This function takes
  21. two audio buffers of <b>len</b> bytes each of the playing audio format and mixes
  22. them, performing addition, volume adjustment, and overflow clipping. The
  23. <b>volume</b> ranges from 0 to <b>SDL_MIX_MAXVOLUME</b> and should be set to the maximum
  24. value for full audio volume. Note this does not change hardware volume. This
  25. is provided for convenience -- you can mix your own audio data. <p>
  26. <blockquote><b>Note:   <p>
  27. Do
  28. not use this function for mixing together more than two streams of sample
  29. data. The output from repeated application of this function may be distorted
  30. by clipping, because there is no accumulator with greater range than the
  31. input (not to mention this being an inefficient way of doing it). Use mixing
  32. functions from SDL_mixer, OpenAL, or write your own mixer instead. </blockquote>
  33.  
  34. <h2><a name='sect3' href='#toc3'></b>See Also</a></h2>
  35. <p>
  36. <i><b>SDL_OpenAudio</b></i>
  37.  
  38. <!--
  39.   
  40.  <p>
  41.  
  42. <hr><p>
  43. <a name='toc'><b>Table of Contents</b></a><p>
  44. <ul>
  45. <li><a name='toc0' href='#sect0'>Name</a></li>
  46. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  47. <li><a name='toc2' href='#sect2'>Description</a></li>
  48. <li><a name='toc3' href='#sect3'>See Also</a></li>
  49. </ul>
  50. </body>
  51. </html>
  52.