1 /* PROJECT: ReactOS sndrec32
2 * LICENSE: GPL - See COPYING in the top level directory
3 * FILE: base/applications/sndrec32/audio_resampler_acm.hpp
4 * PURPOSE: Windows ACM wrapper
5 * PROGRAMMERS: Marco Pagliaricci (irc: rendar)
8 #ifndef _AUDIORESAMPLERACM__H_
9 #define _AUDIORESAMPLERACM__H_
11 #include "audio_receiver.hpp"
12 #include "audio_format.hpp"
14 _AUDIO_NAMESPACE_START_
16 /* TODO: inherit from a base resampler? */
17 class audio_resampler_acm : public audio_receiver
23 HACMSTREAM acm_stream;
24 ACMSTREAMHEADER acm_header;
29 audio_format audfmt_in;
30 audio_format audfmt_out;
34 WAVEFORMATEX wformat_src;
35 WAVEFORMATEX wformat_dst;
39 audio_resampler_acm(audio_format fmt_in,
40 audio_format fmt_out) : acm_stream(0),
46 buf_secs(_AUDIO_DEFAULT_BUFSECS)
52 ~audio_resampler_acm(void)
56 /* Public functions */
59 void audio_receive(unsigned char *, unsigned int);
64 #endif /* _AUDIORESAMPLERACM__H_ */