1 /* 2 Waveform seekbar plugin for the DeaDBeeF audio player 3 4 Copyright (C) 2014 Christian Boxdörfer <christian.boxdoerfer@posteo.de> 5 6 Based on sndfile-tools waveform by Erik de Castro Lopo. 7 waveform.c - v1.04 8 Copyright (C) 2007-2012 Erik de Castro Lopo <erikd@mega-nerd.com> 9 Copyright (C) 2012 Robin Gareus <robin@gareus.org> 10 Copyright (C) 2013 driedfruit <driedfruit@mindloop.net> 11 12 This program is free software; you can redistribute it and/or 13 modify it under the terms of the GNU General Public License 14 as published by the Free Software Foundation; either version 2 15 of the License, or (at your option) any later version. 16 17 This program is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 GNU General Public License for more details. 21 22 You should have received a copy of the GNU General Public License 23 along with this program; if not, write to the Free Software 24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25 */ 26 27 #ifndef WAVEFORM_HEADER 28 #define WAVEFORM_HEADER 29 30 //#define trace(...) { fprintf(stderr, __VA_ARGS__); } 31 #define trace(fmt,...) 32 33 extern DB_functions_t * deadbeef; 34 35 enum STYLE { BARS = 1, SPIKES = 2 }; 36 37 typedef struct COLOUR 38 { 39 double r; 40 double g; 41 double b; 42 double a; 43 } COLOUR; 44 45 typedef struct 46 { 47 COLOUR c_fg, c_rms, c_bg; 48 } RENDER; 49 50 extern RENDER render; 51 52 #endif 53