Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!hsgj From: hsgj@batcomputer.tn.cornell.edu (Dan Green) Newsgroups: comp.sys.amiga Subject: Re: Deluxe MCS, crashing, and a SMUS question Message-ID: <2091@batcomputer.tn.cornell.edu> Date: Wed, 21-Jan-87 00:17:45 EST Article-I.D.: batcompu.2091 Posted: Wed Jan 21 00:17:45 1987 Date-Received: Wed, 21-Jan-87 22:25:51 EST References: <6550@alice.uUCp> Reply-To: hsgj@batcomputer.UUCP (Dan Green) Distribution: world Organization: Theory Center, Cornell University, Ithaca NY Lines: 25 In article <6550@alice.uUCp> d@alice writes: >If the thing *did* work from the CLI (that is, PlaySMUS), how could >a body get it working from their own C Programs? (I want to know >this because I'd like to do the same thing with SeeILBM and such.) > ># Daniel Rosenberg (CE) AT&T Bell Labs, Murray Hill / Mi parolas Esperanton. ># disclaimer: These opinions are necessarily mine, not my employer's. ># UUCP: {ihnp4 || research || allegra}!alice!d AT&T: 201/582-6455 (work) ># INTERNET: d%alice%btl@csnet-relay or d@alice.att.com You are what you is. There is an AmigaDOS command called Execute. The syntax is: Success = Execute ("PlaySMUS filename",input,output); input and output are AmigaDos filehandles to an input or output file. For your case, you'd probably set them to NULL. Execute is a cheap way to run a CLI command from inside a C program; I use it all the time to set the Date from my "clock" since I don't think there is an AmigaDos (as opposed to CLI) setdate program. PS: Reference is AmigaDOS Developers Manual. -- Dan Green -- ARPA: hsgj%vax2.ccs.cornell.edu@cu-arpa.cs.cornell.edu UUCP: ihnp4!cornell!batcomputer!hsgj BITNET: hsgj@cornella