• 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
OpenAL not playing sounds except in the debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenAL not playing sounds except in the debugger?


  • Subject: OpenAL not playing sounds except in the debugger?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 13 Feb 2006 19:29:42 -0700

I'm a newbie to OpenAL, I looked at the OpenALExample sample code, and I've tried reading TFM, but there's something I don't understand...

I'm trying to port a Windows screen saver to Mac OS X. The screen saver uses OpenAL to play sound effects, so I linked the project to the OpenAL framework. The link occurred without any problems.

The problem is, OpenAL will only play some of the sound effects once, and will never play them again. If I run the screen saver in the debugger, and place a breakpoint on alSourcePlay(), the function is being called regularly, but oddly enough, the sound effect only plays if I break and continue.

I tried calling alSourceRewind() before alSourcePlay() but nothing happened.

Can anyone point out how I can get this to work? I've posted the source code at <http://seiryu.home.comcast.net/Skyrocket.zip> (it's GPL'd) and all of the OpenAL code is in the SoundEngine.cpp file. To enable sound in the screen saver, you need to turn the sound up in the screen saver's options in System Preferences (it's 0 by default).

I'm hoping it's something simple... Anyway, I would appreciate any assistance any of you could provide.

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

_______________________________________________
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: Coreaudio-api Digest, Vol 3, Issue 54
  • Next by Date: Re: Changing the transfer speed to a USB to MIDI interface
  • Previous by thread: Re: Coreaudio-api Digest, Vol 3, Issue 54
  • Next by thread: Put Own Data in to AudioBuffer
  • Index(es):
    • Date
    • Thread