forked from mirrors/gecko-dev
Cleans up the interface to AudioSession and brings in line with COM best practices. Uses background threads that are implicitly MTA and asserts proper thread behavior. This also removes AudioSession's Co[Un]Initialize static analysis violations. Differential Revision: https://phabricator.services.mozilla.com/D140741
19 lines
548 B
C++
19 lines
548 B
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* 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/. */
|
|
|
|
#include "nsString.h"
|
|
|
|
namespace mozilla {
|
|
namespace widget {
|
|
|
|
// Start the audio session in the current process
|
|
void StartAudioSession();
|
|
|
|
// Stop the audio session in the current process
|
|
void StopAudioSession();
|
|
|
|
} // namespace widget
|
|
} // namespace mozilla
|