• 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: 15Hz sine wave
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 15Hz sine wave


  • Subject: Re: 15Hz sine wave
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Tue, 8 Jul 2003 10:20:05 +0100

On Tuesday, July 8, 2003, at 01:50 am, Raiyan Kabir wrote:

Dear All,

I'm a new comer to this mailing list. I'm a beginner. I want to make an App that can produce a 15Hz sine wave through my Audio Speakers. But I could not find such function in Cocoa API. Can any body help me to find such a Class and method. I think there is Carbon. But I don't know how to program Carbon. Please help me, so that I can drive those mosquitos away from my computer table.

As far as I know the only support for sound in Cocoa is the NSSound class, which *might* support looping in file formats that contain that information (I think AIFF does, for example). You'd have to make your sound wave into a file in a format that NSSound understands, and if you want it to be continuous you'd need to set the looping points (*if* that works with NSSound... I haven't tried it).

You might be better off looking at Core Audio for this type of application; I think there are some sample programs that demonstrate how to set it up... all you'd need to do is change one of them so that it fills its buffers with the next bit of your 15Hz sine wave.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >(no subject) (From: Raiyan Kabir <email@hidden>)

  • Prev by Date: Re: accessing files larger than 2GB
  • Next by Date: Method without receiver
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread