diff options
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 7 | ||||
-rw-r--r-- | docs/CREDITS | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index e0d4595122..ad4613ed99 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -717,9 +717,10 @@ const char *get_token_value(struct gui_wps *gwps, | |||
717 | #if (CONFIG_CODEC != MAS3507D) | 717 | #if (CONFIG_CODEC != MAS3507D) |
718 | case WPS_TOKEN_SOUND_PITCH: | 718 | case WPS_TOKEN_SOUND_PITCH: |
719 | { | 719 | { |
720 | int val = sound_get_pitch(); | 720 | int32_t pitch = sound_get_pitch(); |
721 | snprintf(buf, buf_size, "%d.%d", | 721 | snprintf(buf, buf_size, "%ld.%ld", |
722 | val / 10, val % 10); | 722 | pitch / PITCH_SPEED_PRECISION, |
723 | (pitch % PITCH_SPEED_PRECISION) / (PITCH_SPEED_PRECISION / 10)); | ||
723 | return buf; | 724 | return buf; |
724 | } | 725 | } |
725 | #endif | 726 | #endif |
diff --git a/docs/CREDITS b/docs/CREDITS index 52d570d3b4..093ee194eb 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -498,6 +498,7 @@ Carsten Schreiter | |||
498 | Michael Sparmann | 498 | Michael Sparmann |
499 | Seth Opgenorth | 499 | Seth Opgenorth |
500 | Jonas Aaberg | 500 | Jonas Aaberg |
501 | Junio C Hamano | ||
501 | 502 | ||
502 | The libmad team | 503 | The libmad team |
503 | The wavpack team | 504 | The wavpack team |