Welcome Guest ( Log In | Register )

need help with libreplaygain + python and numpy
post Feb 7 2013, 20:21
Post #1

Group: Members
Posts: 3
Joined: 7-February 13
Member No.: 106481

Hi all !

I am trying to calculate the replay gain from Python, have tried over and over again, and failed miserably ...
I figured that would be the best place to ask, but if it isn't please redirect me smile.gif

I am using the shared object "libreplaygain.so" and what happens is that whatever data I give to `gain_analyze_samples`, `gain_get_chapter` always returns 80.000 ...

Here is the script I am using for testing : http://pastebin.com/4ngNuDZP
EDIT : here is a simpler version of the same snippet using scipy to read the sound file : http://pastebin.com/C7AWiGC6

I've really tried everything, and I am a bit desperate now sad.gif . I am not very good with C, and don't really understand what's going on with "ctypes", so I guess that might be a problem with value types. Hopefully the problem might be obvious to some of you?



This post has been edited by sebpiq: Feb 7 2013, 21:13
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 16th April 2014 - 15:58