Results 1 to 4 of 4

Thread: FileStreams representing physical devices

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91

    FileStreams representing physical devices

    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?

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Actually you'd have to create a class that derives from Stream and implement everything by yourself
    \m/\m/

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    Nice of them to not do it for us...

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    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.
    \m/\m/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width