|
372
|
1 <html>
|
|
|
2 <title>pygame.sndarray</title>
|
|
|
3 <body bgcolor=#aaeebb text=#000000 link=#331111 vlink=#331111>
|
|
|
4
|
|
|
5
|
|
|
6 <table cellspacing=3 width=100%><tr><td bgcolor=#00000>
|
|
|
7 <table width=100%><tr><td bgcolor=c2fc20 align=center>
|
|
|
8 <a href=http://www.pygame.org>
|
|
|
9 <img src=../pygame_tiny.gif border=0 width=200 height=60></a><br>
|
|
|
10 <b>pygame documentation</b>
|
|
|
11 </td><td bgcolor=6aee28 align=center valign=top width=100%>
|
|
|
12
|
|
|
13 ||
|
|
|
14 <a href=http://www.pygame.org>Home</a> ||
|
|
|
15 <a href=../index.html>Help Contents</a> ||
|
|
|
16 <br> <br>
|
|
|
17
|
|
384
|
18 || <a href=pygame.html>pygame</a> ||
|
|
372
|
19 <a href=pygame_cdrom.html>cdrom</a> ||
|
|
|
20 <a href=pygame_constants.html>constants</a> ||
|
|
|
21 <a href=pygame_display.html>display</a> ||
|
|
384
|
22 <a href=pygame_draw.html>draw</a> ||
|
|
|
23 <a href=pygame_event.html>event</a> ||<br>
|
|
|
24 || <a href=pygame_font.html>font</a> ||
|
|
372
|
25 <a href=pygame_image.html>image</a> ||
|
|
|
26 <a href=pygame_joystick.html>joystick</a> ||
|
|
|
27 <a href=pygame_key.html>key</a> ||
|
|
384
|
28 <a href=pygame_mixer.html>mixer</a> ||
|
|
|
29 <a href=pygame_mixer_music.html>mixer_music</a> ||<br>
|
|
|
30 || <a href=pygame_mouse.html>mouse</a> ||
|
|
372
|
31 <a href=pygame_movie.html>movie</a> ||
|
|
|
32 <a href=pygame_sndarray.html>sndarray</a> ||
|
|
|
33 <a href=pygame_surfarray.html>surfarray</a> ||
|
|
384
|
34 <a href=pygame_time.html>time</a> ||
|
|
|
35 <a href=pygame_transform.html>transform</a> ||<br>
|
|
372
|
36 <br>|| <a href=CD.html>CD</a> ||
|
|
|
37 <a href=Channel.html>Channel</a> ||
|
|
|
38 <a href=Clock.html>Clock</a> ||
|
|
|
39 <a href=Font.html>Font</a> ||
|
|
|
40 <a href=Joystick.html>Joystick</a> ||
|
|
|
41 <a href=Movie.html>Movie</a> ||<br>
|
|
|
42 || <a href=Rect.html>Rect</a> ||
|
|
|
43 <a href=Sound.html>Sound</a> ||
|
|
|
44 <a href=Surface.html>Surface</a> ||<br>
|
|
|
45 <br>|| <a href=pygame_cursors.html>cursors</a> ||
|
|
375
|
46 <a href=pygame_sprite.html>sprite</a> ||<br>
|
|
372
|
47
|
|
|
48
|
|
|
49 </td></tr></table></td></tr></table>
|
|
|
50 <br>
|
|
|
51 <h2 align=center>pygame.sndarray</h2>
|
|
|
52 Contains routines for mixing numeric arrays with
|
|
|
53 sounds
|
|
|
54
|
|
|
55 <hr>
|
|
|
56
|
|
|
57 <table>
|
|
|
58 <tr><td><a href=#array>array</a></td><td> -
|
|
|
59 get an array copied from a sound</td></tr>
|
|
|
60
|
|
|
61
|
|
|
62 <tr><td><a href=#make_sound>make_sound</a></td><td> -
|
|
|
63 create a new Sound object from array data</td></tr>
|
|
|
64
|
|
|
65
|
|
|
66 <tr><td><a href=#samples>samples</a></td><td> -
|
|
|
67 get a reference to the sound samples</td></tr>
|
|
|
68
|
|
|
69
|
|
|
70 </table>
|
|
|
71
|
|
|
72 <hr>
|
|
|
73
|
|
|
74 <a name=array><font size=+2><b>array
|
|
|
75 </b></font><br><font size=+1><tt>
|
|
|
76 pygame.sndarray.array(Sound) -> Array
|
|
|
77 </tt></font><ul>
|
|
|
78 Creates an array with a copy of the sound data.
|
|
|
79 </ul><br> <br>
|
|
|
80
|
|
|
81 <a name=make_sound><font size=+2><b>make_sound
|
|
|
82 </b></font><br><font size=+1><tt>
|
|
|
83 pygame.sndarray.make_sound(array) -> Sound
|
|
|
84 </tt></font><ul>
|
|
|
85 Create a new playable Sound object from array data
|
|
|
86 the Sound will be a copy of the array samples.
|
|
|
87 <br> <br>
|
|
373
|
88 The array must be 1-dimensional for mono sound, and.
|
|
|
89 2-dimensional for stereo.
|
|
372
|
90 </ul><br> <br>
|
|
|
91
|
|
|
92 <a name=samples><font size=+2><b>samples
|
|
|
93 </b></font><br><font size=+1><tt>
|
|
|
94 pygame.sndarray.samples(Surface) -> Array
|
|
|
95 </tt></font><ul>
|
|
|
96 This will return an array that directly references the samples
|
|
|
97 in the array.
|
|
|
98 </ul><br> <br>
|
|
|
99
|
|
|
100
|
|
|
101 <hr>
|
|
|
102 </body></html>
|