]> git.sesse.net Git - nageru/blobdiff - alsa_output.h
Support audio-only FFmpeg inputs. Somewhat wonky, though.
[nageru] / alsa_output.h
index 12af16ecbfdd9ade616805fea169f7004899b0ff..3d1d2ca4add8e5735b046720e612203780b27302 100644 (file)
@@ -9,7 +9,6 @@
 // probably drift out of sync enough to make a little pop.
 
 #include <alsa/asoundlib.h>
-
 #include <vector>
 
 class ALSAOutput {
@@ -21,7 +20,7 @@ private:
        snd_pcm_t *pcm_handle;
        std::vector<float> buffer;
        snd_pcm_uframes_t period_size;
-       int num_channels;
+       int sample_rate, num_channels;
 };
 
 #endif  // !defined(_ALSA_OUTPUT_H)