2010-11-17 07:14:19 +03: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 15:12:37 +04: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-17 07:14:19 +03:00
|
|
|
|
|
|
|
include protocol PContent;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2010-11-30 08:37:32 +03:00
|
|
|
protocol PAudio
|
2010-11-17 07:14:19 +03:00
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
Write(nsCString data, uint32_t frames);
|
2010-11-17 07:14:19 +03:00
|
|
|
|
|
|
|
SetVolume(float aVolume);
|
|
|
|
|
2011-09-27 07:31:18 +04:00
|
|
|
MinWriteSize();
|
2010-11-30 08:37:32 +03:00
|
|
|
Drain();
|
2010-11-17 07:14:19 +03:00
|
|
|
|
|
|
|
Pause();
|
|
|
|
Resume();
|
2011-01-29 08:40:23 +03:00
|
|
|
Shutdown();
|
2010-11-17 07:14:19 +03:00
|
|
|
|
|
|
|
child:
|
|
|
|
|
2011-01-29 08:40:23 +03:00
|
|
|
__delete__();
|
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
PositionInFramesUpdate(int64_t position, int64_t time);
|
|
|
|
MinWriteSizeDone(int32_t frameCount);
|
2010-11-30 08:37:32 +03:00
|
|
|
DrainDone();
|
2012-07-02 08:59:43 +04:00
|
|
|
WriteDone();
|
2010-11-17 07:14:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|