Adding Audio
Adding Audio
- Subject: Adding Audio
- From: Jim Wrenholt <email@hidden>
- Date: Thu, 2 Mar 2006 16:54:22 -0600
I am not sure of the best place to ask this question, so I have
posted it on three lists, carbon-dev, QuickTime-api, and CoreAudio-
api. Please, excuse the duplication for people that subscribe to
multiple lists.
I have a modern Carbon application (10.4 or greater). I am currently
using QuickTime to record and OpenAL to play the sounds. Currently I
am saving the audio files as .wav files, so I can play them back
crossplatform using OpenAL. Maybe CoreAudio is the technology I
should be using?
I have a list of names. I want the user to be able to add audio for
each name so that the name is pronounced when the name is clicked.
I am struggling with how best to do this. Both in terms of interface
and execution.
1.) Import sounds. This is what I am currently doing. I record the
audio in another program, Audacity or QuickTime Player Pro. I save
the sound file to my documents folder. In my program I present an
NavCreateGetFileDialog and let the user pick the file. I copy the
sound file into my application's document bundle. The good part
about this way, is that those programs have good features that allow
you to edit the sound after you record it. The downside is that
it's a little cumbersome to do for very many names.
2.) Paste sounds. This puzzles me? This would speed up the process
and create less temp files. While I can select and copy the part of
the wave form I want in Audacity or QuickTime Player Pro, I'm not
sure what flavor to look for on the pasteboard in my program. Or
what the data will be when I receive it? Will QuickTime Player Pro
give me data that I can save as a .mov? What is the format from
Audacity? I can copy and paste images but have never seen an example
of code for copying and pasting sounds.
3.) Record the sounds. I'm a QuickTime newb, but I can do this, sort
of.. I can use QuickTime sequence grabber (ala. WhackedTV) and
record the audio as a .mov. My only problem with this solution is
trimming the audio. I record it but don't know how to view and edit
the wave form. WhackedTV doesn't display the waveform and I haven't
been able to find an example that does. I'm not sure if this will be
a big chore or worth the effort.
Questions:
A.) What other common programs are available to recording audio?
B.) For an interface example are there any good programs (commercial
or otherwise) that let you add audio to items.
C.) Are there any code examples of copying and pasting sounds?
D.) are there any code examples of editing a waveform?
Any other tips or pointers would be appreciated.
Thanks
Jim Wrenholt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden