• 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
Using alBufferDataStatic()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using alBufferDataStatic()


  • Subject: Using alBufferDataStatic()
  • From: Chris Adamson <email@hidden>
  • Date: Wed, 17 Jun 2009 13:23:04 -0400

I'm trying to use alBufferDataStatic, mentioned in the WWDC 2008 Core Audio video on iTunes.  And having trouble compiling it in.

I searched the lists, and found that "site:apple.com alBufferDataStatic" turns out to be a Googlewhack that points over to TN2199's advice to use the alBufferDataStatic function instead of alBufferStatic to eliminate a memcpy().  OK, great. I'm pretty sure that this isn't a dupe question.

Here's the thing.  I've imported the header:
#import <OpenAL/oalStaticBufferExtension.h>

But on the following line:
//alBufferData (buffer[i], AL_FORMAT_STEREO16, data[i], alDataSize, alDataRate);
alBufferDataStatic (buffer[i], AL_FORMAT_STEREO16, data[i], alDataSize, alDataRate);

I still get a compiler error:
/Users/cadamson/dev/iphone throwaways/OpenALThrowaway5/Classes/OpenALThrowaway5ViewController.m:99: warning: implicit declaration of function 'alBufferDataStatic'

Looking at the header file, I don't quite know how to make sense of the declaration:
typedef ALvoid AL_APIENTRY (*alBufferDataStaticProcPtr) (const ALint bid, ALenum format, ALvoid* data, ALsizei size, ALsizei freq);

Is there really a function here that I can use?  What do I need to do to get my code to compile with it?

--Chris

 _______________________________________________
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 Units MIDI output
  • Next by Date: Re: Can Core Audio do this?
  • Previous by thread: Re: More Offline Rendering Questions
  • Next by thread: Re: Using alBufferDataStatic()
  • Index(es):
    • Date
    • Thread