// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. module media.mojom; import "media/mojo/interfaces/audio_parameters.mojom"; import "media/mojo/interfaces/media_types.mojom"; // An interface for controlling an audio input stream. // On error, the message pipe is closed. // To close the stream, just close the message pipe. interface AudioInputStream { // Starts recording audio. Record(); // Sets volume. Volume must be in the range [0, 1]. SetVolume(double volume); }; // An interface for receiving notifications of state changes of an // AudioInputStream. interface AudioInputStreamClient { OnError(); OnMutedStateChanged(bool is_muted); };