annotate base/Strings.cpp @ 1290:fa574c909c3d 3.0-integration

Add MAD_BUFFER_GUARD padding at end of mp3 buffer, in order to ensure last frame is decoded successfully (otherwise the decoded audio is truncated). Another thing learned from madplay.
author Chris Cannam
date Thu, 24 Nov 2016 17:06:31 +0000
parents 932487fe515a
children
rev   line source
Chris@1203 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@1203 2
Chris@1203 3 /*
Chris@1203 4 Sonic Visualiser
Chris@1203 5 An audio file viewer and annotation editor.
Chris@1203 6 Centre for Digital Music, Queen Mary, University of London.
Chris@1203 7
Chris@1203 8 This program is free software; you can redistribute it and/or
Chris@1203 9 modify it under the terms of the GNU General Public License as
Chris@1203 10 published by the Free Software Foundation; either version 2 of the
Chris@1203 11 License, or (at your option) any later version. See the file
Chris@1203 12 COPYING included with this distribution for more information.
Chris@1203 13 */
Chris@1203 14
Chris@1203 15 #include "Strings.h"
Chris@1203 16
Chris@1203 17 QString
Chris@1203 18 Strings::pi = QChar(0x3c0);
Chris@1203 19
Chris@1203 20 QString
Chris@1203 21 Strings::minus_pi = "-" + pi;
Chris@1203 22
Chris@1203 23 QString
Chris@1203 24 Strings::infinity = QChar(0x221e);
Chris@1203 25
Chris@1203 26 QString
Chris@1203 27 Strings::minus_infinity = "-" + infinity;
Chris@1203 28