VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
streamAudio.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
8 #include <makRadio/export.h>
9 #include <vrfutil/rwUUID.h>
10 #include <vector>
11 
12 
13 namespace makRadio
14 {
15 
17  {
18  public:
19  enum Format {Format_MONO8, Format_MONO16, Format_STEREO8, Format_STEREO16, Format_MLAW8};
20 
22  virtual ~StreamAudioMessage();
23 
24 
25  virtual const DtUUID& getEntityId() const;
26  virtual void setEntityId(const DtUUID& val);
27 
28  virtual unsigned int getRadioId() const;
29  virtual void setRadioId(unsigned int val);
30 
31  virtual unsigned long long getStreamId() const;
32  virtual void setStreamId(unsigned long long val);
33 
34  virtual unsigned int getSampleRate() const;
35  virtual void setSampleRate(unsigned int val);
36 
37  virtual unsigned int getSampleCount() const;
38  virtual void setSampleCount(unsigned int val);
39 
40  virtual Format getFormat() const;
41  virtual void setFormat(Format val);
42 
43  virtual const std::vector<unsigned char>& getData() const;
44  virtual void setData(const std::vector<unsigned char>& val);
45 
46  void increaseRef();
47  void decreaseRef();
48  int refCount() const
49  {
50  return myRefCount;
51  }
52 
53  protected:
55  unsigned int myRadioId;
56  unsigned long long myStreamId;
57  unsigned int mySampleRate;
58  unsigned int mySampleCount;
60  std::vector<unsigned char> myData;
62  };
63 
64 }
65 
66 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
unsigned long long myStreamId
Definition: streamAudio.h:56
int myRefCount
Definition: streamAudio.h:61
Format myFormat
Definition: streamAudio.h:59
Contains the DtUUID class declaration.
Format
Definition: streamAudio.h:19
unsigned int myRadioId
Definition: streamAudio.h:55
#define DT_DLL_MAKRADIO
Get proper local export symbol.
Definition: export.h:17
unsigned int mySampleRate
Definition: streamAudio.h:57
std::vector< unsigned char > myData
Definition: streamAudio.h:60
int refCount() const
Definition: streamAudio.h:48
Definition: streamAudio.h:16
DtUUID myEntityId
Definition: streamAudio.h:54
unsigned int mySampleCount
Definition: streamAudio.h:58

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)