home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6260 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: daily-planet.execpc.com!usenet
  2. From: innuendo@execpc.com (Jonathan Gapen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: DataTypes/DTST_Ram Problem
  5. Date: 25 Mar 1996 23:35:12 GMT
  6. Organization: esCom Amiga Madison Enthusiast's Organisation
  7. Message-ID: <4j7ajg$c3i@daily-planet.execpc.com>
  8. References: <Pine.A32.3.91.960325190020.33946A-100000@asterix.uni-muenster.de>
  9. NNTP-Posting-Host: mealworm.execpc.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  14.  
  15.  
  16. In article <Pine.A32.3.91.960325190020.33946A-100000@asterix.uni-muenster.de> Stefan Tiemann <tiemant@uni-muenster.de> writes:
  17. > Hi!
  18. > I want to call NewDTObjectA() with a buffer in ram, so I tried
  19. > "DTA_SourceType, DTST_Ram", but i does not work (IoErr gives 0, but width,
  20. > height and depth of the picture is is always 0, too). I tried to give the
  21. > address of the buffer as "name" and/or as DTA_Handle, but always got
  22. > the same result.
  23. > Everything works fine, when I save the buffer to a file and call
  24. > NewDTObjectA() with the filename in "name" and let DTA_SourceType be the
  25. > default (DTST_File), but as the picture is included in a bigger file, this
  26. > does not make much sense... or is it possible to Seek() to the position of
  27. > the picture and give NewDTObjectA() the FileHandle (my first tests with this
  28. > failed, too). 
  29. > How do I have to give the address to NewDTObject? 
  30.  
  31.    What's the format of the picture you are using?  Have you tried any other
  32. picture formats, to see if they work?
  33.    DTA_SourceType handling is supposed to be done inside the class which
  34. actually loads the data, like jfif.datatype or 8svx.datatype, usually with a
  35. switch() statement to choose the correct loading routine.  However, I've
  36. looked at source for quite a number of these classes, and very few of them
  37. implement DTST_RAM!
  38.    Of course, I've mainly looked at sound sub-classes, but I'd check to make
  39. sure that the class you're trying to use actually implements DTST_RAM.
  40.  
  41. -- 
  42. Jonathan Gapen (innuendo@execpc.com)
  43. Bread in, toast out. How does it DO that?
  44.