InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISoundActionData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tim Wright
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __ISoundActionData_h__
25 #define __ISoundActionData_h__
26 
27 #include "IBehaviorData.h"
28 #include "BehaviorID.h"
29 
30 //========================================================================================
31 // CLASS ISoundActionData
32 //========================================================================================
33 
36 {
37 public:
38  enum Operation { kPlay = 0, kStop, kPause, kResume, kStopAll };
39 
41  virtual void SetOperation(const Operation& inOperation) = 0;
42 
44  virtual Operation GetOperation() const = 0;
45 
47  virtual void SetSound(const UID& inSound) = 0;
48 
50  virtual UID GetSound() const = 0;
51 
52  //These values only apply to a kPlay operation.
53 
55  virtual void SetVolume(const PMReal& inVolume) = 0;
56 
58  virtual PMReal GetVolume() const = 0;
59 
61  virtual void SetSynchronous(bool16 inSynchronous) = 0;
62 
64  virtual bool16 GetSynchronous() const = 0;
65 
67  virtual void SetRepeat(bool16 inRepeat) = 0;
68 
70  virtual bool16 GetRepeat() const = 0;
71 };
72 
73 #endif // __ISoundActionData_h__