Sound.h 401 B

1234567891011121314151617
  1. #import <Cocoa/Cocoa.h>
  2. #import "Command.h"
  3. #import "CallbackDelegate.h"
  4. @interface Sound : Command {
  5. }
  6. // pending callbacks for sounds being played, to keep
  7. // ARC from freeing them too early
  8. @property (nonatomic, strong) NSMutableSet *pending;
  9. - (void) play:(NSString*)file onComplete:(WebScriptObject*)callback;
  10. - (void) playSystem:(NSString*)name onComplete:(WebScriptObject*)callback;
  11. @end