1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 3 /* 4 * Goo 5 * 6 * Copyright (C) 2004 Free Software Foundation, Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef TYPEDEFS_H 23 #define TYPEDEFS_H 24 25 #include <glib.h> 26 #include <glib-object.h> 27 28 #define OGG_ENCODER "vorbisenc" 29 #define FLAC_ENCODER "flacenc" 30 #define MP3_ENCODER "lamemp3enc" 31 #define WAVE_ENCODER "wavenc" 32 33 #define OGG_DESCRIPTION N_("Vorbis is an open source, lossy audio codec with high quality output at a lower file size than MP3.") 34 #define FLAC_DESCRIPTION N_("FLAC is an open source codec that compresses but does not degrade audio quality.") 35 #define MP3_DESCRIPTION N_("MP3 is a patented lossy audio codec, supported by most digital audio players.") 36 #define WAVE_DESCRIPTION N_("WAV+PCM is a lossless format that holds uncompressed audio.") 37 38 /* same order shown in the preferences dialog */ 39 40 typedef enum { 41 GOO_FILE_FORMAT_OGG, 42 GOO_FILE_FORMAT_FLAC, 43 GOO_FILE_FORMAT_MP3, 44 GOO_FILE_FORMAT_WAVE 45 } GooFileFormat; 46 47 48 typedef enum { 49 WINDOW_SORT_BY_NUMBER = 0, 50 WINDOW_SORT_BY_TIME = 1, 51 WINDOW_SORT_BY_TITLE = 2 52 } WindowSortMethod; 53 54 55 typedef void (*DataFunc) (gpointer user_data); 56 typedef void (*ReadyFunc) (GError *error, 57 gpointer user_data); 58 typedef void (*ReadyCallback) (GObject *object, 59 GError *error, 60 gpointer user_data); 61 62 #endif /* TYPEDEFS_H */ 63 64