Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6187023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:59:25+00:00 2026-05-24T01:59:25+00:00

I have a problem with audio stream (this is LPCM stream with 6 channels

  • 0

I have a problem with audio stream (this is LPCM stream with 6 channels inside). But when I playing this stream on iPhone via AudioQueue I hear only first two channels.
Here AudioQueue initialization code:

- (id)initWithSampleRate:(int)aSampleRate numChannels:(int)aNumChannels
{
     self = [super init];


     AudioStreamBasicDescription theDescription;
     theDescription.mFormatID = kAudioFormatLinearPCM;
     theDescription.mSampleRate = aSampleRate;
     theDescription.mChannelsPerFrame = aNumChannels;
     theDescription.mBytesPerPacket = 2 * aNumChannels;
     theDescription.mFramesPerPacket = 1;
     theDescription.mBytesPerFrame = 2 * aNumChannels;
     theDescription.mBitsPerChannel = 16;
     theDescription.mFormatFlags = kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsSignedInteger;


     AudioQueueNewOutput(&theDescription, audioQueue_callback, self, CFRunLoopGetCurrent(), kCFRunLoopCommonModes, 0, &audioQueue);
     AudioQueueStart(audioQueue, NULL);


     return self;
}

Do you know how solve this problem? Probably I should set output channels count to 2, but how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:59:25+00:00Added an answer on May 24, 2026 at 1:59 am

    You might need to, in your own code, pre-mix the 6 channels down to 2 channels before feeding the PCM audio stream to the Audio Queue API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem, I have some audio I wish to play... And I
I'm able to stream audio and stop it without any problem, but when I
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have problem when I try insert some data to Informix TEXT column via
i have problem with autorotate on iphone i set up in all classes -
I am starting using FMOD API and I have got problem with sound playing.
This problem is happening is both IE8 and IE7. I have a small swf
Let me explain what I mean when I say fluent audio stream. I have
Been banging my head against this problem all morning. I have setup a connection
I have a problem with the AVPlayer playing in background mode, like a lot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.