Mercurial > hg > svcore
annotate base/ZoomLevel.cpp @ 1583:c8fad3c14a2b bqaudiostream
Start wiring in BQAudioStream stuff
author | Chris Cannam |
---|---|
date | Thu, 06 Dec 2018 12:50:28 +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 |