Support for reading ALAC audio properties

This commit is contained in:
Frank Lai
2011-06-09 18:41:43 +02:00
committed by Lukáš Lalinský
parent 93564a2daa
commit 8ed9b0da2c
2 changed files with 9 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public:
{
MP4::File f(TEST_FILE_PATH_C("empty_alac.m4a"));
CPPUNIT_ASSERT_EQUAL(3, f.audioProperties()->length());
CPPUNIT_ASSERT_EQUAL(3, f.audioProperties()->bitrate());
CPPUNIT_ASSERT_EQUAL(2, f.audioProperties()->bitrate());
CPPUNIT_ASSERT_EQUAL(2, f.audioProperties()->channels());
CPPUNIT_ASSERT_EQUAL(44100, f.audioProperties()->sampleRate());
CPPUNIT_ASSERT_EQUAL(16, ((MP4::Properties *)f.audioProperties())->bitsPerSample());