• 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 Queue Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Queue Help


  • Subject: Re: Audio Queue Help
  • From: shailesh namjoshi <email@hidden>
  • Date: Thu, 27 May 2010 07:57:15 +0530 (IST)

Hi Doug Wyatt,
 
Thanks a lot for your prompt reply,
 
Regards to your answer, i want to tell you one more thing, If i download the file from the network stream and write it into the file and then decode the contents of the file using my decoder which outputs linear PCM data then yes it is playing that on device as well...but the minute i discard that writing it to a file part and yes getting the buffer and sending it to decoder as a input n outputs as a linear pcm and passing it on to AudioQueue for playing it fails to play on device....
 
 
this above lines works well on iPhone simulator ....you are right probably...let me need more inputs on floating point issue...you mean to say if the buffer i am keeping it floating on device n then outputs to audioqueue is that causing a problem on iPhone OS 3.0x...
 
Could you please explain me more on this, since i am eager to know the answer where apis are going wrong...because none of the apis produce me error codes all are having success but no sound to device..
 
Kindly waiting for your reply,
 
Regards,
 
Shailesh

--- On Wed, 26/5/10, Doug Wyatt <email@hidden> wrote:

From: Doug Wyatt <email@hidden>
Subject: Re: Audio Queue Help
To: "shailesh namjoshi" <email@hidden>
Cc: "Bills Apple" <email@hidden>, "CoreAudio Apple" <email@hidden>
Date: Wednesday, 26 May, 2010, 10:33 PM

If you are decoding to floating point that would explain the issue; AudioConverter and AudioQueue don't support floating point on iPhoneOS 3.x (but, in the simulator, to interface with the desktop's HAL under the covers, they do).

Doug


On May 25, 2010, at 20:13 , shailesh namjoshi wrote:
> This is Sailesh
>
> I am working on streaming of the server on the iPhone. So far i am connecting to the server and download the file using a Network apis in iPhone. at the same time, i am initialising the AudioQueueOutput for playing it...
>
> Once it downloads the audio data i keep on appending it to the buffer ....( NSMutableData object ) ....
>
> After that it goes to my decoder code and which decodes the channel data and pass linear pcm data to audioqueue for playing...
>
> This piece of code is working well on simulator ( iPhone os 3.0 ) but dosent produce a sound on iPhone or iPod touch device...the code for decoder is decoding the contents ....
>
> I am wondering what is the fault on device....
>
> do you have any idea or hint on why this is not working...but if i write the buffer to the file and then decode and play it from the file...then it is working on device ....
>
> Please tell me your expert opinion on it...


 _______________________________________________
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

References: 
 >Re: Audio Queue Help (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: I need help arbitrating between multiple audio players in the same iPhone app
  • Next by Date: Re: Suspend/resume change the IO thread
  • Previous by thread: Re: Audio Queue Help
  • Next by thread: Suspend/resume change the IO thread
  • Index(es):
    • Date
    • Thread