Re: 15Hz sine wave
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>) |