In the Framework SDK it says that a FileStream object can represent physical devices as well as files, but conveniently doesn't say any more. If I wanted to represent an audio CD as a FileStream how would I do that?
Printable View
In the Framework SDK it says that a FileStream object can represent physical devices as well as files, but conveniently doesn't say any more. If I wanted to represent an audio CD as a FileStream how would I do that?
Actually you'd have to create a class that derives from Stream and implement everything by yourself :rolleyes:
Nice of them to not do it for us...
You can use the FileStream and do whatever you want.
The Stream object is just an 'interface' to which you can derive other objects. It's the same with the 'object' type. You can do almost nothing with it, but you need it in EVERY class..
Search over CodeProject.com as I saw sometime ago some project which implemented a AudioStream, maybe that's what you're looking for.