nsIAudioChannelService.idl 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. interface mozIDOMWindowProxy;
  7. [scriptable, builtinclass, uuid(5cb24dbc-36c7-46a4-9966-ac73141dc795)]
  8. interface nsIAudioChannelService : nsISupports
  9. {
  10. float getAudioChannelVolume(in mozIDOMWindowProxy window,
  11. in unsigned short audioChannel);
  12. void setAudioChannelVolume(in mozIDOMWindowProxy window,
  13. in unsigned short audioChannel,
  14. in float volume);
  15. boolean getAudioChannelMuted(in mozIDOMWindowProxy window,
  16. in unsigned short audioChannel);
  17. void setAudioChannelMuted(in mozIDOMWindowProxy window,
  18. in unsigned short audioChannel,
  19. in boolean muted);
  20. boolean isAudioChannelActive(in mozIDOMWindowProxy window,
  21. in unsigned short audioChannel);
  22. };