2 * Copyright 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT licensce.
5 #ifndef AUDIO_VOLUME_CONVERTER_H
6 #define AUDIO_VOLUME_CONVERTER_H
9 /*! This AudioReader just filters the volume. It depends on floating point
14 #include "AudioReader.h"
17 class AudioVolumeConverter
: public AudioReader
{
19 AudioVolumeConverter(AudioReader
* source
,
21 virtual ~AudioVolumeConverter();
23 virtual bigtime_t
InitialLatency() const;
24 virtual status_t
Read(void* buffer
, int64 pos
, int64 frames
);
26 virtual status_t
InitCheck() const;
28 AudioReader
* Source() const;
30 void SetVolume(float volume
);
36 float fPreviousVolume
;
39 #endif // AUDIO_VOLUME_CONVERTER_H