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 UTILS_HEADER 28 #define UTILS_HEADER 29 30 #include <sys/types.h> 31 #include <sys/stat.h> 32 #include <stdlib.h> 33 #include <string.h> 34 #include <assert.h> 35 #include <math.h> 36 #include <fcntl.h> 37 38 int 39 check_dir (const char *dir, mode_t mode); 40 41 int 42 queue_add (const char *fname); 43 44 void 45 queue_pop (const char *fname); 46 47 #endif 48