Mercurial > projects > dstep
comparison dstep/coreservices/osservices/SystemSound.d @ 11:07194b026fa4
Added bindings to a couple of frameworks, new license + some other things
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sat, 01 Aug 2009 15:03:28 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:27e00625790b | 11:07194b026fa4 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Jul 22, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coreservices.osservices.SystemSound; | |
8 | |
9 //import dstep.AvailabilityMacros; | |
10 import dstep.corefoundation.CFBase; | |
11 import dstep.corefoundation.CFRunLoop; | |
12 import dstep.coreservices.carboncore.Files; | |
13 import dstep.coreservices.carboncore.MacTypes; | |
14 | |
15 alias uint SystemSoundActionID; | |
16 alias SystemSoundCompletionProcPtr SystemSoundCompletionUPP; | |
17 | |
18 extern (C) | |
19 { | |
20 alias int function (uint, void*) SystemSoundCompletionProcPtr; | |
21 } | |
22 | |
23 enum | |
24 { | |
25 kSystemSoundNoError = 0, | |
26 kSystemSoundUnspecifiedError = -1500, | |
27 kSystemSoundClientTimedOutError = -1501 | |
28 } | |
29 | |
30 extern (C) | |
31 { | |
32 SystemSoundCompletionUPP NewSystemSoundCompletionUPP (SystemSoundCompletionProcPtr userRoutine); | |
33 void DisposeSystemSoundCompletionUPP (SystemSoundCompletionUPP userUPP); | |
34 int InvokeSystemSoundCompletionUPP (uint actionID, void* userData, SystemSoundCompletionUPP userUPP); | |
35 void AlertSoundPlay (); | |
36 void AlertSoundPlayCustomSound (uint inAction); | |
37 void SystemSoundPlay (uint inAction); | |
38 int SystemSoundGetActionID (FSRef* userFile, SystemSoundActionID* outAction); | |
39 int SystemSoundRemoveActionID (uint inAction); | |
40 int SystemSoundSetCompletionRoutine (uint inAction, CFRunLoopRef inRunLoop, CFStringRef inRunLoopMode, SystemSoundCompletionUPP inCompletionRoutine, void* inUserData); | |
41 void SystemSoundRemoveCompletionRoutine (uint inAction); | |
42 } |