• 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
offline render of an audio file stream?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

offline render of an audio file stream?


  • Subject: offline render of an audio file stream?
  • From: Matthew Pease <email@hidden>
  • Date: Sun, 26 Jul 2015 18:04:58 +0200

Hi All -

  I'm parsing a network streamed MP3 using Audio File Stream Services.    I'd like to use an offline Audio Queue to write a LPCM version of this to a file.  

  However, to enable offline AQ rendering I must call

OSStatus AudioQueueSetOfflineRenderFormat ( AudioQueueRef inAQ, const AudioStreamBasicDescription *inFormat, const AudioChannelLayout *inLayout );

..  and this function requires an AudioChannelLayout.

I've tried to obtain AudioChannelLayout by using  AudioFileStreamGetProperty with kAudioFileStreamProperty_ChannelLayout.   However, I always receive kAudioFileStreamError_ValueUnknown

Is there another way to obtain an AudioChannelLayout or will I need to construct one myself?


I have code that loads the network stream, runs it through the Audio File Stream Services parser & runs parsed packets through an AQ playback queue.  I can hear the stream so I know that work.

Thank you-
Matt
 _______________________________________________
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

  • Prev by Date: Re: Audio Unit pull data at different timestamp
  • Next by Date: Efficiently play two buffers with AVAudioEngine
  • Previous by thread: Re: playing a growing file
  • Next by thread: Efficiently play two buffers with AVAudioEngine
  • Index(es):
    • Date
    • Thread