Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef __nsSound_h__
8 #define __nsSound_h__
10 #include "nsISound.h"
11 #include "nsIStreamLoader.h"
12 #include "nsCOMPtr.h"
14 class nsIThread;
16 class nsSound : public nsISound,
17 public nsIStreamLoaderObserver
19 {
20 public:
21 nsSound();
22 virtual ~nsSound();
23 void ShutdownOldPlayerThread();
25 NS_DECL_ISUPPORTS
26 NS_DECL_NSISOUND
27 NS_DECL_NSISTREAMLOADEROBSERVER
29 private:
30 void PurgeLastSound();
32 private:
33 uint8_t* mLastSound;
34 nsCOMPtr<nsIThread> mPlayerThread;
35 };
37 #endif /* __nsSound_h__ */