Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Number of audio samples in a Quicktime file



I've got my Quicktime audio program working in two modes now. Either (1) reading audio synchronized with a track of visual frames in the same file, or (2) just reading some number of audio samples per read operation. In this number (2) mode, I'm getting results that vary from other programs.

I have been unable to get a match with the number of samples I read from the file with other Quicktime programs when I use the number (2) option (samples_per_buffer attribute) in my module. My code generates a different number of samples from the program http://developer.apple.com/samplecode/QTAudioExtractionPanel/QTAudioExtractionPanel.html, which also generates a different number of samples from Quicktime Pro 7.0.1. In my Quicktime file example, I get the following results in the number of audio samples:

Program						Number of samples

My audio module, mode (2)				1930571

QTAudioExtractionPanel				1930570

Quicktime Pro 7.0.1 used to determine the number	1931882
of samples in the original Quicktime movie

Quicktime Pro 7.0.1, used to extract the audio track into	1930556
an AIFF file and then determine the number of audio
samples in that AIFF file.

The values of the samples (except for the last one, which was extra, and was zero valued) that I extracted in my module were the same as in the QTAudioExtractionPanel.

My program code is at: http://www.cprince.com/PubRes/IKAROS/InputQTAudio.zip

Any thoughts?

Thanks,
Chris.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >Re: Number of samples corresponding to a video frame (From: "Christopher G. Prince" <email@hidden>)
 >Re: Number of samples corresponding to a video frame (From: Daniel Steinberg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.