Streaming from CD or DVD

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
R0
Posts: 7
Joined: Sat Oct 02, 2004 6:38 am

Streaming from CD or DVD

Post by R0 »

Can somebody explain advantages of data streaming from disc if there are any? I noticed some functions like cdStRead in libcdvd.h but I don't know what they are for. It seems there was no discussion of such features or at least I failed to find it (no topics or code examples).

Btw, what's difference between CdStop() and CdPause() ?
Guest

Post by Guest »

There are others more expert at this, but they must be sleeping right now.

I am guessing that some data, such as music and videos, are most efficiently streamed from the disk. In other words, a constant sequential stream of data, as opposed to data access in traditional random-access methods, such as program/game data.

cdstop() and cdpause() are probably equivalent to the same concept on a normal cd player - stop causes all current playback to end and the laser usually resets to the beginning of the disk. Pause causes the laser to stop tracking and the stream is temporarily stopped.

This is just speculation mind you. It would certainly be more helpful if others responded. ;)
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

cdStRead continually fills a ringbuffer from the cd without having to tell it to read the next chunk.

It could be used for something like setting the drive to 1x speed and streaming from an audio cd to a buffer which is read from by a cd audio playback thread, and thus wouldn't require you to manually read the sectors each frame.

AFAIK this isn't used very often, even by commercial games. Chances are it's not something you'll have a use for either.

At least this is what I've been told, I don't have a use for it so I haven't played with it ;)
Shoot Pixels Not People!
Makeshift Development
Post Reply