• 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: What is the AudioStreamBasicDescription(asbd) for a wav file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the AudioStreamBasicDescription(asbd) for a wav file


  • Subject: Re: What is the AudioStreamBasicDescription(asbd) for a wav file
  • From: Sanoj Nambi <email@hidden>
  • Date: Fri, 9 Jul 2010 15:16:11 -0500

I used 

anASBD.mSampleRate = 44100.0;

anASBD.mFormatID = kAudioFormatLinearPCM;

anASBD.mFormatFlags  = kAudioFormatFlagsAudioUnitCanonical;

anASBD.mBytesPerPacket = sizeof(AudioUnitSampleType)*2;  

anASBD.mFramesPerPacket = 1;

anASBD.mBytesPerFrame = sizeof(AudioUnitSampleType)*2;

anASBD.mChannelsPerFrame = 2;

anASBD.mBitsPerChannel = 8 * sizeof(AudioUnitSampleType);

anASBD.mReserved = 0;

anASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger |

           kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked;


and it is creating a wav file.I can also see the size of the file is 5 MB.But I am unable to play.


I dont want to use some other framework unless i have no other option.


Regards,

Nambiar


On Fri, Jul 9, 2010 at 10:03 AM, Paul Sanders <email@hidden> wrote:
> I use the EAFWrite class from the iPhone version of the DIRAC LE
> project (first link on http://www.dspdimension.com/download/). This
> works perfectly for all popular file formats and you can interface
> with it using float arrays instead of ABLs.
>
> just my 2 cents
> --th

The Extended Audio File Services routines are not hard to use though, once you learn how to set things up for any particular file format, and you can choose a 'client data format' to suit yourself so life is good in that department.  The advantage of going this route, of course, is that you avoid a dependency on any additional frameworks.  Or maybe you can just include the EAFWrite class in your source tree, that would be OK.
 
I am, however, extremely pleased to be directed to some decent, free, pitch-shifting code.  That is very cool, thank you th.

What's an ABL?  ... OK, I got it: AudioBufferList.  Yeah, they're a bit of a nuisance.  Read and write from a simple buffer is what most people want at that level.  I just have a little wrapper class (trivial, almost) of my own to hide that stuff.  Maybe I just reinvented the wheel there.

Regards,

Paul Sanders.

 _______________________________________________
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: What is the AudioStreamBasicDescription(asbd) for a wav file
      • From: "Paul Sanders" <email@hidden>
References: 
 >What is the AudioStreamBasicDescription(asbd) for a wav file (From: Sanoj Nambi <email@hidden>)
 >Re: What is the AudioStreamBasicDescription(asbd) for a wav file (From: "Paul Sanders" <email@hidden>)
 >Re: What is the AudioStreamBasicDescription(asbd) for a wav file (From: tahome izwah <email@hidden>)
 >Re: What is the AudioStreamBasicDescription(asbd) for a wav file (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: long double data type
  • Next by Date: Re: What is the AudioStreamBasicDescription(asbd) for a wav file
  • Previous by thread: Re: What is the AudioStreamBasicDescription(asbd) for a wav file
  • Next by thread: Re: What is the AudioStreamBasicDescription(asbd) for a wav file
  • Index(es):
    • Date
    • Thread