Index: media/audio/linux/alsa_output.h |
=================================================================== |
--- media/audio/linux/alsa_output.h (revision 30973) |
+++ media/audio/linux/alsa_output.h (working copy) |
@@ -75,7 +75,6 @@ |
AlsaWrapper* wrapper, |
AudioManagerLinux* manager, |
MessageLoop* message_loop); |
- virtual ~AlsaPcmOutputStream(); |
// Implementation of AudioOutputStream. |
virtual bool Open(size_t packet_size); |
@@ -86,6 +85,7 @@ |
virtual void GetVolume(double* left_level, double* right_level); |
private: |
+ friend class base::RefCountedThreadSafe<AlsaPcmOutputStream>; |
friend class AlsaPcmOutputStreamTest; |
FRIEND_TEST(AlsaPcmOutputStreamTest, AutoSelectDevice_DeviceSelect); |
FRIEND_TEST(AlsaPcmOutputStreamTest, AutoSelectDevice_FallbackDevices); |
@@ -106,6 +106,8 @@ |
FRIEND_TEST(AlsaPcmOutputStreamTest, WritePacket_StopStream); |
FRIEND_TEST(AlsaPcmOutputStreamTest, WritePacket_WriteFails); |
+ virtual ~AlsaPcmOutputStream(); |
+ |
// In-memory buffer to hold sound samples before pushing to the sound device. |
// TODO(ajwong): There are now about 3 buffer/packet implementations. Factor |
// them out. |