2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef CONFIG_LIBCDIO
24 #include <cdda_interface.h>
25 #include <cdda_paranoia.h>
27 #include <cdio/cdda.h>
28 #include <cdio/paranoia.h>
30 #include <sys/types.h>
33 char cddb_hello
[1024];
34 unsigned long disc_id
;
38 int freedb_proto_level
;
42 size_t xmcd_file_size
;
47 unsigned int min
, sec
, frame
;
50 typedef struct cd_track
{
52 unsigned int track_nb
;
56 unsigned long frame_begin
;
57 unsigned long frame_length
;
58 struct cd_track
*prev
;
59 struct cd_track
*next
;
66 unsigned int nb_tracks
;
76 #ifndef CONFIG_LIBCDIO
81 cdrom_paranoia_t
* cdp
;
89 cd_info_t
* cd_info_new(void);
90 void cd_info_free(cd_info_t
*cd_info
);
91 cd_track_t
* cd_info_add_track(cd_info_t
*cd_info
, char *track_name
, unsigned int track_nb
, unsigned int min
, unsigned int sec
, unsigned int msec
, unsigned long frame_begin
, unsigned long frame_length
);
92 cd_track_t
* cd_info_get_track(cd_info_t
*cd_info
, unsigned int track_nb
);
94 void cd_info_debug(cd_info_t
*cd_info
);
96 #endif /* MPLAYER_CDD_H */