Chromium Code Reviews| Index: media/audio/pulse/pulse_output.h |
| diff --git a/media/audio/linux/pulse_output.h b/media/audio/pulse/pulse_output.h |
| similarity index 94% |
| rename from media/audio/linux/pulse_output.h |
| rename to media/audio/pulse/pulse_output.h |
| index 46aab578ff15b799cbfa67d685785befa51fa97c..4881ed7986864278f439ed3a8f2c687f974e34d1 100644 |
| --- a/media/audio/linux/pulse_output.h |
| +++ b/media/audio/pulse/pulse_output.h |
| @@ -31,14 +31,22 @@ namespace media { |
| class SeekableBuffer; |
| } |
| +#if defined(OS_LINUX) |
|
scherkus (not reviewing)
2011/11/09 01:10:54
Does using the base class AudioManager work here?
Robert Nagy
2011/11/09 07:44:39
Unfortunately i still need to have class AudioMana
|
| class AudioManagerLinux; |
| +#elif defined(OS_OPENBSD) |
| +class AudioManagerOpenBSD; |
| +#endif |
| struct AudioParameters; |
| class MessageLoop; |
| class PulseAudioOutputStream : public AudioOutputStream { |
| public: |
| PulseAudioOutputStream(const AudioParameters& params, |
| +#if defined(OS_LINUX) |
| AudioManagerLinux* manager, |
| +#elif defined(OS_OPENBSD) |
| + AudioManagerOpenBSD* manager, |
| +#endif |
| MessageLoop* message_loop); |
| virtual ~PulseAudioOutputStream(); |
| @@ -86,7 +94,11 @@ class PulseAudioOutputStream : public AudioOutputStream { |
| const uint32 bytes_per_frame_; |
| // Audio manager that created us. Used to report that we've closed. |
| +#if defined(OS_LINUX) |
| AudioManagerLinux* manager_; |
| +#elif defined(OS_OPENBSD) |
| + AudioManagerOpenBSD* manager_; |
| +#endif |
| // PulseAudio API structs. |
| pa_context* pa_context_; |