mirror of
				https://github.com/Rockbox/rockbox.git
				synced 2025-10-26 23:36:37 -04:00 
			
		
		
		
	plugins trade talk_value for talk_value_decimal
talk_value is just talk_value_decimal with 0 decimals
lets add the extended function instead
static inline int talk_val(long n, int unit, bool enqueue)
{
    #define NODECIMALS 0
    return rb->talk_value_decimal(n, unit, NODECIMALS, enqueue);
}
Change-Id: Iaba3d2f95785f2e1855e294ccf099a977bb6cb20
			
			
This commit is contained in:
		
							parent
							
								
									4cbb5b4201
								
							
						
					
					
						commit
						24e8fa317e
					
				
					 6 changed files with 24 additions and 13 deletions
				
			
		|  | @ -470,6 +470,12 @@ static bool mpeg_set_int(const char *string, const char *unit, | |||
|     return usb; | ||||
| } | ||||
| 
 | ||||
| static inline int talk_val(long n, int unit, bool enqueue) | ||||
| { | ||||
|     #define NODECIMALS 0 | ||||
|     return rb->talk_value_decimal(n, unit, NODECIMALS, enqueue); | ||||
| } | ||||
| 
 | ||||
| static int32_t backlight_brightness_getlang(int value, int unit) | ||||
| { | ||||
|     if (value < 0) | ||||
|  | @ -988,8 +994,8 @@ static int get_start_time(uint32_t duration) | |||
|                     mpegplayer_iram_preserve(); | ||||
| #endif | ||||
|                     rb->talk_disable(false); | ||||
|                     rb->talk_value(resume_time / TS_SECOND, UNIT_TIME, false); | ||||
|                     rb->talk_value(resume_time * 100 / duration, UNIT_PERCENT, true); | ||||
|                     talk_val(resume_time / TS_SECOND, UNIT_TIME, false); | ||||
|                     talk_val(resume_time * 100 / duration, UNIT_PERCENT, true); | ||||
|                 } | ||||
|                 sliding = false; | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue