diff options
Diffstat (limited to 'firmware/export/pcm_playback.h')
-rw-r--r-- | firmware/export/pcm_playback.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/firmware/export/pcm_playback.h b/firmware/export/pcm_playback.h deleted file mode 100644 index 351b1fa23f..0000000000 --- a/firmware/export/pcm_playback.h +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2005 by Linus Nielsen Feltzing | ||
11 | * | ||
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. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef PCM_PLAYBACK_H | ||
20 | #define PCM_PLAYBACK_H | ||
21 | |||
22 | #include <sys/types.h> | ||
23 | |||
24 | /* Typedef for registered callback (play and record) */ | ||
25 | typedef void (*pcm_more_callback_type)(unsigned char **start, | ||
26 | size_t *size); | ||
27 | typedef int (*pcm_more_callback_type2)(int status); | ||
28 | |||
29 | void pcm_init(void); | ||
30 | void pcm_postinit(void); | ||
31 | |||
32 | /* set the pcm frequency - use values in hw_sampr_list | ||
33 | * use -1 for the default frequency | ||
34 | */ | ||
35 | void pcm_set_frequency(unsigned int frequency); | ||
36 | /* apply settings to hardware immediately */ | ||
37 | void pcm_apply_settings(void); | ||
38 | |||
39 | /* This is for playing "raw" PCM data */ | ||
40 | void pcm_play_data(pcm_more_callback_type get_more, | ||
41 | unsigned char* start, size_t size); | ||
42 | |||
43 | void pcm_calculate_peaks(int *left, int *right); | ||
44 | size_t pcm_get_bytes_waiting(void); | ||
45 | |||
46 | void pcm_play_stop(void); | ||
47 | void pcm_mute(bool mute); | ||
48 | void pcm_play_pause(bool play); | ||
49 | bool pcm_is_paused(void); | ||
50 | bool pcm_is_playing(void); | ||
51 | |||
52 | /** The following are for internal use between pcm_playback.c and target- | ||
53 | specific portion **/ | ||
54 | |||
55 | /* the registered callback function to ask for more mp3 data */ | ||
56 | extern volatile pcm_more_callback_type pcm_callback_for_more; | ||
57 | extern volatile bool pcm_playing; | ||
58 | extern volatile bool pcm_paused; | ||
59 | |||
60 | extern void pcm_play_dma_start(const void *addr, size_t size); | ||
61 | extern void pcm_play_dma_stop(void); | ||
62 | extern void pcm_play_pause_pause(void); | ||
63 | extern void pcm_play_pause_unpause(void); | ||
64 | |||
65 | #endif /* PCM_PLAYBACK_H */ | ||