~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to src/buffer.h

Tags: upstream-0.66
ImportĀ upstreamĀ versionĀ 0.66

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
        buffer.h: output buffer
3
3
 
4
4
        copyright 1999-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
5
 
        see COPYING and AUTHORS files in distribution or http://mpg123.de
 
5
        see COPYING and AUTHORS files in distribution or http://mpg123.org
6
6
        initially written by Daniel Kobras / Oliver Fromme
7
7
*/
8
8
 
16
16
#ifndef _MPG123_BUFFER_H_
17
17
#define _MPG123_BUFFER_H_
18
18
 
19
 
void buffer_ignore_lowmem(void);
20
 
void buffer_end(void);
21
 
void buffer_resync(void);
22
 
void buffer_reset(void);
23
 
void buffer_start(void);
24
 
void buffer_stop(void);
 
19
#ifndef NOXFERMEM
 
20
void real_buffer_ignore_lowmem(void);
 
21
void real_buffer_end(void);
 
22
void real_buffer_resync(void);
 
23
void real_plain_buffer_resync(void);
 
24
void real_buffer_reset(void);
 
25
void real_buffer_start(void);
 
26
void real_buffer_stop(void);
 
27
/* Hm, that's funny preprocessor weirdness. */
 
28
#define buffer_start()         (param.usebuffer ? real_buffer_start(),0         : 0)
 
29
#define buffer_stop()          (param.usebuffer ? real_buffer_stop(),0          : 0)
 
30
#define buffer_reset()         (param.usebuffer ? real_buffer_reset(),0         : 0)
 
31
#define buffer_resync()        (param.usebuffer ? real_buffer_resync(),0        : 0)
 
32
#define plain_buffer_resync()  (param.usebuffer ? real_plain_buffer_resync(),0  : 0)
 
33
#define buffer_end()           (param.usebuffer ? real_buffer_end(),0           : 0)
 
34
#define buffer_ignore_lowmem() (param.usebuffer ? real_buffer_ignore_lowmem(),0 : 0)
 
35
#else
 
36
#define buffer_start()
 
37
#define buffer_stop()
 
38
#define buffer_reset()
 
39
#define buffer_resync()
 
40
#define plain_buffer_resync()
 
41
#define buffer_end()
 
42
#define buffer_ignore_lowmem()
 
43
#endif
25
44
 
26
45
#endif