diff options
| author | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-03-12 14:28:11 +0100 |
|---|---|---|
| committer | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-03-12 14:28:11 +0100 |
| commit | 8c68b4b8a5bf7757b8e4d6bc2f68f10584b0deb1 (patch) | |
| tree | 71e7927f56c5f11350f236e32b396adac3f75e3a /examples/sound | |
| parent | 93f0a6d23ebed50833f565f949f351c2b80853ac (diff) | |
| download | psn00bsdk-8c68b4b8a5bf7757b8e4d6bc2f68f10584b0deb1.tar.gz | |
Minor fixes, add C++ placement new, n00bdemo 573 support
Diffstat (limited to 'examples/sound')
| -rw-r--r-- | examples/sound/spustream/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/sound/spustream/main.c b/examples/sound/spustream/main.c index 6284c6d..6b9db93 100644 --- a/examples/sound/spustream/main.c +++ b/examples/sound/spustream/main.c @@ -308,6 +308,10 @@ void init_stream(CdlFILE *file) { CdReadyCallback(&cd_event_handler); ExitCriticalSection(); + // Configure the CD drive to read 2048-byte sectors at 2x speed. + uint8_t mode = CdlModeSpeed; + CdControl(CdlSetmode, (const uint8_t *) &mode, 0); + // Set the initial LBA of the stream file, which is going to be incremented // as the stream is played. str_ctx.lba = CdPosToInt(&(file->pos)); |
