• 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: "Paul Sanders" <email@hidden>
  • Date: Fri, 9 Jul 2010 11:20:19 +0100

WAV files are normally little-endian.  Other than that, it looks OK.
 
Regards,
 
Paul Sanders
 
----- Original Message -----
From: Sanoj Nambi
To: email@hidden
Sent: Thursday, July 08, 2010 9:02 PM
Subject: What is the AudioStreamBasicDescription(asbd) for a wav file

Hey,

I am writing the sound data from the mixer to a file of caf file
here is the asbd for caf

        anASBD.mFormatID = kAudioFormatLinearPCM;

anASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger |

                      kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsPacked;

anASBD.mSampleRate = 44100;

anASBD.mChannelsPerFrame = 2;

anASBD.mFramesPerPacket = 1;

anASBD.mBytesPerPacket=anASBD.mChannelsPerFrame * sizeof (SInt16);

anASBD.mBytesPerFrame =anASBD.mChannelsPerFrame * sizeof (SInt16);

anASBD.mBitsPerChannel = 16;


this part is working fine.But Now I need to write to a 'wav' file instead for caf.

I tried all possible combination but failed every time.

Can anyone help me with the correct asbd for WAV file.


Thank you


Regards,

Nambiar

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

  • Prev by Date: Calling glBindBufferOES fails within inputCallback(), but not elsewhere
  • Next by Date: RemoteIO callback functions
  • 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