xref: /haiku/src/apps/cortex/addons/common/IParameterSet.cpp (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 // IParameterSet.cpp
2 
3 #include "IParameterSet.h"
4 
5 // --------------------------------------------------------
6 // *** EXTERNAL INTERFACE
7 // --------------------------------------------------------
8 
9 IParameterSet::~IParameterSet() {} //nyi
10 IParameterSet::IParameterSet() {} //nyi
11 
12 // set parameter if the operation is stopped, or queue
13 // parameter-change if it's running.
14 // B_BAD_INDEX: invalid parameter ID
15 // B_NO_MEMORY: too little data
16 status_t IParameterSet::setValue(
17 	int32										parameterID,
18 	bigtime_t								performanceTime,
19 	const void*							data,
20 	size_t									size) {
21 
22 	// +++++ record performanceTime
23 
24 	return store(parameterID, data, size);
25 }
26 
27 // fetch last-changed value for the given parameter
28 // B_BAD_INDEX: invalid parameter ID
29 // B_NO_MEMORY: data buffer too small
30 status_t IParameterSet::getValue(
31 	int32										parameterID,
32 	bigtime_t*							lastChangeTime,
33 	void*										data,
34 	size_t*									ioSize) {
35 
36 	// +++++ fetch lastChangeTime
37 
38 	return retrieve(parameterID, data, ioSize);
39 }
40 
41 
42 // END -- IParameterSet.cpp --
43