• 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 Service Programming Guide"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: "Audio Queue Service Programming Guide"


  • Subject: RE: "Audio Queue Service Programming Guide"
  • From: GW Rodriguez <email@hidden>
  • Date: Sat, 28 Aug 2010 20:48:20 -0400

Ok, after a cool down period from my rant and re-reading and trying to troubleshoot I've found the root of the problem.  Its in the created struct that manages the state of the audio file.  eg:

static const int kNumberBuffers = 3;

struct AQPlayerState {
    AudioStreamBasicDescription      mDataFormat;                    
    AudioQueueRef                          mQueue;                         
    AudioQueueBufferRef                 mBuffers[kNumberBuffers];       
    AudioFileID                                mAudioFile;                     
    UInt32                                       bufferByteSize;                 
    SInt64                                       mCurrentPacket;                 
    UInt32                                       mNumPacketsToRead;              
    AudioStreamPacketDescription   *mPacketDescs;                  
    bool                                          mIsRunning;                     
};



When I first typed in this code and hit build, I had no errors.  After just hitting build a few times, without changing, adding or subtracting any code, I get an error "variably modified 'mBuffers at file scope". 

Help????



--
GW Rodriguez
Sound Supervisor
Olney Theatre Center
(c) 909-720-4202
www.gwrodriguez.com
 _______________________________________________
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

  • Follow-Ups:
    • Re: "Audio Queue Service Programming Guide"
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Rendering differences between simulator and device
  • Next by Date: Re: "Audio Queue Service Programming Guide"
  • Previous by thread: Re: "Audio Queue Service Programming Guide"
  • Next by thread: Re: "Audio Queue Service Programming Guide"
  • Index(es):
    • Date
    • Thread