• 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: compress audio programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compress audio programmatically


  • Subject: Re: compress audio programmatically
  • From: Andrew Smith <email@hidden>
  • Date: Thu, 30 Apr 2009 14:22:27 -0600

I have it working, except that now if I try to change from

outputFormat.mFormatID = kAudioFormatAppleIMA4;

to say,

outputFormat.mFormatID = kAudioFormatMPEG4AAC

it doesn't work. Not sure what's wrong, it seems to lockup.

Is there a trick to using other encoding formats?

best regards,
Andrew


On Wednesday, April 29, 2009, at 10:04PM, "William Stewart" <email@hidden> wrote:
>Have a look at the ConvertFile example in /Developer/Examples/
>CoreAudio/SimpleSDK/
>
>that gives you a basic example of how to use the converter
>
>Bill
>
>On Apr 29, 2009, at 6:52 PM, Andrew Smith wrote:
>
>>
>> Thanks for the information. I had no idea that I could use the
>> AudioConverter on the iPhone.
>>
>> I think I can figure out how to set it up, but I'm wondering now if
>> its possible for me to use the AudioConverter in real time, from
>> within my recording callback. Or, do I need to wait until the file
>> is saved, and then convert it.
>>
>> It seems that AudioConverterFillComplexBuffer wants its own
>> callback, so I'm confused on this point.
>>
>> regards
>> Andrew Smith
>>
>>
>> On Wednesday, April 29, 2009, at 06:33PM, "William Stewart" <email@hidden
>> > wrote:
>>> what kind of compression do you want?
>>>
>>> you can do any of the compression that you currently would do with
>>> audio queue with Extended Audio File - (which uses the audio
>>> converter, which you can use as well)
>>>
>>> On Apr 29, 2009, at 2:09 PM, Andrew Smith wrote:
>>>
>>>> Hello
>>>>
>>>> (iPhone platform)
>>>>
>>>> I need to do some audio analysis on the incoming audio stream, and
>>>> then save it to a file. I am doing this now successfully using
>>>> AudioQueues.
>>>>
>>>> I would like to be able to compress the audio so that the saved
>>>> files will not be so large. To my understanding, if I set up a
>>>> compressed format, then the incoming audio in the handler is already
>>>> compressed, so I can't analyze it. I have tried this.
>>>>
>>>> Is anyone aware of either 1) a way to use the SDK to do the
>>>> compression, or 2) an existing library or some code that I could
>>>> link in, to compress the PCM manually.
>>>>
>>>> many thanks
>>>> Andrew Smith
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>>
>> _______________________________________________
>> 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
>
>
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: compress audio programmatically
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Crash in ExtAudioFileOpenURL on iPhone device with 3 threads
  • Next by Date: Re: compress audio programmatically
  • Previous by thread: Re: compress audio programmatically
  • Next by thread: Re: compress audio programmatically
  • Index(es):
    • Date
    • Thread