Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by tacchi Mark G. Tacchi
Mon, 09 Nov 1992 20:37
Simple Sound Question
Author: tacchi Mark G. Tacchi
Date: Mon, 09 Nov 1992 20:37
Date: Mon, 09 Nov 1992 20:37
18 lines
1059 bytes
1059 bytes
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.
--
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."
Re: Simple Sound Question
Author: tacchi Mark G. Tacchi
Date: Tue, 10 Nov 1992 19:28
Date: Tue, 10 Nov 1992 19:28
30 lines
1535 bytes
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."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads