• 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
GetSourceDuration problem with mp3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GetSourceDuration problem with mp3


  • Subject: GetSourceDuration problem with mp3
  • From: "Nugen" <email@hidden>
  • Date: Thu, 2 Mar 2006 18:19:22 +0100

Hi,
I was using SoundConverterFillBuffer to convert a mp3 file into
PCM.
My application needs to convert non contiguous portion of the mp3.
Because i detect a problem of glitches for some mp3 (not all) in the middle -- problems that were
not presents when i did the conversion continously -- i tried to use
the new audio extraction API (MovieAudioExtractionFillBuffer).
I set the start time using:
err = MovieAudioExtractionSetProperty(qtSound.extractionSessionRef,
kQTPropertyClass_MovieAudioExtraction_Movie,
kQTMovieAudioExtractionMoviePropertyID_CurrentTime,
sizeof(TimeRecord), &timeRec);
Problem is still here ... on same mp3 file.
While debugging i detect a problem on GetSourceDuration:
I convert a mp3 file using wavelab in wav file.
When i look the result of GetSourceDuration the values
 -are identicals for mp3 or wav file if conversion gives no glitches
 -are differents for the mp3 and the wav file if conversion gives some glitches...
I looked in Quicktime Player it gives me the duration (in sec.) that corresponds
to the wav files duration... not the mp3
Any idea?
I can send the mp3 file if needed,
Thanks in advance
emilie
 
 _______________________________________________
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: GetSourceDuration problem with mp3
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Setting a graph's sample rate
  • Next by Date: Re: Setting a graph's sample rate
  • Previous by thread: Re: Setting a graph's sample rate
  • Next by thread: Re: GetSourceDuration problem with mp3
  • Index(es):
    • Date
    • Thread