Print less audio - related messages.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
e0fd978d05
commit
093e4d7146
1 changed files with 5 additions and 10 deletions
|
@ -191,17 +191,12 @@ namespace RDirectSound
|
||||||
if (active)
|
if (active)
|
||||||
{
|
{
|
||||||
// I am not sure this is any useful
|
// I am not sure this is any useful
|
||||||
if (underrun_likely)
|
static unsigned lastOccupancy = 0;
|
||||||
|
const int diff = std::abs(int(lastOccupancy) - int(occupancy));
|
||||||
|
if (diff >= 5)
|
||||||
{
|
{
|
||||||
if (occupancy < 20)
|
log_cb(RETRO_LOG_INFO, "RA2: %s occupancy = %d, underrun_likely = %d\n", __FUNCTION__, occupancy, underrun_likely);
|
||||||
{
|
lastOccupancy = occupancy;
|
||||||
log_cb(RETRO_LOG_INFO, "RA2: %s occupancy = %d, underrun_likely = %d\n", __FUNCTION__, occupancy, underrun_likely);
|
|
||||||
playSilence(10);
|
|
||||||
}
|
|
||||||
if (occupancy > 80)
|
|
||||||
{
|
|
||||||
log_cb(RETRO_LOG_INFO, "RA2: %s occupancy = %d, underrun_likely = %d\n", __FUNCTION__, occupancy, underrun_likely);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue