• 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: Audio playing too quickly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio playing too quickly


  • Subject: Re: Audio playing too quickly
  • From: William Stewart <email@hidden>
  • Date: Thu, 18 May 2006 12:24:16 -0700

It does sound to me like you may have some mismatch between the device and client formats...

Have you considered using the output units to do this work for you:
(1) They embed an audio converter, which will handle both int-float and sample rate conversions for you
(2) They handle the sometimes complex device topology, including disabling parts of the device that you aren't using
(3) They have channel mapping capability - both customisable ones as well as default ones (for instance, a stereo input will by default play to the user's default stereo output).
(4) We've highly optimised the code paths through this AU, so the overhead that is added is only what you need to do what you are asking it to do
(5) Its much easier to use than dealing with the HAL directly



Bill

On 18/05/2006, at 10:53 AM, Norman Franke wrote:

I don't know if it is the same problem, but I had a user report the same thing for an audio output device. I ended up adding a channel map, since I believe it somewhat assumed my mono stream was somehow interleaved stereo. Adding in the channel map fixed it.

-Norman

Quoting Steve Checkoway <email@hidden>:

I'm getting a report from one user who has a device which is reporting
itself as a "FireWire Solo Multichannel" from M-Audio that when he uses
that for audio output, the audio plays blazingly fast but when he uses
the built-in audio on his G5, it plays correctly. I have confirmed that
the device is set to 44.1 kHz and after it is set correctly, I have
checked that it reports 44.1 kHz and it does.


I realize that I haven't given many details but I'm not even sure what's
important in this case. I'm setting the audio stream format and that's
succeeding, I've got an AudioConverter which in this case is doing
nothing more than converting from signed 16 bit integers to floats and
it feeds data to the HAL by AudioDeviceAddIOProc() and AudioDeviceStart().


Is there something I should be doing differently for this device or have
I missed setting some property or do I need to provide more information?


Thanks,

- Steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bethzur.com


This email sent to email@hidden



_______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: Audio playing too quickly
      • From: Steve Checkoway <email@hidden>
References: 
 >Audio playing too quickly (From: Steve Checkoway <email@hidden>)
 >Re: Audio playing too quickly (From: Norman Franke <email@hidden>)

  • Prev by Date: Re: Problems setting sample rate
  • Next by Date: Re: Problems setting sample rate
  • Previous by thread: Re: Audio playing too quickly
  • Next by thread: Re: Audio playing too quickly
  • Index(es):
    • Date
    • Thread