diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/audio.h | 22 | ||||
-rw-r--r-- | firmware/export/enc_base.h | 4 |
2 files changed, 13 insertions, 13 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 |
diff --git a/firmware/export/enc_base.h b/firmware/export/enc_base.h index c2fbe26d6c..f5dfb65f2a 100644 --- a/firmware/export/enc_base.h +++ b/firmware/export/enc_base.h | |||
@@ -145,7 +145,7 @@ struct encoder_config | |||
145 | struct mp3_enc_config mp3_enc; | 145 | struct mp3_enc_config mp3_enc; |
146 | struct wavpack_enc_config wavpack_enc; | 146 | struct wavpack_enc_config wavpack_enc; |
147 | struct wav_enc_config wav_enc; | 147 | struct wav_enc_config wav_enc; |
148 | }; | 148 | }; |
149 | }; | 149 | }; |
150 | 150 | ||
151 | /** Encoder chunk macros and definitions **/ | 151 | /** Encoder chunk macros and definitions **/ |
@@ -218,7 +218,7 @@ struct enc_file_event_data | |||
218 | unsigned long new_num_pcm; /* New number of pcm in chunk */ | 218 | unsigned long new_num_pcm; /* New number of pcm in chunk */ |
219 | const char *filename; /* filename to open if ENC_START_FILE */ | 219 | const char *filename; /* filename to open if ENC_START_FILE */ |
220 | int rec_file; /* Current file or < 0 if none */ | 220 | int rec_file; /* Current file or < 0 if none */ |
221 | unsigned long num_pcm_samples; /* Current pcm sample count written to | 221 | unsigned long num_pcm_samples; /* Current pcm sample count written to |
222 | file so far. */ | 222 | file so far. */ |
223 | }; | 223 | }; |
224 | 224 | ||