changeset 994:91f9925d88f1 trunk

[svn] - use my version for now as r2126 does not work
author nenolod
date Tue, 01 May 2007 08:33:07 -0700
parents febbc2c05d33
children 73f5e44d20d2
files ChangeLog src/filewriter/flac.c
diffstat 2 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue May 01 08:30:24 2007 -0700
+++ b/ChangeLog	Tue May 01 08:33:07 2007 -0700
@@ -1,3 +1,12 @@
+2007-05-01 15:30:24 +0000  Ralf Ertzinger <ralf@skytale.net>
+  revision [2126]
+  
+  - A simpler version of flac_write()
+  
+  trunk/src/filewriter/flac.c |   17 +++++++++++++++++
+  1 file changed, 17 insertions(+)
+
+
 2007-05-01 15:26:10 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2124]
   - remove the padding, flac starts working.
--- a/src/filewriter/flac.c	Tue May 01 08:30:24 2007 -0700
+++ b/src/filewriter/flac.c	Tue May 01 08:33:07 2007 -0700
@@ -91,7 +91,7 @@
 
 static void flac_write(gpointer data, gint length)
 {
-#if 0
+#if 1
     FLAC__int32 *encbuffer[2];
     short int *tmpdata = data;
     int i;
@@ -121,10 +121,9 @@
 
     g_free(encbuffer[0]);
     g_free(encbuffer[1]);
-#endif
-
+#else
     FLAC__int32 *encbuffer;
-    gint16_t *tmpdata = data;
+    gint16 *tmpdata = data;
     int i;
 
     encbuffer = g_new0(FLAC__int32, length);
@@ -137,6 +136,7 @@
     olen += length;
 
     g_free(encbuffer);
+#endif
 }
 
 static void flac_close(void)