Re: Beep ( duration, frequency )
Re: Beep ( duration, frequency )
- Subject: Re: Beep ( duration, frequency )
- From: Kaydell Leavitt <email@hidden>
- Date: Wed, 23 Sep 2015 17:47:28 -0600
> On Sep 23, 2015, at 5:31 PM, Richard Charles <email@hidden> wrote:
>
>
>> On Sep 23, 2015, at 5:13 PM, Raglan T. Tiger <email@hidden> wrote:
>>
>> Windows has a Beep function:
>>
>> BOOL WINAPI Beep(
>> _In_ DWORD dwFreq,
>> _In_ DWORD dwDuration
>> );
>>
>> Is there anything this easy for OS X?
>
> void NSBeep (void);
>
> This is a standard system alert. The term “beep” implies an alert, meaning that developers do not get to choose the frequency and duration on Apple platforms.
>
> The windows function seems to be misnamed. It should be Tone or Sound or something like that.
>
> --Richard Charles
OP,
You could create a sound and play it with NSSound. The sound can be the frequency and duration that you want it to be, though you’d have to create the sound, such as a .wav file to play it with an NSSound object.
— Kaydell
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden