• 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: Reading packets from an audio file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading packets from an audio file


  • Subject: Re: Reading packets from an audio file
  • From: rethish <email@hidden>
  • Date: Tue, 17 Feb 2009 17:21:39 +0530
  • Thread-topic: Reading packets from an audio file

Title: Re: Reading packets from an audio file

What property are you using? We use the get number of packets property (
kAudioFilePropertyAudioDataPacketCount) all the time and this is always correct



This isn't going to work for all foramts/file types - it should work ok if you are just dealing with linear pcm


Hai ,


I use the same property ( kaudioFilePropertyAudioDataPacketCount )  with the function

AudioFileGetProperty (   AudioFileID         inAudioFile,   AudioFilePropertyID   inPropertyID,   
            UInt32        *ioDataSize,  void        *outPropertyData);


and also I am using speakhere application which deals with Linear PCM .
But still , correct packet number cannot be obtained.

I use the code:

.......
.......
    UInt32             outPropertyData;
    
     UInt32              ioDataSize;

    AudioFileGetProperty( audioFileID,
                          kAudioFilePropertyAudioDataPacketCount,
                          &ioDataSize,
                          &outPropertyData);



......
.......



 _______________________________________________
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: Reading packets from an audio file
      • From: William Stewart <email@hidden>
References: 
 >Re: Reading packets from an audio file (From: William Stewart <email@hidden>)

  • Prev by Date: Fade In/Out
  • Next by Date: Microsoft waveform matching
  • Previous by thread: Re: Reading packets from an audio file
  • Next by thread: Re: Reading packets from an audio file
  • Index(es):
    • Date
    • Thread