widget/windows/nsSound.h
author Andrew Comminos <andrew@comminos.com>
Tue, 26 Jul 2016 14:23:47 -0400
changeset 349278 de07c5af9cc8975d82cbb5dde8cd2a64dc3d8b42
parent 215041 2e967076c3e6c2967a74f551ffdf0196cdfc8e84
child 414621 676386703e2ddba041c06ef0ba7542d253710dd7
permissions -rw-r--r--
Bug 1289561 - Implement LSB release annotation in crash reports. r=jrmuizel MozReview-Commit-ID: IEcH6K5D27H

/* -*- 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/. */

#ifndef __nsSound_h__
#define __nsSound_h__

#include "nsISound.h"
#include "nsIStreamLoader.h"
#include "nsCOMPtr.h"

class nsIThread;

class nsSound : public nsISound,
                public nsIStreamLoaderObserver

{
public: 
  nsSound();
  void ShutdownOldPlayerThread();

  NS_DECL_ISUPPORTS
  NS_DECL_NSISOUND
  NS_DECL_NSISTREAMLOADEROBSERVER

private:
  virtual ~nsSound();
  void PurgeLastSound();

private:
  uint8_t* mLastSound;
  nsCOMPtr<nsIThread> mPlayerThread;
};

#endif /* __nsSound_h__ */