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 <koreth@midwinter.com>
6 * Copyright (C) by Dirk Försterling <milliByte@DeathsDoor.com>
7 * Copyright (C) 2004-2006 Alexander Kern <alex.kern@gmx.de>
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 */
45int wm_cd_set_verbosity(int);
46const char *wm_drive_default_device();
47
48int wm_cd_init(const char *cd_device, const char *soundsystem,
49 const char *sounddevice, const char *ctldevice, void **);
50int wm_cd_destroy(void *);
51
52int wm_cd_status(void *);
53int wm_cd_getcurtrack(void *);
54int wm_cd_getcurtracklen(void *);
55int wm_get_cur_pos_rel(void *);
56int wm_get_cur_pos_abs(void *);
57
58int wm_cd_getcountoftracks(void *);
59int wm_cd_gettracklen(void *, int track);
60int wm_cd_gettrackstart(void *, int track);
61int wm_cd_gettrackdata(void *, int track);
62
63int wm_cd_play(void *, int start, int pos, int end);
64int wm_cd_pause(void *);
65int wm_cd_stop(void *);
66int wm_cd_eject(void *);
67int wm_cd_closetray(void *);
68
69
70
71const char *wm_drive_vendor(void *);
72const char *wm_drive_model(void *);
73const char *wm_drive_revision(void *);
74unsigned 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 */
80int 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 */
86int wm_cd_getvolume(void *);
87int wm_cd_getbalance(void *);
88
89#endif /* WM_CDROM_H */
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.