File indexing completed on 2024-04-28 08:46:53

0001 #ifndef WM_CDINFO_H
0002 #define WM_CDINFO_H
0003 /*
0004  * $Id: wm_cdinfo.h 486075 2005-12-06 18:29:02Z thiago $
0005  *
0006  * This file is part of WorkMan, the civilized CD player library
0007  * Copyright (C) 1991-1997 by Steven Grimm (original author)
0008  * Copyright (C) by Dirk Försterling <milliByte@DeathsDoor.com>
0009  * Copyright (C) 2004-2006 Alexander Kern <alex.kern@gmx.de>
0010  *
0011  * This library is free software; you can redistribute it and/or
0012  * modify it under the terms of the GNU Library General Public
0013  * License as published by the Free Software Foundation; either
0014  * version 2 of the License, or (at your option) any later version.
0015  *
0016  * This library is distributed in the hope that it will be useful,
0017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0019  * Library General Public License for more details.
0020  *
0021  * You should have received a copy of the GNU Library General Public
0022  * License along with this library; if not, write to the Free
0023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0024  *
0025  * Prototypes from cdinfo.c
0026  *
0027  * This is just one more step to a more modular and understandable code.
0028  */
0029 
0030 #include "wm_struct.h"
0031 extern char *cur_trackname;     /* Take a guess */
0032 extern int cur_index;           /* Current index mark */
0033 extern int cur_frame;           /* Current frame number */
0034 extern struct wm_play *playlist;        /* = NULL */
0035 
0036 /*extern int cur_track;*/       /* Current track number, starting at 1 */
0037 extern char *cur_artist;        /* Name of current CD's artist */
0038 extern char cur_avoid;          /* Avoid flag */
0039 extern char cur_contd;          /* Continued flag */
0040 extern char *cur_cdname;        /* Album name */
0041 extern int cur_nsections;       /* Number of sections currently defined */
0042 extern int exit_on_eject;
0043 extern int cur_pos_abs;
0044 extern int cur_pos_rel;
0045 extern int cur_cdlen;
0046 
0047 extern int cur_ntracks;
0048 extern int cur_lasttrack;
0049 extern int cur_firsttrack;
0050 extern int cur_listno;
0051 extern int cur_stopmode;
0052 
0053 void    wipe_cdinfo( void );
0054 void    play_next_entry( int forward );
0055 void    make_playlist( int playmode, int starttrack );
0056 int get_autoplay( void );
0057 int get_playmode( void );
0058 void    pl_find_track( int track );
0059 void    play_prev_track( int forward );
0060 void    play_next_track( int forward );
0061 int tracklen( int num );
0062 int get_default_volume( int track );
0063 int split_trackinfo( int pos );
0064 int remove_trackinfo( int num );
0065 void    freeup( char **x );
0066 int get_runtime( void );
0067 const char *trackname( int num );
0068 void    stash_cdinfo( char *artist, char *cdname, int autoplay, int playmode );
0069 void    stash_trkinfo( int track, char *songname, int contd, int avoid );
0070 int get_avoid( int num );
0071 int get_contd( int num );
0072 void    default_volume( int track, int vol );
0073 char   *listentry( int num );
0074 
0075 #endif /* WM_CDINFO_H */