• 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: Inconsistencies with large WAV file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistencies with large WAV file


  • Subject: Re: Inconsistencies with large WAV file
  • From: tahome izwah <email@hidden>
  • Date: Thu, 3 Dec 2009 06:33:51 +0100

Hi Doug, the data chunk size in the file is 0x601AD6DB, which is
indeed 3,688,241,760 after performing byte swapping.

I'll try the workaround and report back with my findings.

Thank you again!
--th

2009/12/3 Doug Wyatt <email@hidden>:
> Tahome, can you hexdump the file, find the beginning of the 'data' chunk and get its exact size?
>
> struct WAVEDataChunk {
>  UInt32                        chunkID;
>  SInt32                        chunkSize;      // signed. no wonder :-(
> };
>
> I'm really hoping it is 3,688,241,760, because if it is, then the workaround is:
>
> SInt64 numPackets;
> (Ext)AudioFileGetProperty( ... &numPackets);
>
> if (numPackets < 0) {
>        numPackets = (4294967296LL + bytesPerFrame * numPackets) / bytesPerFrame;
> }
>
>
 _______________________________________________
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

References: 
 >Re: Inconsistencies with large WAV file (From: Doug Wyatt <email@hidden>)
 >Re: Inconsistencies with large WAV file (From: Howard Moon <email@hidden>)
 >Re: Inconsistencies with large WAV file (From: Doug Wyatt <email@hidden>)
 >Re: Inconsistencies with large WAV file (From: tahome izwah <email@hidden>)
 >Re: Inconsistencies with large WAV file (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: Audio recording bitdepth
  • Next by Date: Re: buggy AUMatrixReverb, reaper ??
  • Previous by thread: Re: Inconsistencies with large WAV file
  • Next by thread: Detecting file completion of AUAudioFilePlayer playback
  • Index(es):
    • Date
    • Thread