mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Fix f5a5b94 errors. Employ SW volume for select targets on SIM.
Onda VX747 sim was missing a limits #define; #include limits.h in pcm_sw_volume.h. Simply use the software volume control for the SIM volume control rather than the SDL volume control when the target would have it natively. Change-Id: I8e924a2ff1b410f602452d2ea9b691efb82c931e
This commit is contained in:
parent
f5a5b94686
commit
2dd1f37a10
4 changed files with 27 additions and 3 deletions
|
|
@ -51,7 +51,11 @@
|
|||
extern bool debug_audio;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SW_VOLUME_CONTROL
|
||||
static int sim_volume = SDL_MIX_MAXVOLUME;
|
||||
#else
|
||||
static int sim_volume = 0;
|
||||
#endif
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
static int cvt_status = -1;
|
||||
|
|
@ -414,9 +418,11 @@ void pcm_play_dma_postinit(void)
|
|||
{
|
||||
}
|
||||
|
||||
#ifndef HAVE_SW_VOLUME_CONTROL
|
||||
void pcm_set_mixer_volume(int volume)
|
||||
{
|
||||
sim_volume = volume;
|
||||
}
|
||||
#endif /* HAVE_SW_VOLUME_CONTROL */
|
||||
|
||||
#endif /* CONFIG_CODEC == SWCODEC */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue