1
0
Fork 0
forked from len0rd/rockbox

Fixed a null pointer problem which caused crashing. Playback should be

now more stable.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6660 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2005-06-10 20:29:35 +00:00
parent 7e0b6880d9
commit 9ff373cb65
2 changed files with 5 additions and 5 deletions

View file

@ -240,18 +240,16 @@ void pcm_play_stop(void)
void pcm_play_pause(bool play)
{
pcm_paused = !play;
if(pcm_paused && play && pcmbuf_unplayed_bytes)
{
/* Enable the FIFO and force one write to it */
IIS2CONFIG = (pcm_freq << 12) | 0x300;
DCR0 |= DMA_START;
pcm_paused = false;
}
else if(!pcm_paused && !play)
{
IIS2CONFIG = 0x800;
pcm_paused = true;
}
pcm_boost(false);
}