forked from len0rd/rockbox
[FixRed] Reove HAVE_PITCHCONTROL from bootloaders, fix warble
Change-Id: I85a3580bd5fac881ca36efc260791d03f0b8c83a
This commit is contained in:
parent
af859acf04
commit
02c256565f
3 changed files with 5 additions and 3 deletions
|
@ -1364,7 +1364,9 @@ Lyre prototype 1 */
|
||||||
#define HAVE_PCM_FULL_DUPLEX
|
#define HAVE_PCM_FULL_DUPLEX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(BOOTLOADER)
|
||||||
#define HAVE_PITCHCONTROL
|
#define HAVE_PITCHCONTROL
|
||||||
|
#endif
|
||||||
|
|
||||||
/* enable logging messages to disk*/
|
/* enable logging messages to disk*/
|
||||||
#if !defined(BOOTLOADER) && !defined(__PCTOOL__)
|
#if !defined(BOOTLOADER) && !defined(__PCTOOL__)
|
||||||
|
|
|
@ -637,7 +637,7 @@ void sound_set_pitch(int32_t pitch)
|
||||||
|
|
||||||
audiohw_set_pitch(pitch);
|
audiohw_set_pitch(pitch);
|
||||||
/* filter out invalid by grabbing the value actually set */
|
/* filter out invalid by grabbing the value actually set */
|
||||||
global_status.resume_pitch = dsp_get_pitch();
|
global_status.resume_pitch = audiohw_get_pitch();
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t sound_get_pitch(void)
|
int32_t sound_get_pitch(void)
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include "dsp-util.h"
|
#include "dsp-util.h"
|
||||||
#include "dsp_proc_entry.h"
|
#include "dsp_proc_entry.h"
|
||||||
#include "tdspeed.h"
|
#include "tdspeed.h"
|
||||||
#ifdef ROCKBOX
|
#if defined(ROCKBOX) && !defined(WARBLE)
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@ void dsp_set_timestretch(int32_t percent)
|
||||||
|
|
||||||
struct dsp_config *dsp = dsp_get_config(CODEC_IDX_AUDIO);
|
struct dsp_config *dsp = dsp_get_config(CODEC_IDX_AUDIO);
|
||||||
dsp_configure(dsp, TIMESTRETCH_SET_FACTOR, percent);
|
dsp_configure(dsp, TIMESTRETCH_SET_FACTOR, percent);
|
||||||
#ifdef ROCKBOX /* filter out invalid by grabbing the value actually set */
|
#if defined(ROCKBOX) && !defined(WARBLE) /* filter out invalid by grabbing the value actually set */
|
||||||
global_status.resume_speed = st->factor;
|
global_status.resume_speed = st->factor;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue