KCompactDisc

wm_cdrom.h
1 #ifndef WM_CDROM_H
2 #define WM_CDROM_H
3 /*
4  * This file is part of WorkMan, the civilized CD player library
5  * Copyright (C) 1991-1997 by Steven Grimm <[email protected]>
6  * Copyright (C) by Dirk Försterling <[email protected]>
7  * Copyright (C) 2004-2006 Alexander Kern <[email protected]>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the Free
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  * Prototypes from cdrom.c
24  *
25  * This is just one more step to a more modular and understandable code.
26  */
27 
28 #include "wm_platform.h"
29 
30 #define WM_CDIN 0
31 #define WM_CDDA 1
32 
33 #define WM_ENDTRACK 0
34 
35 #define WM_BALANCE_SYMMETRED 0
36 #define WM_BALANCE_ALL_LEFTS -10
37 #define WM_BALANCE_ALL_RIGHTS 10
38 
39 #define WM_VOLUME_MUTE 0
40 #define WM_VOLUME_MAXIMAL 100
41 
42 /*
43  * for valid values see wm_helpers.h
44  */
45 int wm_cd_set_verbosity(int);
46 const char *wm_drive_default_device();
47 
48 int wm_cd_init(const char *cd_device, const char *soundsystem,
49  const char *sounddevice, const char *ctldevice, void **);
50 int wm_cd_destroy(void *);
51 
52 int wm_cd_status(void *);
53 int wm_cd_getcurtrack(void *);
54 int wm_cd_getcurtracklen(void *);
55 int wm_get_cur_pos_rel(void *);
56 int wm_get_cur_pos_abs(void *);
57 
58 int wm_cd_getcountoftracks(void *);
59 int wm_cd_gettracklen(void *, int track);
60 int wm_cd_gettrackstart(void *, int track);
61 int wm_cd_gettrackdata(void *, int track);
62 
63 int wm_cd_play(void *, int start, int pos, int end);
64 int wm_cd_pause(void *);
65 int wm_cd_stop(void *);
66 int wm_cd_eject(void *);
67 int wm_cd_closetray(void *);
68 
69 
70 
71 const char *wm_drive_vendor(void *);
72 const char *wm_drive_model(void *);
73 const char *wm_drive_revision(void *);
74 unsigned long wm_cddb_discid(void *);
75 
76 /*
77  * volume is valid WM_VOLUME_MUTE <= vol <= WM_VOLUME_MAXIMAL,
78  * balance is valid WM_BALANCE_ALL_LEFTS <= balance <= WM_BALANCE_ALL_RIGHTS
79  */
80 int wm_cd_volume(void *, int volume, int balance);
81 
82 /*
83  * please notice, that more OSs don't allow to read balance and volume
84  * in this case you get -1 for volume and WM_BALANCE_SYMMETRED for balance
85  */
86 int wm_cd_getvolume(void *);
87 int wm_cd_getbalance(void *);
88 
89 #endif /* WM_CDROM_H */
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 18 2021 23:23:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.