diff options
Diffstat (limited to 'parecord/audio_types.h')
-rw-r--r-- | parecord/audio_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/parecord/audio_types.h b/parecord/audio_types.h index 6b6fd12..d151dce 100644 --- a/parecord/audio_types.h +++ b/parecord/audio_types.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <sys/types.h> +#include <pulse/sample.h> #include "wav_header.h" @@ -16,10 +17,16 @@ struct audio_types_info { off_t rsv_bytes; }; +struct audio_formats_info { + const char *name; + pa_sample_format_t pa_format; +}; + struct wav_header *init_wav_header(struct wav_header *header, uint32_t size, uint16_t audioFormat, uint16_t numChannels, uint32_t sampleRate, uint32_t bitsPerSample); int checkAudioType(char *source); off_t getOffset(int format); +pa_sample_format_t checkAudioFormat(char *source); #endif /* AT_AUDIOTYPES_H */ |