1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
/* GMP3 - A front end for mpg123
* Copyright (C) 1998 Brett Kosinski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __GMP3__
#define __GMP3__
#include <unistd.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#ifndef RCFILENAME
#define RCFILENAME ".gmp3rc"
#endif
#ifndef ALBUMNSUBDIR
#define ALBUMNSUBDIR RCFILEDIR "/" /* Relative to $HOME */
#endif
#define CMDLINESIZE 16
typedef struct _cursoroffset { gint x, y; } CursorOffset;
typedef struct _dragdata
{
gint originalCursorX, originalCursorY;
} DragData;
#define LEFT 0
#define RIGHT 1
#define STEREO 2
#define MONO 3
typedef struct {
int bufferSize;
int downSample;
int lineOut;
int output;
int managed;
int toolTips;
int autoparse;
int autoloadTags;
char *soundDevice;
char *playListName;
char *mixerApp;
char *themePack;
char *themePath;
char *mp3loaddir;
char *mp3player;
char *httpProxy;
char *httpAuthString;
} configType;
extern GdkWindow *root_win;
extern int doneSong;
extern int playing;
extern int paused;
extern int loopOne;
extern int loopAll;
extern int shuffle;
extern pid_t mpgPID;
extern GtkWidget *mainMenu;
extern long int currSecs;
extern long int startSecs;
extern configType options;
void destroy_window(GtkWidget *widget, GtkWidget **window);
void saveRCFile();
void quitCallback();
gint checkMP3Player();
void widgetCommandCallback(GtkWidget *widget, gint command);
gint widgetLClickCommandCallback(GtkWidget *widget, GdkEventButton *event, gint command);
gint widgetMClickCommandCallback(GtkWidget *widget, GdkEventButton *event, gint command);
gint widgetRClickCommandCallback(GtkWidget *widget, GdkEventButton *event, gint command);
void printSongName();
void resetClock();
void volumeSliderCallback(GtkAdjustment *adjustment, gpointer *data);
void openDialog(GtkWidget *widget, GtkWidget *dialog);
void closeDialog(GtkWidget *widget, GtkWidget *dialog);
#endif
|