Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-16-2010, 07:50 AM   #1 (permalink)
Registered Member
 
sijo006's Avatar
 
Join Date: Nov 2009
Age: 25
Posts: 23
Default Audio latency Test

How to do audio latency test in IPhone OS. I want to know how to read an audio file and how to write another audio file using the data of previously read file.. Thanks in advance..
sijo006 is offline   Reply With Quote
Old 02-16-2010, 08:01 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Ypsilanti, Michigan
Age: 63
Posts: 1,526
Default

Quote:
Originally Posted by sijo006 View Post
How to do audio latency test in IPhone OS. I want to know how to read an audio file and how to write another audio file using the data of previously read file.. Thanks in advance..
Are you sure you want to deal with files? There may be more latency in that than in the audio processing. But as for audio processing, it appears that the iPhone audio subsystem, at the lowest level, deals with audio buffers of size 1024 samples. So if your application buffers size is 1024, then you will have the lowest possible latency, which I think is almost zero. If you pick any other buffer size, then the operating system will be repackaging the data into your buffer size and that will introduce additional latency.

Robert Scott
Ypsilanti, Michigan
RLScott is offline   Reply With Quote
Old 02-16-2010, 09:49 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 271
Default

Quote:
Originally Posted by RLScott View Post
Are you sure you want to deal with files? There may be more latency in that than in the audio processing. But as for audio processing, it appears that the iPhone audio subsystem, at the lowest level, deals with audio buffers of size 1024 samples. So if your application buffers size is 1024, then you will have the lowest possible latency, which I think is almost zero. If you pick any other buffer size, then the operating system will be repackaging the data into your buffer size and that will introduce additional latency.

Robert Scott
Ypsilanti, Michigan
Are you talking about at the hardware level with a 1024 sample buffer or?
__________________
@rarindeed


Burstly is the only open and free ad management platform for iPhone app developers.
rarindeed is offline   Reply With Quote
Old 02-16-2010, 02:34 PM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Ypsilanti, Michigan
Age: 63
Posts: 1,526
Default

Quote:
Originally Posted by rarindeed View Post
Are you talking about at the hardware level with a 1024 sample buffer or?
Almost the hardware level. I am talking about the device driver level. But for purposes of latency considerations, it might as well be the hardware level.

Robert Scott
Ypsilanti, Michigan
RLScott is offline   Reply With Quote
Old 02-16-2010, 03:46 PM   #5 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 271
Default

Quote:
Originally Posted by RLScott View Post
Almost the hardware level. I am talking about the device driver level. But for purposes of latency considerations, it might as well be the hardware level.

Robert Scott
Ypsilanti, Michigan
Awesome, thanks so much! Great piece of info.

- Alex
__________________
@rarindeed


Burstly is the only open and free ad management platform for iPhone app developers.
rarindeed is offline   Reply With Quote
Old 02-17-2010, 12:43 AM   #6 (permalink)
Registered Member
 
sijo006's Avatar
 
Join Date: Nov 2009
Age: 25
Posts: 23
Default

Quote:
Originally Posted by RLScott View Post
Are you sure you want to deal with files? There may be more latency in that than in the audio processing. But as for audio processing, it appears that the iPhone audio subsystem, at the lowest level, deals with audio buffers of size 1024 samples. So if your application buffers size is 1024, then you will have the lowest possible latency, which I think is almost zero. If you pick any other buffer size, then the operating system will be repackaging the data into your buffer size and that will introduce additional latency.

Robert Scott
Ypsilanti, Michigan
Am dealing with audio files...Thanks for Your reply.....
sijo006 is offline   Reply With Quote
Old 02-17-2010, 12:46 AM   #7 (permalink)
Registered Member
 
sijo006's Avatar
 
Join Date: Nov 2009
Age: 25
Posts: 23
Default How to read an audio file in iphne os...

I also want to know how to read an audio file and how to write another audio file using the data of previously read file.
sijo006 is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, audio latency, iphone, objective c

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 239
21 members and 218 guests
ADY, Alsahir, beleg_1998, Dani77, diyora, FAED, fredidf, iDifferent, iph_s, JamesCahall, JasonR, mer10, prchn4christ, Rudy, smithdale87, Speed, spiderguy84, stekki, tgjorgoski, timle8n1, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,755
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:13 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0