summaryrefslogtreecommitdiff
path: root/drumgizmo/output/alsa/alsa.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-20 16:55:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-20 16:55:52 +0100
commitc4f5bbfab513cd5291fbec7f0781be18c9aeb4f4 (patch)
treea2bf831e2d5c405ddede156f9468b05e9cc98516 /drumgizmo/output/alsa/alsa.cc
parent02321ff4d595db763074080b3e55d040fc403a99 (diff)
Fix uninitialised warning.
Diffstat (limited to 'drumgizmo/output/alsa/alsa.cc')
-rw-r--r--drumgizmo/output/alsa/alsa.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/drumgizmo/output/alsa/alsa.cc b/drumgizmo/output/alsa/alsa.cc
index dc2ac73..71e0c3d 100644
--- a/drumgizmo/output/alsa/alsa.cc
+++ b/drumgizmo/output/alsa/alsa.cc
@@ -52,15 +52,15 @@ public:
size_t samplerate();
private:
- snd_pcm_t *handle;
- snd_pcm_hw_params_t *params;
- sample_t *data;
- size_t channels;
+ snd_pcm_t *handle{nullptr};
+ snd_pcm_hw_params_t *params{nullptr};
+ sample_t *data{nullptr};
+ size_t channels{0};
// Parameters
std::string device;
- unsigned int srate;
- snd_pcm_uframes_t frames;
+ unsigned int srate{0};
+ snd_pcm_uframes_t frames{0};
};
Alsa::Alsa()