SoundData.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Annotations
14 {
15 class SoundAnnotation;
16 enum class SoundEncoding;
17 class SoundSampleData;
18 } // namespace Annotations
19 namespace Engine
20 {
21 namespace Data
22 {
23 class IPdfDataStream;
24 class IPdfObject;
25 } // namespace Data
26 } // namespace Engine
27 } // namespace Pdf
28 } // namespace Aspose
29 namespace System
30 {
31 namespace IO
32 {
33 class Stream;
34 } // namespace IO
35 class String;
36 } // namespace System
37 
38 namespace Aspose {
39 
40 namespace Pdf {
41 
42 namespace Annotations {
43 
47 class ASPOSE_PDF_SHARED_CLASS SoundData final : public System::Object
48 {
49  typedef SoundData ThisType;
50  typedef System::Object BaseType;
51 
52  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
53  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
54 
56 
57 public:
58 
62  ASPOSE_PDF_SHARED_API int32_t get_Rate();
66  ASPOSE_PDF_SHARED_API void set_Rate(int32_t value);
70  ASPOSE_PDF_SHARED_API int32_t get_Channels();
74  ASPOSE_PDF_SHARED_API void set_Channels(int32_t value);
78  ASPOSE_PDF_SHARED_API int32_t get_Bits();
82  ASPOSE_PDF_SHARED_API void set_Bits(int32_t value);
90  ASPOSE_PDF_SHARED_API SoundEncoding get_Encoding();
94  ASPOSE_PDF_SHARED_API void set_Encoding(SoundEncoding value);
95 
96 protected:
97 
99 
101 
103 
110 
112 
120 
122 
123 private:
124 
126 
127 };
128 
129 } // namespace Annotations
130 } // namespace Pdf
131 } // namespace Aspose
132 
133 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(SoundAnnotation, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfObject > engineAnnot, System::SharedPtr< Document > document))
Represents a sound data defining the sound to be played when the annotation is activated.
Definition: SoundData.h:47
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
SoundEncoding
The encoding format for the sample data.
Definition: SoundEncoding.h:22
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
Represents a sound annotation that contains sound recorded from the computer�s microphone or importe...
Definition: SoundAnnotation.h:60
ASPOSE_PDF_SHARED_API System::String get_Contents()
Gets annotation text.
Whole PDF file will be submitted.