47 nsAutoLock::DestroyLock(
mLock);
54 NS_ENSURE_TRUE(!
mLock, NS_ERROR_ALREADY_INITIALIZED);
56 mLock = nsAutoLock::NewLock(
"sbMediacoreEqualizerBand::mLock");
57 NS_ENSURE_TRUE(
mLock, NS_ERROR_OUT_OF_MEMORY);
68 sbMediacoreEqualizerBand::GetIndex(PRUint32 *aIndex)
70 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
71 NS_ENSURE_ARG_POINTER(aIndex);
73 nsAutoLock lock(
mLock);
80 sbMediacoreEqualizerBand::SetIndex(PRUint32 aIndex)
82 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
84 nsAutoLock lock(
mLock);
92 sbMediacoreEqualizerBand::GetFrequency(PRUint32 *aFrequency)
94 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
95 NS_ENSURE_ARG_POINTER(aFrequency);
97 nsAutoLock lock(
mLock);
104 sbMediacoreEqualizerBand::SetFrequency(PRUint32 aFrequency)
106 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
108 nsAutoLock lock(
mLock);
116 sbMediacoreEqualizerBand::GetGain(
double *aGain)
118 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
120 nsAutoLock lock(
mLock);
127 sbMediacoreEqualizerBand::SetGain(
double aGain)
129 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
131 nsAutoLock lock(
mLock);
138 sbMediacoreEqualizerBand::GetValues(PRUint32 *aIndex, PRUint32 *aFrequency,
double *aGain)
140 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
142 NS_ENSURE_ARG_POINTER(aIndex);
143 NS_ENSURE_ARG_POINTER(aFrequency);
144 NS_ENSURE_ARG_POINTER(aGain);
154 sbMediacoreEqualizerBand::SetValues(PRUint32 aIndex, PRUint32 aFrequency,
double aGain)
156 NS_ENSURE_TRUE(
mLock, NS_ERROR_NOT_INITIALIZED);
158 nsAutoLock lock(
mLock);