• 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: OpenALExample fails on PPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenALExample fails on PPC


  • Subject: Re: OpenALExample fails on PPC
  • From: "Andy Bell" <email@hidden>
  • Date: Wed, 7 Jan 2009 18:44:04 +0100

Great, thanks for that Doug.

Andy

On Wed, Jan 7, 2009 at 6:29 PM, Doug Wyatt <email@hidden> wrote:
It's a bug in the example:

SInt64 theFileLengthInFrames = 0;
...
err = ExtAudioFileRead(extRef, (UInt32*)&theFileLengthInFrames, &theDataBuffer);

On a little endian machine ExtAudioFileRead reads its 32 bits from the low half of the SInt64. On a big endian machine, it's seeing the high half of the SInt64, which is zero in this case.


On Jan 7, 2009, at 1:55 , Andy Bell wrote:

Thanks Jeff.  How would I file a bug for this?  Is there a quick fix to sort this out?  I am using OpenAL in conjunction with AudioConverter for a game and need to have it running on PPC.

Andy

On Tue, Jan 6, 2009 at 8:53 PM, Jeff Moore <email@hidden> wrote:
Which is the AudioConverter error, kAudioConverterErr_InvalidOutputSize. My money is on this being some kind of bad AudioStreamBasicDescription coming up somewhere along the way. I doubt that this is an API problem though. Most likely this bit of sample code has made some unwarranted assumptions about it's runtime environment.

It's worth filing a bug about this.



On Jan 6, 2009, at 11:24 AM, Greg Chapman wrote:

1869902714 == 0x6F74737A == 'otsz'.

Greg

On Jan 4, 2009, at 6:21 PM, Doug Wyatt wrote:

I'm on an iPhone without my usual calculators (what's that error in ASCII?) but my guess is that some bit of code is specifying a little-endian float format where it should be native-endian. Or there's some other endian issue...

Doug


On Dec 30, 2008, at 1:39, Andy Bell <email@hidden> wrote:

Hi,

This is my first post to the list so please be kind.

I am coding an application to use OpenAL to playback mp3 files.  After finding the OpenALExample at /Developer/Examples/CoreAudio/Services/OpenALExample I discovered that on a PPC 10.5 the ExtAudioFileRead call fails with error code '1869902714'.  The same example runs on a i386 10.5, any ideas why this happening and if there is a fix for this?



--

Jeff Moore
Core Audio
Apple



_______________________________________________
Do not post admin requests to the list. They will be ignored.

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.

This email sent to email@hidden


 _______________________________________________
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

References: 
 >Re: OpenALExample fails on PPC (From: Doug Wyatt <email@hidden>)
 >Re: OpenALExample fails on PPC (From: Greg Chapman <email@hidden>)
 >Re: OpenALExample fails on PPC (From: Jeff Moore <email@hidden>)
 >Re: OpenALExample fails on PPC (From: "Andy Bell" <email@hidden>)
 >Re: OpenALExample fails on PPC (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: OpenALExample fails on PPC
  • Next by Date: how to convert to PCM on iPhone OS 2.2? has anyone got this working? (AudioConverter, ExtAudioFile, AudioQueueRenderOffline ???)
  • Previous by thread: Re: OpenALExample fails on PPC
  • Next by thread: About AUResources.r
  • Index(es):
    • Date
    • Thread