src/sound.c

changeset 2372
c24942700dfd
parent 2370
722a3374b5cf
child 2467
c32172dcc34e
--- a/src/sound.c	Thu Sep 27 17:44:23 2001 +0000
+++ b/src/sound.c	Thu Sep 27 19:17:11 2001 +0000
@@ -202,7 +202,7 @@
 static int play_artsc(unsigned char *data, int size)
 {
 	arts_stream_t stream;
-	guint16* lineardata;
+	guint16 *lineardata;
 	int result = 1;
 	int error;
 	int i;
@@ -243,7 +243,7 @@
 static int artsc_play_file(char *file)
 {
 	struct stat stat_buf;
-	unsigned char* buf = NULL;
+	unsigned char *buf = NULL;
 	int result = 0;
 	int fd = -1;
 
@@ -263,15 +263,17 @@
 	buf = g_malloc(stat_buf.st_size);
 	if (!buf)
 		goto out;
-	
+
 	if (read(fd, buf, stat_buf.st_size) < 0)
 		goto out;
 
 	result = play_artsc(buf, stat_buf.st_size);
 
-	out:
-	if (buf) g_free(buf);
-	if (fd != -1) close(fd);
+      out:
+	if (buf)
+		g_free(buf);
+	if (fd != -1)
+		close(fd);
 	return result;
 }
 

mercurial