sipxmedialib  Version 3.3
MprRecorderConstructor.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2017 SIPez LLC. All rights reserved.
3 //
4 // $$
6 
7 #ifndef _MprRecorderConstructor_h_
8 #define _MprRecorderConstructor_h_
9 
10 // SYSTEM INCLUDES
11 // APPLICATION INCLUDES
13 #include <mp/MprRecorder.h>
14 
15 // DEFINES
16 // MACROS
17 // EXTERNAL FUNCTIONS
18 // EXTERNAL VARIABLES
19 // CONSTANTS
20 // STRUCTS
21 // TYPEDEFS
22 // FORWARD DECLARATIONS
23 
28 {
29 /* //////////////////////////// PUBLIC //////////////////////////////////// */
30 public:
31 
32 /* ============================ CREATORS ================================== */
33 
38  1, MAXIMUM_RECORDER_CHANNELS, //minInputs, maxInputs,
39  0, MAXIMUM_RECORDER_CHANNELS) //minOutputs, maxOutputs
40  {
41  };
42 
46 
47 /* ============================ MANIPULATORS ============================== */
48 
50  virtual OsStatus newResource(const UtlString& resourceName,
51  int maxResourcesToCreate,
52  int& numResourcesCreated,
53  MpResource* resourceArray[])
54  {
55  assert(maxResourcesToCreate >= 1);
56  numResourcesCreated = 1;
57  resourceArray[0] = new MprRecorder(resourceName);
58  return(OS_SUCCESS);
59  }
60 
61 /* ============================ ACCESSORS ================================= */
62 
63 /* ============================ INQUIRY =================================== */
64 
65 /* //////////////////////////// PROTECTED ///////////////////////////////// */
66 protected:
67 
68 /* //////////////////////////// PRIVATE /////////////////////////////////// */
69 private:
70 
74  const MprRecorderConstructor& rMprRecorderConstructor);
75 
76 
80 
81 };
82 
83 /* ============================ INLINE METHODS ============================ */
84 
85 #endif // _MprRecorderConstructor_h_
MprRecorderConstructor()
Definition: MprRecorderConstructor.h:36
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprRecorderConstructor.h:50
MprRecorderConstructor & operator=(const MprRecorderConstructor &rhs)
The "Recorder" media processing resource.
Definition: MprRecorder.h:53
#define MAXIMUM_RECORDER_CHANNELS
Definition: MprRecorder.h:36
Abstract base class for all media processing objects.
Definition: MpResource.h:56
MpAudioResourceConstructor is used to construct a specific audio resource type.
Definition: MpAudioResourceConstructor.h:36
#define DEFAULT_RECORDER_RESOURCE_TYPE
Definition: MpResourceFactory.h:34
MprRecorderConstructor is used to construct a Buffer Recorder resource.
Definition: MprRecorderConstructor.h:27
virtual ~MprRecorderConstructor()
Definition: MprRecorderConstructor.h:45