blob: 2a4ce722731598b0367595bde8deb52f378de481 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
DeaDBeeF - ultimate music player for GNU/Linux systems with X11
Copyright (C) 2009 Alexey Yakovenko
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __PLAYBACK_H
#define __PLAYBACK_H
#if USE_SDL
#include "psdl.h"
#define p_init psdl_init
#define p_free psdl_free
#define p_play psdl_play
#define p_stop psdl_stop
#define p_ispaused psdl_ispaused
#define p_pause psdl_pause
#define p_unpause psdl_unpause
#define p_get_rate psdl_get_rate
#else
#include "palsa.h"
#define p_init palsa_init
#define p_free palsa_free
#define p_play palsa_play
#define p_stop palsa_stop
#define p_ispaused palsa_ispaused
#define p_pause palsa_pause
#define p_unpause palsa_unpause
#define p_get_rate palsa_get_rate
#define p_isstopped palsa_isstopped
#endif
#endif // __PLAYBACK_H
|