2010-11-16 20:14:19 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim: set sw=4 ts=8 et tw=80 : */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-11-16 20:14:19 -08:00
|
|
|
|
|
|
|
include protocol PContent;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2010-11-29 21:37:32 -08:00
|
|
|
protocol PAudio
|
2010-11-16 20:14:19 -08:00
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
|
2011-09-26 20:31:18 -07:00
|
|
|
Write(nsCString data, PRUint32 frames);
|
2010-11-16 20:14:19 -08:00
|
|
|
|
|
|
|
SetVolume(float aVolume);
|
|
|
|
|
2011-09-26 20:31:18 -07:00
|
|
|
MinWriteSize();
|
2010-11-29 21:37:32 -08:00
|
|
|
Drain();
|
2010-11-16 20:14:19 -08:00
|
|
|
|
|
|
|
Pause();
|
|
|
|
Resume();
|
2011-01-28 21:40:23 -08:00
|
|
|
Shutdown();
|
2010-11-16 20:14:19 -08:00
|
|
|
|
|
|
|
child:
|
|
|
|
|
2011-01-28 21:40:23 -08:00
|
|
|
__delete__();
|
|
|
|
|
2011-09-26 20:31:18 -07:00
|
|
|
PositionInFramesUpdate(PRInt64 position, PRInt64 time);
|
|
|
|
MinWriteSizeDone(PRInt32 frameCount);
|
2010-11-29 21:37:32 -08:00
|
|
|
DrainDone();
|
2012-07-01 21:59:43 -07:00
|
|
|
WriteDone();
|
2010-11-16 20:14:19 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|