• 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: Adding Audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Audio


  • Subject: Re: Adding Audio
  • From: john <email@hidden>
  • Date: Thu, 2 Mar 2006 19:10:08 -0500

Hi Jim,

Without knowing exactly what your application is doing, if you are really just adding an audio clip to a name why not keep it simple? Sometimes presenting a simple approach to a user wins out because of usability, even though it may be feature-limited. You may not actually need editing capabilities, just allowing the user to re- record something they dislike may suffice.

If you really want access to the audio data in order to display a waveform or do copy and paste, CoreAudio would probably be better to use than QuickTime (at least it'll probably be more straightforward). There are various example projects demonstrating the usage of CoreAudio in the default install of the developer tools (Developer/ Examples/CoreAudio).

A waveform is just a visual representation of the audio data. You produce one by reading the audio file, creating the representation you desire, and drawing it in a view. I think the MusicKit or SoundKit (can't remember which one) has some code for displaying a waveform, though I'm not sure how good or efficient it is.

Copying and pasting sounds would be in line with how you do copy and paste with the Carbon API in general (I don't use the Carbon API so I'm not sure how it's accomplished off hand), rather than audio data specifically.

-- John


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


References: 
 >Adding Audio (From: Jim Wrenholt <email@hidden>)

  • Prev by Date: Re: Dropouts while Graph is running
  • Next by Date: Core Audio/Midi sync accuracy?
  • Previous by thread: Adding Audio
  • Next by thread: Dropouts while Graph is running
  • Index(es):
    • Date
    • Thread