projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070426-1-src
[rocksndiamonds.git]
/
src
/
game_em
/
sound.c
diff --git
a/src/game_em/sound.c
b/src/game_em/sound.c
index 5aedabb35abb1cbf42faaa23b67b32e6502e6883..c1334cc7bb05381cada4ab00d9b26452cb13964d 100644
(file)
--- a/
src/game_em/sound.c
+++ b/
src/game_em/sound.c
@@
-86,7
+86,7
@@
int sound_thread(void)
mix_buffer = 0;
mix_count = 0;
mix_buffer = 0;
mix_count = 0;
-
memset(sound_play, 0
, sizeof(sound_play)); /* not playing any sounds */
+
clear_mem(sound_play
, sizeof(sound_play)); /* not playing any sounds */
for (;;)
{
for (;;)
{
@@
-294,7
+294,7
@@
int sound_thread(void)
if (mix_count && audio_fd != -1)
{
/* prepare mix buffer */
if (mix_count && audio_fd != -1)
{
/* prepare mix buffer */
-
memset(mix_buffer, 0
, fragment_size * sizeof(*mix_buffer));
+
clear_mem(mix_buffer
, fragment_size * sizeof(*mix_buffer));
for (i = 0; i < mix_count; i++)
{
for (i = 0; i < mix_count; i++)
{