🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1481

Re: Simple Sound Question

#1481
From: tacchi Mark G. Tacchi
Date: Tue, 10 Nov 1992 19:28
30 lines
1535 bytes
In article <BxGuMy.Dtt@ccu.umanitoba.ca> tacchi@next01.cc.umanitoba.ca. (Mark  
G. Tacchi) writes:
> Can anyone point out why this does't make a sound?  I suppose there is more  
to  
> it than these few lines, right?
> 
> @implementation MySound:Sound
> - beep {
>   const char *theName= "Tink.snd";
>   [self setName:theName];
>   [self play];
>   return self;}
> @end
> 
> I can use the SNDPlaySoundfile(path,priority) and that works.

Thanks to those who responded to my posting.  The implementation I will be  
using is simply:

 @implementation MySound:Sound
 - beep {
   [[Sound findSoundFor:"Tink"] play];
   return self;}
 @end

--
Mark G. Tacchi                                    tacchi@next01.cc.umanitoba.ca
  Unix Support Group                                        (NeXT Mail Welcome)
  University of Manitoba Computer Services
 "My opinions are my own, and do not necessarily reflect those of my employer."
Technical Details
Message-ID: <BxIM2w.K3p@ccu.umanitoba.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.tek.com!psgrain!charnel!rat!usc!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!mizar.cc.umanitoba.ca!news
References: <BxGuMy.Dtt@ccu.umanitoba.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!news.tek.com!psgrain!charnel!rat!usc!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!mizar.cc.umanitoba.ca!news
From: tacchi@next01.cc.umanitoba.ca. (Mark G. Tacchi)
Subject: Re: Simple Sound Question
Message-ID: <BxIM2w.K3p@ccu.umanitoba.ca>
Sender: news@ccu.umanitoba.ca
Nntp-Posting-Host: tilley.cc.umanitoba.ca
Organization: University of Manitoba, Winnipeg, Canada
References: <BxGuMy.Dtt@ccu.umanitoba.ca>
Date: Tue, 10 Nov 1992 19:28:06 GMT
Lines: 30