forked from len0rd/rockbox
mp3_play_init() removed, this was resetting the sound settings. Playback is the normal state anyhow, we could remove this function from the plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4312 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a2861df3c2
commit
e7a48977bf
1 changed files with 4 additions and 3 deletions
|
@ -595,8 +595,11 @@ int PlayTick(int fd)
|
||||||
gPlay.bRefilling = false;
|
gPlay.bRefilling = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gPlay.bRefilling)
|
if (!gPlay.bRefilling
|
||||||
|
&& rb->global_settings->disk_spindown < 20) // condition for test only
|
||||||
|
{
|
||||||
rb->ata_sleep(); // no point in leaving the disk run til timeout
|
rb->ata_sleep(); // no point in leaving the disk run til timeout
|
||||||
|
}
|
||||||
|
|
||||||
gBuf.pBufFill += got_now;
|
gBuf.pBufFill += got_now;
|
||||||
if (gBuf.pBufFill >= gBuf.pBufEnd)
|
if (gBuf.pBufFill >= gBuf.pBufEnd)
|
||||||
|
@ -832,8 +835,6 @@ int main(char* filename)
|
||||||
if (gFileHdr.audio_format == AUDIOFORMAT_MP3_BITSWAPPED)
|
if (gFileHdr.audio_format == AUDIOFORMAT_MP3_BITSWAPPED)
|
||||||
{
|
{
|
||||||
gPlay.bHasAudio = true;
|
gPlay.bHasAudio = true;
|
||||||
rb->mp3_play_init();
|
|
||||||
rb->mpeg_sound_set(SOUND_VOLUME, rb->global_settings->volume);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// start playback by seeking to zero or resume position
|
// start playback by seeking to zero or resume position
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue