Slovak language update
[kugel-rb.git] / apps / pcmbuf.h
blob992eb8063f921afc0d33307bcdc08c8368684baf
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Miika Pekkarinen
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef PCMBUF_H
22 #define PCMBUF_H
24 /* Commit PCM data */
25 void *pcmbuf_request_buffer(int *count);
26 void pcmbuf_write_complete(int count);
28 /* Init */
29 size_t pcmbuf_init(unsigned char *bufend);
31 /* Playback */
32 void pcmbuf_play_start(void);
33 void pcmbuf_play_stop(void);
34 void pcmbuf_pause(bool pause);
35 void pcmbuf_start_track_change(bool manual_skip);
37 /* Crossfade */
38 #ifdef HAVE_CROSSFADE
39 bool pcmbuf_is_crossfade_active(void);
40 void pcmbuf_request_crossfade_enable(bool on_off);
41 bool pcmbuf_is_same_size(void);
42 #endif
44 /* Voice */
45 void *pcmbuf_request_voice_buffer(int *count);
46 void pcmbuf_write_voice_complete(int count);
48 /* Debug menu, other metrics */
49 size_t pcmbuf_free(void);
50 size_t pcmbuf_get_bufsize(void);
51 int pcmbuf_descs(void);
52 int pcmbuf_used_descs(void);
53 #ifdef ROCKBOX_HAS_LOGF
54 unsigned char *pcmbuf_get_meminfo(size_t *length);
55 #endif
57 /* Misc */
58 bool pcmbuf_is_lowdata(void);
59 void pcmbuf_set_low_latency(bool state);
60 unsigned long pcmbuf_get_latency(void);
61 void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude);
63 #endif