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

  • SEARCH
  • Home
  • 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 7567577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:41:57+00:00 2026-05-30T14:41:57+00:00

I am working on an app that involves recording audio on one device and

  • 0

I am working on an app that involves recording audio on one device and playing it back on another device connected with a socket connection.

I am using Audioqueues to record data on one peer device, and streaming that data OTA, as in SpeakHere example.

I am trying to play that data back on the receiving device using AudioFileStream and AudioQueue on the other end to play it back, as in Matt Gallagher’s AudioStreamer example.

The call to AudioFileStreamParseBytes is returning the “pty?” error. Consequentially, neither of the callbacks associated with this call (for properties and audio packet) are getting called.

There is plenty of sample code for streaming mp3s and HTTP streams etc online. However if I want to stream audio recorded using AudioQueue, is there something I might be missing? Something related to AudioQueue properties perhaps?

Can someone also suggest a way to check if the data I have received is in fact sensible audio data?

Small piece of code:

void AQPlayer::StreamDataAvailable(MediaPacket* packet)
{
    OSStatus err = 0;
    err = AudioFileStreamParseBytes(mAudioFileStream, packet->msizeInBytes, packet->mVoiceData, 0);
    if (err) 
    { 
        NSLog(@"AudioFileStreamParseBytes Error");
    }
} 

Additionally, I have already checked that packet->mVoiceData has about 44Kbytes of data (although not sure if it is sensible data) and that packet->msizeInBytes reflects that number.

Any help appreciated.
Thanks!

  • 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-30T14:41:58+00:00Added an answer on May 30, 2026 at 2:41 pm

    Looks like AudioFileStreams do not support LPCM format. That seems to be the reason I am getting this error. My guess is, since LPCM is raw data and does not need to be parsed.

    Also turns out that there is no need to use AudioFileStreams at all for this case. Just using AudioQueues was enough.

    I have been able to record, transmit and send the data using AudioQueues alone.

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

Sidebar

Related Questions

I'm working on an app that plays audio continuously using the waveOut... API from
I'm working on an app that will be using https, but we wanted to
I'm currently working on an app that is being created using Ironspeed Designer. It's
I'm working on an app that involves a lot of carefully designed strings. I'm
I'm working on a web app in ASP.NET 2.0 that involves serving images via
I'm working on an app that involves and ExpandableListView. We should like to replace
I'm working on an augmented reality app for iPhone that involves a very processor-intensive
Am working on a gae app using python. The app involves some crowd-sourced data
I am working on an app that involves evaluating modifications made to vehicles, and
I'm working on an app that involves the Google Maps API and I'm worrying

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.