• 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: question of time (and frames)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question of time (and frames)


  • Subject: Re: question of time (and frames)
  • From: "tahome izwah" <email@hidden>
  • Date: Mon, 3 Nov 2008 08:00:55 +0100

Yes. As a matter of fact, the same is true for a stereo input, or a
multichannel input. 512 frames @ 44.1kHz are always 512/44100 seconds.

--th

2008/11/2 John Clayton <email@hidden>:
> so if the input notify callback requests 512 frames, and I've got mono input
> (1 channel) at 44.1khz, then 512 frames is equal to 512 / 44100.0 seconds,
> correct?
>
> Thanks
> --
> John Clayton
> Skype: johncclayton
>
>
>
>
> On 2/11/2008, at 8:56 PM, tahome izwah wrote:
>
>> Generally, frames are samples that contain all channels. 1 stereo
>> frame = 2 samples. 1 5.1 surround frame = 6 samples. 1 mono frame = 1
>> sample.
>>
>> HTH
>> --th
>>
>> 2008/11/2 John Clayton <email@hidden>:
>>>
>>> Hi All,
>>>
>>> Hope you've had a good weekend out there.  Question re: time.  I want to
>>> calculate the amount of time that some frames take up - and just to make
>>> sure that this simple task isn't something I've misunderstood - my belief
>>> is
>>> that I can simply say:
>>>
>>> 1 seconds of time = # frames/samples per second
>>>
>>> correct?  More specifically, this is entirely independant of the number
>>> of
>>> channels right?  So if I wanted to simulate 13 seconds of silence, I'd
>>> just
>>> return
>>>      13 * sample_rate_per_second
>>>
>>> frames of null data from an input routine.
>>>
>>> hope this makes sense, cheers
>>>
>>> Thanks
>>> --
>>> John Clayton
>>> Skype: johncclayton
>>>
 _______________________________________________
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: question of time (and frames)
      • From: Brian Willoughby <email@hidden>
References: 
 >question of time (and frames) (From: John Clayton <email@hidden>)
 >Re: question of time (and frames) (From: "tahome izwah" <email@hidden>)
 >Re: question of time (and frames) (From: John Clayton <email@hidden>)

  • Prev by Date: Re: setting mic volume
  • Next by Date: Re: question of time (and frames)
  • Previous by thread: Re: question of time (and frames)
  • Next by thread: Re: question of time (and frames)
  • Index(es):
    • Date
    • Thread