• 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: Changing mSampleRate for an Audio File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing mSampleRate for an Audio File


  • Subject: Re: Changing mSampleRate for an Audio File
  • From: "Asher Vander Heiden" <email@hidden>
  • Date: Thu, 20 May 2004 20:57:41 +1000

Hey Bob,

I've already tried what you suggest.
The problem is that I get errors when I try to fill the Destination Audio Fiie with the data from the Source Audio File. Why? because they are of different formats I'm guessing?

At the moment I'm using the 'auprocess' with the 'ReverseOfflineUnit' and the same thing happens. When I try to use different AudioStreamBasicDescription for the Destination Audio Fiie and Source Audio File it fails to accept this.

This is why I needed to change the mSampleRate of the Destination Audio Fiie AFTER I have created the file and completed all the signal processing.

Thanks for your answer,

Asher


From: Bob Aron <email@hidden>
To: Asher Vander Heiden <email@hidden>
Subject: Re: Changing mSampleRate for an Audio File
Date: Wed, 19 May 2004 09:21:40 -0700

It sounds like you are not setting the AudioStreamBasicDescription correctly when you create the new audio file. Are you using AudioFileCreate() and passing it the ASBD describing your newly formatted data? What format is the data that you are converting from and to?

bob aron
____________________________________________
CoreAudio Team
Apple Computer Inc.
(408) 974-1221
email@hidden

On May 19, 2004, at 3:46 AM, Asher Vander Heiden wrote:

Hello,

Is it possible to change the 'sample rate' of an AudioFile, without using the Audio Converter?

The reason for this is that I have been working on my own Sample Rate Converter, which works on manipulating the Audio Stream of an existing Audio File and saving the stream into a New file. So therefore the New file that has been created has samples in the new sample rate, while the AudioStreamBasicDescription, of the New file, displays the old sample rate.

I'm finding it really difficult to manually change the value of mSampleRate within the New files AudioStreamBasicDescription. Even if I could do this I'm not quite sure that this is the only value that needs to be changed within AudioStreamBasicDescription.

I would appreciate it if someone could tell me how this could be done.......
I'm beginning to think that maybe it can't....

Please Help ....

Asher Vander Heiden

_________________________________________________________________
Personalise your mobile chart ringtones and polyphonics. Go to http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp
_______________________________________________
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.


------------------------------------------------------------------
Rule 17:

Wine & Cheese, need I say more?

summarized from the '113 Rules of Leisure'
- as decreed by the Leisure Master

_________________________________________________________________
What's your house worth? Click here to find out: http://www.ninemsn.realestate.com.au
_______________________________________________
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: Changing mSampleRate for an Audio File
      • From: William Stewart <email@hidden>
    • Apple Loops file format spec
      • From: Dan Nigrin <email@hidden>
  • Prev by Date: Changing mSampleRate for an Audio File
  • Next by Date: Apple Loops file format spec
  • Previous by thread: Changing mSampleRate for an Audio File
  • Next by thread: Apple Loops file format spec
  • Index(es):
    • Date
    • Thread