summaryrefslogtreecommitdiff
path: root/playback.h
blob: 13a5bce9ed1933ac19ac9cca2f0a02033a62f521 (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
45
/*
    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 3 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_set_volume psdl_set_volume
#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_set_volume palsa_set_volume
#define p_get_rate palsa_get_rate
#endif

#endif // __PLAYBACK_H