1
0
Fork 0
forked from len0rd/rockbox

Boosted the volume. Now handles end-of-song better

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@786 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-05-29 10:26:06 +00:00
parent 7b719114a1
commit f779e26c89

View file

@ -354,6 +354,8 @@ static void mpeg_thread(void)
read too large chunks because the bitswapping will take
too much time. We must keep the DMA happy and also give
the other threads a chance to run. */
if(filling)
{
DEBUGF("R\n");
len = read(mpeg_file, mp3buf+mp3buf_write, amount_to_read);
if(len)
@ -371,8 +373,8 @@ static void mpeg_thread(void)
/* Tell ourselves that we want more data */
queue_post(&mpeg_queue, MPEG_NEED_DATA, 0);
/* And while we're at it, see if we have startet playing
yet. If not, do it. */
/* And while we're at it, see if we have started
playing yet. If not, do it. */
if(play_pending)
{
play_pending = false;
@ -393,7 +395,6 @@ static void mpeg_thread(void)
#if 1
/* No more data to play */
DEBUGF("Finished playing\n");
playing = false;
filling = false;
#else
next_track();
@ -411,6 +412,7 @@ static void mpeg_thread(void)
}
#endif
}
}
break;
}
}
@ -482,7 +484,7 @@ void mpeg_resume(void)
void mpeg_volume(int percent)
{
int volume = 0x2c * percent / 100;
int volume = 0x38 * percent / 100;
dac_volume(volume);
}