• 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: [Java API] Downsampling with AudioConverters ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Java API] Downsampling with AudioConverters ?


  • Subject: Re: [Java API] Downsampling with AudioConverters ?
  • From: Hugues Pisapia <email@hidden>
  • Date: Mon, 15 Sep 2003 09:34:46 +0200

Hi,

I'm sorry I wasn't clear enough: behind the float->int conversion, I'd like to perform downsampling as well 44KhZ->32, 22, 11, 8 kHz... I wanted to have the conversion first at the same sampling rate, and then try to modify that... It appear I'll have no luck :-/ even though upsampling and int->float conversion works well since I can play back without difficulties.

thanks,
- Hugues

PS: Sorry about the double posting...


Ev wrote:
>I am trying to convert data I receive directly from the AudioDevice
>through the ioProc with the AudioConverter. Unfortunately, the
>AudioConverter crashes each time with either a badParam or
>InvalidInputSize error... Actually, I'm trying to convert from 32bits
>floats into 16bits integers.

Easy way to convert 32bit float to 16-bit integers:

where sample is the 32-bit float,

short r = round(sample * 0x7FFF);

Don't need a convertor AU for that.

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

  • Follow-Ups:
    • Re: [Java API] Downsampling with AudioConverters ?
      • From: Ev <email@hidden>
References: 
 >Re: [Java API] Downsampling with AudioConverters ? (From: Ev <email@hidden>)

  • Prev by Date: Timer routines
  • Next by Date: Re: Timer routines
  • Previous by thread: Re: [Java API] Downsampling with AudioConverters ?
  • Next by thread: Re: [Java API] Downsampling with AudioConverters ?
  • Index(es):
    • Date
    • Thread