i18n of time/date setting menu
[kugel-rb.git] / firmware / mpeg.h
blob97a1b36c1a3d42a79f07c55f3a936cafd35d2cc2
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _MPEG_H_
20 #define _MPEG_H_
22 #include <stdbool.h>
24 struct mpeg_debug
26 int mp3buflen;
27 int mp3buf_write;
28 int mp3buf_swapwrite;
29 int mp3buf_read;
31 int last_dma_chunk_size;
33 bool dma_on;
34 bool playing;
35 bool play_pending;
36 bool is_playing;
37 bool filling;
38 bool dma_underrun;
40 int unplayed_space;
41 int unswapped_space;
44 void mpeg_init(int volume, int bass, int treble, int balance,
45 int loudness, int bass_boost, int avc);
46 void mpeg_play(int offset);
47 void mpeg_stop(void);
48 void mpeg_pause(void);
49 void mpeg_resume(void);
50 void mpeg_next(void);
51 void mpeg_prev(void);
52 void mpeg_ff_rewind(int change);
53 void mpeg_flush_and_reload_tracks(void);
54 void mpeg_sound_set(int setting, int value);
55 int mpeg_sound_min(int setting);
56 int mpeg_sound_max(int setting);
57 int mpeg_sound_default(int setting);
58 void mpeg_sound_channel_config(int configuration);
59 int mpeg_val2phys(int setting, int value);
60 int mpeg_phys2val(int setting, int value);
61 char *mpeg_sound_unit(int setting);
62 int mpeg_sound_numdecimals(int setting);
63 struct mp3entry* mpeg_current_track(void);
64 bool mpeg_has_changed_track(void);
65 int mpeg_status(void);
66 #ifdef HAVE_MAS3587F
67 void mpeg_set_pitch(int percent);
68 #endif
69 void mpeg_get_debugdata(struct mpeg_debug *dbgdata);
71 #define SOUND_VOLUME 0
72 #define SOUND_BASS 1
73 #define SOUND_TREBLE 2
74 #define SOUND_BALANCE 3
75 #define SOUND_LOUDNESS 4
76 #define SOUND_SUPERBASS 5
77 #define SOUND_AVC 6
78 #define SOUND_CHANNELS 7
79 #define SOUND_NUMSETTINGS 8
81 #define MPEG_SOUND_STEREO 0
82 #define MPEG_SOUND_MONO 1
83 #define MPEG_SOUND_MONO_LEFT 2
84 #define MPEG_SOUND_MONO_RIGHT 3
86 #define MPEG_STATUS_PLAY 1
87 #define MPEG_STATUS_PAUSE 2
88 #define MPEG_STATUS_RECORD 4
90 #endif