changeset 992:a277aaab4525 trunk

[svn] - remove the padding, flac starts working.
author nenolod
date Tue, 01 May 2007 08:26:10 -0700
parents 67cf9a1e3dc5
children febbc2c05d33
files ChangeLog src/filewriter/flac.c
diffstat 2 files changed, 15 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue May 01 08:07:48 2007 -0700
+++ b/ChangeLog	Tue May 01 08:26:10 2007 -0700
@@ -1,3 +1,14 @@
+2007-05-01 15:07:48 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2122]
+  - commit what i have, presently broken
+  
+  trunk/src/filewriter/Makefile     |    4 -
+  trunk/src/filewriter/filewriter.c |    7 +
+  trunk/src/filewriter/flac.c       |  147 ++++++++++++++++++++++++++++++++++++++
+  trunk/src/filewriter/plugins.h    |    2 
+  4 files changed, 155 insertions(+), 5 deletions(-)
+
+
 2007-05-01 14:03:49 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [2120]
   - remove support for hatena music as hatena ceased their musical profile service.
--- a/src/filewriter/flac.c	Tue May 01 08:07:48 2007 -0700
+++ b/src/filewriter/flac.c	Tue May 01 08:26:10 2007 -0700
@@ -102,16 +102,16 @@
     {
         for (i = 0; i < (length / 2); i++)
         {
-            encbuffer[0][i] = tmpdata[i] / 32768.0;
-            encbuffer[1][i] = tmpdata[i] / 32768.0;
+            encbuffer[0][i] = tmpdata[i];
+            encbuffer[1][i] = tmpdata[i];
         }
     }
     else
     {
         for (i = 0; i < (length / 4); i++)
         {
-            encbuffer[0][i] = tmpdata[2 * i] / 32768.0;
-            encbuffer[1][i] = tmpdata[2 * i + 1] / 32768.0;
+            encbuffer[0][i] = tmpdata[2 * i];
+            encbuffer[1][i] = tmpdata[2 * i + 1];
         }
     }