DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/media/nsIAudioDeviceInfo.idl
 */

#ifndef __gen_nsIAudioDeviceInfo_h__
#define __gen_nsIAudioDeviceInfo_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIAudioDeviceInfo */
#define NS_IAUDIODEVICEINFO_IID_STR "feb979a8-f8cc-4522-9dff-6c055ca50762"

#define NS_IAUDIODEVICEINFO_IID \
  {0xfeb979a8, 0xf8cc, 0x4522, \
    { 0x9d, 0xff, 0x6c, 0x05, 0x5c, 0xa5, 0x07, 0x62 }}

class NS_NO_VTABLE nsIAudioDeviceInfo : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUDIODEVICEINFO_IID)

  /* readonly attribute DOMString name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsAString& aName) = 0;

  /* readonly attribute DOMString groupId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGroupId(nsAString& aGroupId) = 0;

  /* readonly attribute DOMString vendor; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetVendor(nsAString& aVendor) = 0;

  enum {
    TYPE_UNKNOWN = 0U,
    TYPE_INPUT = 1U,
    TYPE_OUTPUT = 2U
  };

  /* readonly attribute unsigned short type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(uint16_t *aType) = 0;

  enum {
    STATE_DISABLED = 0U,
    STATE_UNPLUGGED = 1U,
    STATE_ENABLED = 2U
  };

  /* readonly attribute unsigned short state; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetState(uint16_t *aState) = 0;

  enum {
    PREF_NONE = 0U,
    PREF_MULTIMEDIA = 1U,
    PREF_VOICE = 2U,
    PREF_NOTIFICATION = 4U,
    PREF_ALL = 15U
  };

  /* readonly attribute unsigned short preferred; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPreferred(uint16_t *aPreferred) = 0;

  enum {
    FMT_S16LE = 16U,
    FMT_S16BE = 32U,
    FMT_F32LE = 4096U,
    FMT_F32BE = 8192U
  };

  /* readonly attribute unsigned short supportedFormat; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSupportedFormat(uint16_t *aSupportedFormat) = 0;

  /* readonly attribute unsigned short defaultFormat; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultFormat(uint16_t *aDefaultFormat) = 0;

  /* readonly attribute unsigned long maxChannels; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMaxChannels(uint32_t *aMaxChannels) = 0;

  /* readonly attribute unsigned long defaultRate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultRate(uint32_t *aDefaultRate) = 0;

  /* readonly attribute unsigned long maxRate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMaxRate(uint32_t *aMaxRate) = 0;

  /* readonly attribute unsigned long minRate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMinRate(uint32_t *aMinRate) = 0;

  /* readonly attribute unsigned long maxLatency; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMaxLatency(uint32_t *aMaxLatency) = 0;

  /* readonly attribute unsigned long minLatency; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMinLatency(uint32_t *aMinLatency) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAudioDeviceInfo, NS_IAUDIODEVICEINFO_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUDIODEVICEINFO \
  NS_IMETHOD GetName(nsAString& aName) override; \
  NS_IMETHOD GetGroupId(nsAString& aGroupId) override; \
  NS_IMETHOD GetVendor(nsAString& aVendor) override; \
  NS_IMETHOD GetType(uint16_t *aType) override; \
  NS_IMETHOD GetState(uint16_t *aState) override; \
  NS_IMETHOD GetPreferred(uint16_t *aPreferred) override; \
  NS_IMETHOD GetSupportedFormat(uint16_t *aSupportedFormat) override; \
  NS_IMETHOD GetDefaultFormat(uint16_t *aDefaultFormat) override; \
  NS_IMETHOD GetMaxChannels(uint32_t *aMaxChannels) override; \
  NS_IMETHOD GetDefaultRate(uint32_t *aDefaultRate) override; \
  NS_IMETHOD GetMaxRate(uint32_t *aMaxRate) override; \
  NS_IMETHOD GetMinRate(uint32_t *aMinRate) override; \
  NS_IMETHOD GetMaxLatency(uint32_t *aMaxLatency) override; \
  NS_IMETHOD GetMinLatency(uint32_t *aMinLatency) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAUDIODEVICEINFO \
  nsresult GetName(nsAString& aName); \
  nsresult GetGroupId(nsAString& aGroupId); \
  nsresult GetVendor(nsAString& aVendor); \
  nsresult GetType(uint16_t *aType); \
  nsresult GetState(uint16_t *aState); \
  nsresult GetPreferred(uint16_t *aPreferred); \
  nsresult GetSupportedFormat(uint16_t *aSupportedFormat); \
  nsresult GetDefaultFormat(uint16_t *aDefaultFormat); \
  nsresult GetMaxChannels(uint32_t *aMaxChannels); \
  nsresult GetDefaultRate(uint32_t *aDefaultRate); \
  nsresult GetMaxRate(uint32_t *aMaxRate); \
  nsresult GetMinRate(uint32_t *aMinRate); \
  nsresult GetMaxLatency(uint32_t *aMaxLatency); \
  nsresult GetMinLatency(uint32_t *aMinLatency); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUDIODEVICEINFO(_to) \
  NS_IMETHOD GetName(nsAString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetGroupId(nsAString& aGroupId) override { return _to GetGroupId(aGroupId); } \
  NS_IMETHOD GetVendor(nsAString& aVendor) override { return _to GetVendor(aVendor); } \
  NS_IMETHOD GetType(uint16_t *aType) override { return _to GetType(aType); } \
  NS_IMETHOD GetState(uint16_t *aState) override { return _to GetState(aState); } \
  NS_IMETHOD GetPreferred(uint16_t *aPreferred) override { return _to GetPreferred(aPreferred); } \
  NS_IMETHOD GetSupportedFormat(uint16_t *aSupportedFormat) override { return _to GetSupportedFormat(aSupportedFormat); } \
  NS_IMETHOD GetDefaultFormat(uint16_t *aDefaultFormat) override { return _to GetDefaultFormat(aDefaultFormat); } \
  NS_IMETHOD GetMaxChannels(uint32_t *aMaxChannels) override { return _to GetMaxChannels(aMaxChannels); } \
  NS_IMETHOD GetDefaultRate(uint32_t *aDefaultRate) override { return _to GetDefaultRate(aDefaultRate); } \
  NS_IMETHOD GetMaxRate(uint32_t *aMaxRate) override { return _to GetMaxRate(aMaxRate); } \
  NS_IMETHOD GetMinRate(uint32_t *aMinRate) override { return _to GetMinRate(aMinRate); } \
  NS_IMETHOD GetMaxLatency(uint32_t *aMaxLatency) override { return _to GetMaxLatency(aMaxLatency); } \
  NS_IMETHOD GetMinLatency(uint32_t *aMinLatency) override { return _to GetMinLatency(aMinLatency); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUDIODEVICEINFO(_to) \
  NS_IMETHOD GetName(nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetGroupId(nsAString& aGroupId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupId(aGroupId); } \
  NS_IMETHOD GetVendor(nsAString& aVendor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVendor(aVendor); } \
  NS_IMETHOD GetType(uint16_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD GetState(uint16_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
  NS_IMETHOD GetPreferred(uint16_t *aPreferred) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferred(aPreferred); } \
  NS_IMETHOD GetSupportedFormat(uint16_t *aSupportedFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedFormat(aSupportedFormat); } \
  NS_IMETHOD GetDefaultFormat(uint16_t *aDefaultFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultFormat(aDefaultFormat); } \
  NS_IMETHOD GetMaxChannels(uint32_t *aMaxChannels) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxChannels(aMaxChannels); } \
  NS_IMETHOD GetDefaultRate(uint32_t *aDefaultRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultRate(aDefaultRate); } \
  NS_IMETHOD GetMaxRate(uint32_t *aMaxRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxRate(aMaxRate); } \
  NS_IMETHOD GetMinRate(uint32_t *aMinRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinRate(aMinRate); } \
  NS_IMETHOD GetMaxLatency(uint32_t *aMaxLatency) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLatency(aMaxLatency); } \
  NS_IMETHOD GetMinLatency(uint32_t *aMinLatency) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinLatency(aMinLatency); } 


#endif /* __gen_nsIAudioDeviceInfo_h__ */