1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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 ****************************************************************************/
31 int last_dma_chunk_size
;
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
);
48 void mpeg_pause(void);
49 void mpeg_resume(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);
67 void mpeg_set_pitch(int percent
);
69 void mpeg_get_debugdata(struct mpeg_debug
*dbgdata
);
71 #define SOUND_VOLUME 0
73 #define SOUND_TREBLE 2
74 #define SOUND_BALANCE 3
75 #define SOUND_LOUDNESS 4
76 #define SOUND_SUPERBASS 5
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