comparison src/psf2/eng_psf2.c @ 2750:6319a15e7243

Plugin is mostly usable now.
author William Pitcock <nenolod@atheme.org>
date Mon, 30 Jun 2008 23:39:49 -0500
parents f0547285577e
children f1482af6384c
comparison
equal deleted inserted replaced
2749:290357060cdb 2750:6319a15e7243
588 588
589 int32 psf2_execute(InputPlayback *playback) 589 int32 psf2_execute(InputPlayback *playback)
590 { 590 {
591 int i; 591 int i;
592 592
593 for (i = 0; i < 44100 / 60; i++) 593 while (playback->playing && !playback->eof)
594 { 594 {
595 SPU2async(1, playback); 595 for (i = 0; i < 44100 / 60; i++)
596 ps2_hw_slice(); 596 {
597 } 597 SPU2async(1, playback);
598 598 ps2_hw_slice();
599 ps2_hw_frame(); 599 }
600 600
601 ps2_hw_frame();
602 }
603
601 return AO_SUCCESS; 604 return AO_SUCCESS;
602 } 605 }
603 606
604 int32 psf2_stop(void) 607 int32 psf2_stop(void)
605 { 608 {