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