mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[3/4] Completely remove HWCODEC support
'swcodec' is now always set (and recording_swcodec for recording-capable units) in feature.txt so the manual and language strings don't need to all be fixed up. Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
This commit is contained in:
parent
0c4f89370d
commit
8cb555460f
207 changed files with 322 additions and 5594 deletions
|
@ -902,19 +902,11 @@ static int last_right;
|
|||
|
||||
static void get_peaks(int *left, int *right)
|
||||
{
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
static struct pcm_peaks peaks;
|
||||
rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK,
|
||||
&peaks);
|
||||
*left = peaks.left;
|
||||
*right = peaks.right;
|
||||
#elif defined (SIMULATOR)
|
||||
*left = rand() % 0x8000;
|
||||
*right = rand() % 0x8000;
|
||||
#else
|
||||
*left = 0;
|
||||
*right = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static long get_next_delay(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue