/Classes/SingleSourceDemo.h

http://github.com/kstenerud/ObjectAL-for-iPhone · C Header · 24 lines · 10 code · 3 blank · 11 comment · 0 complexity · b61c15d00f3a965292b80d5cb03904be MD5 · raw file

  1. //
  2. // SingleSourceDemo.h
  3. // ObjectAL
  4. //
  5. // Created by Karl Stenerud on 10-05-29.
  6. //
  7. #import "cocos2d.h"
  8. #import "ObjectAL.h"
  9. /**
  10. * Demo of a single sound source.
  11. * The planet emits sound, and the space ship is the listener.
  12. * Touch the screen to move the space ship.
  13. */
  14. @interface SingleSourceDemo : CCLayer
  15. {
  16. CCSprite* rocketShip;
  17. CCSprite* planet;
  18. ALSource* source;
  19. ALBuffer* buffer;
  20. }
  21. @end