• 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
QuickTime and CoreAudio (again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QuickTime and CoreAudio (again)


  • Subject: QuickTime and CoreAudio (again)
  • From: Lieven Dekeyser <email@hidden>
  • Date: Fri, 26 Jul 2002 14:59:47 +0200 (CEST)

Hi!

I'm trying to play audio using the QuickTime SoundConverter sending the
output to an AudioUnit's input callback. This works fine thanks to some
sample code you guys posted here (ringbuffer stuff etc), but now I'm
trying to show the current movie time to the user (with a slider), and I
bumped into the following problem: I can't find a way to indicate at which
point in the movie the AudioUnit currently is playing. I can show the
converter's current time, but that results in a not so smooth progression
because of the size of the conversion buffer. I can't lower the buffer
size, because that would result in skipping sound...

Any ideas?

this is what I'd like:

@interface QTSoundPlayer
{
// ...
}

// installs an input callback which sends the converted samples to unit
- (void)connectToInput:(int)input ofAudioUnit:(AudioUnit)unit;

- (Movie)movie;
- (void)setMovie:(Movie)mov;

// the usual QuickTime stuff
- (void)play;
- (void)pause;
- (void)goToBeginningOfMovie;

- (UInt32)duration;
- (UInt32)currentTime; // should be smooth
- (UInt32)timeScale;

@end

I guess this is a fairly common thing, so there must be somebody out there
that has allready written something similar, no?

thanks,

--Lieven
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Audio Midi Setup
  • Next by Date: Re: QuickTime and CoreAudio (again)
  • Previous by thread: Re: Audio Midi Setup
  • Next by thread: Re: QuickTime and CoreAudio (again)
  • Index(es):
    • Date
    • Thread