diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-10-31 12:57:33 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-10-31 12:57:33 +0100 |
commit | b484b2aa3ae9b8512eedac1f70a0d0a20c2ce672 (patch) | |
tree | 1976d42dbb0f77eb30d699f82208e84db5391001 /audio_hw.h | |
parent | 62bffb6008aad930652d21e9a14b3a790514c5d0 (diff) | |
download | hardware_tinyalsa-audio-b484b2aa3ae9b8512eedac1f70a0d0a20c2ce672.zip hardware_tinyalsa-audio-b484b2aa3ae9b8512eedac1f70a0d0a20c2ce672.tar.gz hardware_tinyalsa-audio-b484b2aa3ae9b8512eedac1f70a0d0a20c2ce672.tar.bz2 |
Output/Input: Use resampler when required
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'audio_hw.h')
-rw-r--r-- | audio_hw.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -22,6 +22,8 @@ #include <hardware/audio.h> #include <system/audio.h> +#include <audio_utils/resampler.h> + #ifdef YAMAHA_MC1N2_AUDIO #include <yamaha-mc1n2-audio.h> #endif @@ -41,6 +43,8 @@ struct tinyalsa_audio_stream_out { audio_devices_t device_current; + struct resampler_itfe *resampler; + struct pcm *pcm; int standby; }; @@ -50,13 +54,17 @@ struct tinyalsa_audio_stream_in { struct tinyalsa_audio_device *device; struct tinyalsa_mixer_io_props *mixer_props; - int rate; audio_channels_t channels; audio_format_t format; audio_devices_t device_current; + struct resampler_itfe *resampler; + struct resampler_buffer_provider buffer_provider; + void *buffer; + int frames_left; + struct pcm *pcm; int standby; }; |