diff options
Diffstat (limited to 'firmware/export/audio.h')
-rw-r--r-- | firmware/export/audio.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h index 5309ddd1d1..293956cb37 100644 --- a/firmware/export/audio.h +++ b/firmware/export/audio.h | |||
@@ -77,7 +77,7 @@ void audio_beep(int duration); | |||
77 | 77 | ||
78 | /* Required call when audio buffer is required for some other purpose */ | 78 | /* Required call when audio buffer is required for some other purpose */ |
79 | /* implemented in apps but called from firmware(!) */ | 79 | /* implemented in apps but called from firmware(!) */ |
80 | unsigned char *audio_get_buffer(bool talk_buf, size_t *buffer_size); | 80 | unsigned char *audio_get_buffer(bool talk_buf, size_t *buffer_size); |
81 | 81 | ||
82 | #if CONFIG_CODEC == SWCODEC | 82 | #if CONFIG_CODEC == SWCODEC |
83 | void audio_next_dir(void); | 83 | void audio_next_dir(void); |
@@ -257,29 +257,29 @@ void audio_register_event_handler(AUDIO_EVENT_HANDLER handler, unsigned short ma | |||
257 | /***********************************************************************/ | 257 | /***********************************************************************/ |
258 | /* handler return codes */ | 258 | /* handler return codes */ |
259 | 259 | ||
260 | #define AUDIO_EVENT_RC_IGNORED 200 | 260 | #define AUDIO_EVENT_RC_IGNORED 200 |
261 | /* indicates that no action was taken or the event was not recognized */ | 261 | /* indicates that no action was taken or the event was not recognized */ |
262 | 262 | ||
263 | #define AUDIO_EVENT_RC_HANDLED 201 | 263 | #define AUDIO_EVENT_RC_HANDLED 201 |
264 | /* indicates that the event was handled and some action was taken which renders | 264 | /* indicates that the event was handled and some action was taken which renders |
265 | the original event invalid; USE WITH CARE!; this return code aborts all further | 265 | the original event invalid; USE WITH CARE!; this return code aborts all further |
266 | processing of the given event */ | 266 | processing of the given event */ |
267 | 267 | ||
268 | /***********************************************************************/ | 268 | /***********************************************************************/ |
269 | /* audio event IDs */ | 269 | /* audio event IDs */ |
270 | 270 | ||
271 | #define AUDIO_EVENT_POS_REPORT (1<<0) | 271 | #define AUDIO_EVENT_POS_REPORT (1<<0) |
272 | /* sends a periodic song position report to handlers; a report is sent on | 272 | /* sends a periodic song position report to handlers; a report is sent on |
273 | each kernal tick; the number of ticks per second is defined by HZ; on each | 273 | each kernal tick; the number of ticks per second is defined by HZ; on each |
274 | report the current song position is passed in 'data'; if a handler takes an | 274 | report the current song position is passed in 'data'; if a handler takes an |
275 | action that changes the song or the song position it must return | 275 | action that changes the song or the song position it must return |
276 | AUDIO_EVENT_RC_HANDLED which suppresses the event for any remaining handlers */ | 276 | AUDIO_EVENT_RC_HANDLED which suppresses the event for any remaining handlers */ |
277 | 277 | ||
278 | #define AUDIO_EVENT_END_OF_TRACK (1<<1) | 278 | #define AUDIO_EVENT_END_OF_TRACK (1<<1) |
279 | /* generated when the end of the currently playing track is reached; no | 279 | /* generated when the end of the currently playing track is reached; no |
280 | data is passed; if the handler implements some alternate end-of-track | 280 | data is passed; if the handler implements some alternate end-of-track |
281 | processing it should return AUDIO_EVENT_RC_HANDLED which suppresses the | 281 | processing it should return AUDIO_EVENT_RC_HANDLED which suppresses the |
282 | event for any remaining handlers as well as the normal end-of-track | 282 | event for any remaining handlers as well as the normal end-of-track |
283 | processing */ | 283 | processing */ |
284 | 284 | ||
285 | #endif | 285 | #endif |