forked from len0rd/rockbox
erosqnative: Fix operation in a simulator environment
Real hardware needs 24-bit PCM data supplied, but simulator is still 16bit only. Change-Id: I20b88a7cb27105829fe5c9e9c434f559a6dbbb60
This commit is contained in:
parent
e6851a55ed
commit
a76ecf1725
2 changed files with 4 additions and 2 deletions
|
@ -2631,7 +2631,7 @@ static bool dbg_device_data(void)
|
|||
simplelist_setline("Device data RAW:");
|
||||
for (size_t i = 0; i < device_data.length; i += 4)
|
||||
{
|
||||
simplelist_addline("%02x: %02x %02x %02x %02x", i,
|
||||
simplelist_addline("%02zx: %02x %02x %02x %02x", i,
|
||||
device_data.payload[i + 0], device_data.payload[i + 1],
|
||||
device_data.payload[i + 2], device_data.payload[i + 3]);
|
||||
}
|
||||
|
|
|
@ -77,8 +77,10 @@
|
|||
#define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP)
|
||||
#define AUDIOHW_HAVE_SHORT_ROLL_OFF
|
||||
|
||||
#ifndef SIMULATOR
|
||||
/* use high-bitdepth volume scaling */
|
||||
#define PCM_NATIVE_BITDEPTH 24
|
||||
#endif
|
||||
|
||||
/* Button defines */
|
||||
#define CONFIG_KEYPAD EROSQ_PAD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue