summaryrefslogtreecommitdiff
path: root/ext/installfiles/mac/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Sound.h
blob: 067076439691e82a4b25a1f10aae840261ee64a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import <Cocoa/Cocoa.h>
#import "Command.h"
#import "CallbackDelegate.h"


@interface Sound : Command {

}

// pending callbacks for sounds being played, to keep
// ARC from freeing them too early
@property (nonatomic, strong) NSMutableSet *pending;

- (void) play:(NSString*)file onComplete:(WebScriptObject*)callback;
- (void) playSystem:(NSString*)name onComplete:(WebScriptObject*)callback;

@end