mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Talk Fix outright disable after first clip
Oops Sorry bout that ;P Change-Id: I2618e2565a218dd5640351dfef3b7cc2a64617d4
This commit is contained in:
parent
b2732222e9
commit
10b6707131
1 changed files with 4 additions and 1 deletions
|
@ -624,6 +624,9 @@ static bool load_voicefile_data(int fd)
|
||||||
/* the first alloc is the clip metadata table */
|
/* the first alloc is the clip metadata table */
|
||||||
metadata_alloc_size = max_clips * sizeof(struct clip_cache_metadata);
|
metadata_alloc_size = max_clips * sizeof(struct clip_cache_metadata);
|
||||||
metadata_table_handle = buflib_alloc(&clip_ctx, metadata_alloc_size);
|
metadata_table_handle = buflib_alloc(&clip_ctx, metadata_alloc_size);
|
||||||
|
if (metadata_table_handle <= 0)
|
||||||
|
talk_status = TALK_STATUS_ERR_OOM;
|
||||||
|
return false;
|
||||||
memset(buflib_get_data(&clip_ctx, metadata_table_handle), 0, metadata_alloc_size);
|
memset(buflib_get_data(&clip_ctx, metadata_table_handle), 0, metadata_alloc_size);
|
||||||
|
|
||||||
load_initial_clips(fd);
|
load_initial_clips(fd);
|
||||||
|
@ -891,7 +894,7 @@ int talk_id(int32_t id, bool enqueue)
|
||||||
int32_t unit;
|
int32_t unit;
|
||||||
int decimals;
|
int decimals;
|
||||||
struct queue_entry clip;
|
struct queue_entry clip;
|
||||||
bool isloaded = false;
|
bool isloaded = true;
|
||||||
|
|
||||||
if (!has_voicefile)
|
if (!has_voicefile)
|
||||||
return 0; /* no voicefile loaded, not an error -> pretent success */
|
return 0; /* no voicefile loaded, not an error -> pretent success */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue