Bug 805254. Part 5: Remove format parameter from PAudio constructor. r=kinetik

This commit is contained in:
Robert O'Callahan 2012-10-25 23:09:39 +13:00
Родитель 9bfc64887e
Коммит 0e15bb86af
8 изменённых файлов: 7 добавлений и 12 удалений

Просмотреть файл

@ -132,8 +132,7 @@ class AudioInitEvent : public nsRunnable
ContentChild * cpc = ContentChild::GetSingleton();
NS_ASSERTION(cpc, "Content Protocol is NULL!");
mOwner->mAudioChild = static_cast<AudioChild*>(cpc->SendPAudioConstructor(mOwner->mChannels,
mOwner->mRate,
Format()));
mOwner->mRate));
return NS_OK;
}

Просмотреть файл

@ -292,7 +292,7 @@ AudioParent::SendWriteDone()
return true;
}
AudioParent::AudioParent(int32_t aNumChannels, int32_t aRate, int32_t aFormat)
AudioParent::AudioParent(int32_t aNumChannels, int32_t aRate)
: mIPCOpen(true)
{
mStream = nsAudioStream::AllocateStream();

Просмотреть файл

@ -50,7 +50,7 @@ class AudioParent : public PAudioParent, public nsITimerCallback
virtual bool
SendWriteDone();
AudioParent(int32_t aNumChannels, int32_t aRate, int32_t aFormat);
AudioParent(int32_t aNumChannels, int32_t aRate);
virtual ~AudioParent();
virtual void ActorDestroy(ActorDestroyReason);

Просмотреть файл

@ -655,8 +655,7 @@ ContentChild::RecvPTestShellConstructor(PTestShellChild* actor)
PAudioChild*
ContentChild::AllocPAudio(const int32_t& numChannels,
const int32_t& rate,
const int32_t& format)
const int32_t& rate)
{
#if defined(MOZ_SYDNEYAUDIO)
AudioChild *child = new AudioChild();

Просмотреть файл

@ -123,7 +123,6 @@ public:
virtual bool RecvPTestShellConstructor(PTestShellChild*);
virtual PAudioChild* AllocPAudio(const int32_t&,
const int32_t&,
const int32_t&);
virtual bool DeallocPAudio(PAudioChild*);

Просмотреть файл

@ -1438,11 +1438,10 @@ ContentParent::DeallocPTestShell(PTestShellParent* shell)
PAudioParent*
ContentParent::AllocPAudio(const int32_t& numChannels,
const int32_t& rate,
const int32_t& format)
const int32_t& rate)
{
#if defined(MOZ_SYDNEYAUDIO)
AudioParent *parent = new AudioParent(numChannels, rate, format);
AudioParent *parent = new AudioParent(numChannels, rate);
NS_ADDREF(parent);
return parent;
#else

Просмотреть файл

@ -222,7 +222,6 @@ private:
virtual bool DeallocPTestShell(PTestShellParent* shell);
virtual PAudioParent* AllocPAudio(const int32_t&,
const int32_t&,
const int32_t&);
virtual bool DeallocPAudio(PAudioParent*);

Просмотреть файл

@ -272,7 +272,7 @@ parent:
returns (uint64_t id, bool startBackground,
bool isForApp, bool isForBrowser);
PAudio(int32_t aNumChannels, int32_t aRate, int32_t aFormat);
PAudio(int32_t aNumChannels, int32_t aRate);
PDeviceStorageRequest(DeviceStorageParams params);