aboutsummaryrefslogtreecommitdiff
path: root/examples/sound/cdstream/stream.c
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2023-06-20 13:27:34 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2023-06-20 13:27:34 +0200
commit79a966486615e60be3a37d278945dc3dd0fd933b (patch)
tree4a4cd8412c10b9646ff1966af964a314c0567005 /examples/sound/cdstream/stream.c
parentced21c69f7b399dce169069334c1424e5254d582 (diff)
downloadpsn00bsdk-79a966486615e60be3a37d278945dc3dd0fd933b.tar.gz
More SPU streaming example tweaks
Diffstat (limited to 'examples/sound/cdstream/stream.c')
-rw-r--r--examples/sound/cdstream/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sound/cdstream/stream.c b/examples/sound/cdstream/stream.c
index bf73b2f..aaf5703 100644
--- a/examples/sound/cdstream/stream.c
+++ b/examples/sound/cdstream/stream.c
@@ -145,14 +145,14 @@ void Stream_Destroy(Stream_Context *ctx) {
ExitCriticalSection();
}
-bool Stream_Start(Stream_Context *ctx) {
+bool Stream_Start(Stream_Context *ctx, bool resume) {
if (_active_ctx)
return false;
_active_ctx = ctx;
// Wait for the first chunk to be buffered and ready to play.
- if (!ctx->chunk_counter) {
+ if (!resume) {
_spu_irq_handler();
SpuIsTransferCompleted(SPU_TRANSFER_WAIT);
}