summaryrefslogtreecommitdiff
path: root/emulators/gens/patches/patch-au
blob: 773c9d979b50961b74ffb6c6f9e0306906b705ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-au,v 1.1 2004/08/22 11:37:28 kristerw Exp $

--- src/gens/sdllayer/g_sdlsound.c.orig	Sun Aug 22 13:22:13 2004
+++ src/gens/sdllayer/g_sdlsound.c	Sun Aug 22 13:23:10 2004
@@ -53,6 +53,7 @@
 int
 Init_Sound (void)
 {
+  SDL_AudioSpec spec;
   int i;
 
   if (Sound_Initialised)
@@ -122,8 +123,6 @@
     }
 
   pMsndOut = (unsigned char *) malloc (Seg_Lenght << 2);
-
-  SDL_AudioSpec spec;
 
   spec.freq = Sound_Rate;
   spec.format = AUDIO_S16SYS;