mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
|
// Copyright 2018 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";
|
||
|
|
||
|
// This interface is implemented by the browser process to log state information
|
||
|
// about an active audio component.
|
||
|
interface AudioLog {
|
||
|
// Called when an audio component is created. |params| are the parameters of
|
||
|
// the created stream. |device_id| is the id of the audio device opened by
|
||
|
// the created stream.
|
||
|
OnCreated(media.mojom.AudioParameters params,
|
||
|
string device_id);
|
||
|
|
||
|
// Called when an audio component is started, generally this is synonymous
|
||
|
// with "playing."
|
||
|
OnStarted();
|
||
|
|
||
|
// Called when an audio component is stopped, generally this is synonymous
|
||
|
// with "paused."
|
||
|
OnStopped();
|
||
|
|
||
|
// Called when an audio component is closed, generally this is synonymous
|
||
|
// with "deleted."
|
||
|
OnClosed();
|
||
|
|
||
|
// Called when an audio component encounters an error.
|
||
|
OnError();
|
||
|
|
||
|
// Called when an audio component changes volume. |volume| is the new volume.
|
||
|
OnSetVolume(double volume);
|
||
|
|
||
|
// Called when an audio component wants to forward a log message.
|
||
|
OnLogMessage(string message);
|
||
|
};
|