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

  1. Path: pravda.aa.msen.com!not-for-mail
  2. From: crandall@mail.msen.com (Chad Randall)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Sound Datatypes - Help!
  5. Date: 7 Feb 1996 13:18:19 GMT
  6. Organization: Msen, Inc. -- Ann Arbor, MI.
  7. Message-ID: <4fa8qr$5vg@pravda.aa.msen.com>
  8. References: <9602052146.AA0007n@bmatthew.demon.co.uk>
  9. NNTP-Posting-Host: conch.aa.msen.com
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Ben Matthew (ben@bmatthew.demon.co.uk) wrote:
  13. : Just a quick post to appeal to all you datatypes coders out there.  I've
  14. : scanned tons of source code and I'll be buggered if I can find any info to
  15. : do with playing sound files via the sound.datatype.
  16. : I've got code to do pictures and I've got the hang of that and I've played
  17. : around for hours to write some sound stuff but alas no luck.  I can
  18. : identify files as sounds but not DoMethod them.  Help send me some code
  19. : please - anyone.  I'm using C, by the way, not that 'orrible assembler
  20. : stuff!
  21.  
  22. There is a game on Aminet called KRSnake that has source in E.
  23.  
  24. But here is a simplified procedure:
  25.  
  26. sound:=NewDTObjectA(name,[DTA_GROUPID,GID_SOUND,DTA_SOURCETYPE,DTST_FILE,TAG_END])
  27.  
  28.        DoDTMethodA(sound,NIL,NIL,[DTM_TRIGGER,NIL,STM_PLAY,NIL,TAG_END])
  29.  
  30.        DisposeDTObject(sound)
  31.  
  32. Those [blah,NIL,blah,NIL] are just taglists (longs) in E...
  33.