]> git.sesse.net Git - nageru/blobdiff - nageru/audio_mixer.h
Include the raw audio in the MJPEG output.
[nageru] / nageru / audio_mixer.h
index 1cf4da349e71d4cc28d7c2ad5b4689f56fd7586d..14e7e85d098065aabc5cd39d70ed5b31a8713041 100644 (file)
@@ -37,6 +37,10 @@ namespace bmusb {
 struct AudioFormat;
 }  // namespace bmusb
 
+// Convert the given audio from {16,24,32}-bit M-channel to 32-bit N-channel PCM.
+// Assumes little-endian and chunky, signed PCM throughout.
+std::vector<int32_t> convert_audio_to_fixed32(const uint8_t *data, unsigned num_samples, bmusb::AudioFormat audio_format, unsigned num_destination_channels);
+
 enum EQBand {
        EQ_BAND_BASS = 0,
        EQ_BAND_MID,