mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Backed out changeset 7d17f2d129e3 (bug 881959)
This commit is contained in:
parent
a8fe3b72e1
commit
94fdad4a1d
@ -36,7 +36,7 @@ NS_INTERFACE_MAP_END_INHERITING(AudioNode)
|
||||
NS_IMPL_ADDREF_INHERITED(OscillatorNode, AudioNode)
|
||||
NS_IMPL_RELEASE_INHERITED(OscillatorNode, AudioNode)
|
||||
|
||||
static const float sLeak = 0.995f;
|
||||
static const float sLeak = 0.995;
|
||||
|
||||
class DCBlocker
|
||||
{
|
||||
@ -158,14 +158,14 @@ public:
|
||||
// Initial mPhase and related integration condition so the triangle is
|
||||
// in the middle of the first upward slope.
|
||||
// XXX actually do the maths and put the right number here.
|
||||
mPhase = (float)(M_PI / 2);
|
||||
mPhase = M_PI / 2;
|
||||
mSquare = 0.5;
|
||||
mTriangle = 0.0;
|
||||
break;
|
||||
case OscillatorType::Sawtooth:
|
||||
/* initial mPhase so the oscillator start at the middle
|
||||
* of the ramp, per spec */
|
||||
mPhase = (float)(M_PI / 2);
|
||||
mPhase = M_PI / 2;
|
||||
/* mSaw = 0 when mPhase = pi/2 */
|
||||
mSaw = 0.0;
|
||||
break;
|
||||
|
@ -150,15 +150,6 @@ cubeb_get_max_channel_count(cubeb * context, uint32_t * max_channels)
|
||||
return context->ops->get_max_channel_count(context, max_channels);
|
||||
}
|
||||
|
||||
int
|
||||
cubeb_get_minimal_latency(cubeb * stream, uint32_t * latency_ms)
|
||||
{
|
||||
if (!latency_ms) {
|
||||
return CUBEB_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
return context->ops->get_max_channel_count(context, latency_ms);
|
||||
}
|
||||
|
||||
void
|
||||
cubeb_destroy(cubeb * context)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user