Mercurial > pygame
view docs/ref/pygame_sndarray.html @ 457:c7745825439b
trunc fix
| author | pygame |
|---|---|
| date | Mon, 12 May 2003 14:54:13 +0000 |
| parents | f4e6726b7d1d |
| children | 4c398dd9d49b |
line wrap: on
line source
<html> <title>pygame.sndarray</title> <body bgcolor=#aaeebb text=#000000 link=#331111 vlink=#331111> <table cellspacing=3 width=100%><tr><td bgcolor=#00000> <table width=100%><tr><td bgcolor=c2fc20 align=center> <a href=http://www.pygame.org> <img src=../pygame_tiny.gif border=0 width=200 height=60></a><br> <b>pygame documentation</b> </td><td bgcolor=6aee28 align=center valign=top width=100%> || <a href=http://www.pygame.org>Home</a> || <a href=../index.html>Help Contents</a> || <br> <br> || <a href=pygame.html>pygame</a> || <a href=pygame_cdrom.html>cdrom</a> || <a href=pygame_constants.html>constants</a> || <a href=pygame_display.html>display</a> || <a href=pygame_draw.html>draw</a> || <a href=pygame_event.html>event</a> ||<br> || <a href=pygame_font.html>font</a> || <a href=pygame_image.html>image</a> || <a href=pygame_joystick.html>joystick</a> || <a href=pygame_key.html>key</a> || <a href=pygame_mixer.html>mixer</a> || <a href=pygame_mixer_music.html>mixer_music</a> ||<br> || <a href=pygame_mouse.html>mouse</a> || <a href=pygame_movie.html>movie</a> || <a href=pygame_sndarray.html>sndarray</a> || <a href=pygame_surfarray.html>surfarray</a> || <a href=pygame_time.html>time</a> || <a href=pygame_transform.html>transform</a> ||<br> <br>|| <a href=CD.html>CD</a> || <a href=Channel.html>Channel</a> || <a href=Clock.html>Clock</a> || <a href=Font.html>Font</a> || <a href=Joystick.html>Joystick</a> || <a href=Movie.html>Movie</a> ||<br> || <a href=Rect.html>Rect</a> || <a href=Sound.html>Sound</a> || <a href=Surface.html>Surface</a> ||<br> <br>|| <a href=pygame_cursors.html>cursors</a> || <a href=pygame_sprite.html>sprite</a> ||<br> </td></tr></table></td></tr></table> <br> <h2 align=center>pygame.sndarray</h2> Contains routines for mixing numeric arrays with sounds <hr> <table> <tr><td><a href=#array>array</a></td><td> - get an array copied from a sound</td></tr> <tr><td><a href=#make_sound>make_sound</a></td><td> - create a new Sound object from array data</td></tr> <tr><td><a href=#samples>samples</a></td><td> - get a reference to the sound samples</td></tr> </table> <hr> <a name=array><font size=+2><b>array </b></font><br><font size=+1><tt> pygame.sndarray.array(Sound) -> Array </tt></font><ul> Creates an array with a copy of the sound data. </ul><br> <br> <a name=make_sound><font size=+2><b>make_sound </b></font><br><font size=+1><tt> pygame.sndarray.make_sound(array) -> Sound </tt></font><ul> Create a new playable Sound object from array data the Sound will be a copy of the array samples. <br> <br> The array must be 1-dimensional for mono sound, and. 2-dimensional for stereo. </ul><br> <br> <a name=samples><font size=+2><b>samples </b></font><br><font size=+1><tt> pygame.sndarray.samples(Surface) -> Array </tt></font><ul> This will return an array that directly references the samples in the array. </ul><br> <br> <hr> </body></html>
