Message-ID: <31F779E4.CAF@mail.amsinc.com>
Date: Thu, 25 Jul 1996 09:43:00 -0400
From: Joel Nylund <joel_nylund@mail.amsinc.com>
Organization: Washington Redskins
X-Mailer: Mozilla 3.0b5aGold (WinNT; I)
MIME-Version: 1.0
Newsgroups: comp.lang.smalltalk
Subject: Re: Sound in VW 2.5
References: <31E6A439.1421@media.mit.edu> <31F09E3E.2099@gpoint.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: jnylund.amsinc.com
Lines: 33
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!godot.cc.duq.edu!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!newsxfer2.itd.umich.edu!uunet!in3.uu.net!dns.amsinc.com!

mmsystem is the correct dll, the api I think you want is  
"sndPlaySound", at least that is the right one in windows and nt.

If you want your sound player to be platform independent, just create a
public generic sound interface that will use the correct sound class
depending on platform behind the scenes. 

-Joel


Eugene Lipkin wrote:
> 
> Kwin Kramer wrote:
> >
> > Hi,
> >
> > Another question for the cognizenti...
> >
> > Is it possible to play short sounds (I'm thinking of event-specific
> > sounds like beeps and clicks) through VW 2.5. I can't find anything
> > about sound in the documentation.
> >
> > I'm working on a Windows 95 machine, but I really would like my code to
> > be as platform-independent as possible, so I don't want to have to do
> > Windows API calls. Am I out of luck? Do I need some add-on library?
> >
> > All help is much appreciated,
> >
> > Kwin KramerWell, on the basic level there is Screen default beep.  But that's not
> much.  If you want to be more entertaining you can use DLLCC (CPOK) to
> place external calls.  You might want to look at the DLL called mmsystem
> (I could be wrong) or whatever is appropriate for Win95.
> --
> Eugene Lipkin
> elipkin@gpoint.com
> www.gpoint.com
