• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Beep ( duration, frequency )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Beep ( duration, frequency ) (From: "Raglan T. Tiger" <email@hidden>)
 >Re: Beep ( duration, frequency ) (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: Beep ( duration, frequency )
  • Next by Date: Re: Beep ( duration, frequency )
  • Previous by thread: Re: Beep ( duration, frequency )
  • Next by thread: Re: Beep ( duration, frequency )
  • Index(es):
    • Date
    • Thread