blob: 510df8b14cbf184ab10f9f32e36c5087b397b733 [file] [log] [blame]
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// AudioRendererAlgorithmDefault is the default implementation of
// AudioRendererAlgorithmBase. For speeds other than 1.0f, FillBuffer()
// fills |buffer_out| with 0s and returns the expected size. As ARAB is
// thread-unsafe, so is ARAD.
#ifndef MEDIA_FILTERS_AUDIO_RENDERER_ALGORITHM_DEFAULT_H_
#define MEDIA_FILTERS_AUDIO_RENDERER_ALGORITHM_DEFAULT_H_
#include "media/filters/audio_renderer_algorithm_base.h"
namespace media {
class AudioRendererAlgorithmDefault : public AudioRendererAlgorithmBase {
public:
AudioRendererAlgorithmDefault();
virtual ~AudioRendererAlgorithmDefault();
// AudioRendererAlgorithmBase implementation
virtual uint32 FillBuffer(uint8* dest, uint32 length);
private:
DISALLOW_COPY_AND_ASSIGN(AudioRendererAlgorithmDefault);
};
} // namespace media
#endif // MEDIA_FILTERS_AUDIO_RENDERER_ALGORITHM_DEFAULT_H_