ReplayGain analysis in airtime_analyzer using python-rgain
* Implemented Replaygain analysis for Ogg Vorbis, MP3, MP4, and FLAC using python-rgain * Added unit tests for ReplayGainAnalyzer * Squashed stderr output in ReplayGainAnalyzer and CuePointAnalyzer * Clean up
This commit is contained in:
parent
38bd45b8dc
commit
4dd2768755
7 changed files with 89 additions and 36 deletions
|
@ -1,10 +1,6 @@
|
|||
from nose.tools import *
|
||||
from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer
|
||||
|
||||
def test_constructor():
|
||||
cpa = CuePointAnalyzer()
|
||||
|
||||
|
||||
def check_default_metadata(metadata):
|
||||
''' Check that the values extract by Silan/CuePointAnalyzer on our test audio files match what we expect.
|
||||
:param metadata: a metadata dictionary
|
||||
|
@ -65,12 +61,3 @@ def test_m4a_stereo():
|
|||
def test_wav_stereo():
|
||||
metadata = CuePointAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo.wav', dict())
|
||||
check_default_metadata(metadata)
|
||||
|
||||
# FFMPEG / libav detect the AAC file as slightly shorter...
|
||||
'''
|
||||
tolerance_seconds = 0.2
|
||||
length_seconds = 3.8
|
||||
assert abs(metadata['length_seconds'] - length_seconds) < tolerance_seconds
|
||||
assert abs(metadata['cuein']) < tolerance_seconds
|
||||
assert abs(metadata['cueout'] - length_seconds) < tolerance_seconds
|
||||
'''
|
Loading…
Add table
Add a link
Reference in a new issue