Mercurial > hg > svcore
annotate base/ZoomLevel.cpp @ 1592:f8e3dcbafb4d bqaudiostream
Implement title/maker in wav readers; extra handling of supported-ness for file types
author | Chris Cannam |
---|---|
date | Mon, 21 Jan 2019 13:16:17 +0000 |
parents | 5360f7aba189 |
children |
rev | line source |
---|---|
Chris@1532 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@1532 | 2 |
Chris@1532 | 3 /* |
Chris@1532 | 4 Sonic Visualiser |
Chris@1532 | 5 An audio file viewer and annotation editor. |
Chris@1532 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@1532 | 7 |
Chris@1532 | 8 This program is free software; you can redistribute it and/or |
Chris@1532 | 9 modify it under the terms of the GNU General Public License as |
Chris@1532 | 10 published by the Free Software Foundation; either version 2 of the |
Chris@1532 | 11 License, or (at your option) any later version. See the file |
Chris@1532 | 12 COPYING included with this distribution for more information. |
Chris@1532 | 13 */ |
Chris@1532 | 14 |
Chris@1532 | 15 #include "ZoomLevel.h" |
Chris@1532 | 16 |
Chris@1532 | 17 std::ostream &operator<<(std::ostream &s, const ZoomLevel &z) { |
Chris@1532 | 18 if (z.zone == ZoomLevel::PixelsPerFrame) { |
Chris@1532 | 19 s << "1/" << z.level; |
Chris@1532 | 20 } else { |
Chris@1532 | 21 s << z.level; |
Chris@1532 | 22 } |
Chris@1532 | 23 return s; |
Chris@1532 | 24 } |
Chris@1532 | 25 |