Re: Facing the End ;-)

Tyler Dauwalder <tyler-cyCl/[email protected]>
Newsgroups gmane.os.openbeos.storage
Message-ID <[email protected]>
> > > * Quite at the beginning of the file one finds a enumeration of
> > > P_UNKNOWN, P_UNREADABLE, P_ADD_ON and P_AUDIO. Though the `P_' 
> > > sounds
> > > a
> > > bit like `partition', I think, these are session types
> > > (Session::type).
> > > P_AUDIO is clear and P_ADD_ON probably means, that there's a 
> > > partition
> > > add-on recognizing the session contents. I'm not sure, where the
> > > difference between the other two is. Maybe P_UNKNOWN is just the 
> > > value
> > > for `uninitialized'. Then P_UNREADABLE stands for a session for 
> > > that
> > > no
> > > partition add-on exists and that isn't audio.
> >
> > Sounds like a reasonable guess to me. For CDs at least, one can
> > determine from the table of contents if the session contains audio 
> > or
> > data tracks.
> 
> Yep. BTW, the session_info::flags is already capable of representing 
> that
> information: Data sessions have the B_DATA_SESSION flag set, audio 
> session
> have not. We could also reserve some more bits to be filtered by a 
> type
> mask, but I don't know, whether that would be needed in the 
> foreseeable
> future (Be used a bool BTW).

I think I'm currently using B_DATA_SESSION in all cases. I'll have to 
fix that, thanks. 

-Tyler
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.