[alsa-devel] [PATCH - JACK PCM plugin 4/7] jack: Use ALSA data type for internal hardware pointer
twischer at de.adit-jv.com
twischer at de.adit-jv.com
Wed Jan 24 13:00:39 CET 2018
From: Timo Wischer <twischer at de.adit-jv.com>
to avoid issues with different architetures where
sizeof(unsigned int) != sizeof(snd_pcm_uframes_t)
Additionally the type describes the unit
of the variable, now.
Signed-off-by: Timo Wischer <twischer at de.adit-jv.com>
diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c
index a4f35f4..53192dc 100644
--- a/jack/pcm_jack.c
+++ b/jack/pcm_jack.c
@@ -41,7 +41,7 @@ typedef struct {
char **port_names;
unsigned int num_ports;
snd_pcm_uframes_t boundary;
- unsigned int hw_ptr;
+ snd_pcm_uframes_t hw_ptr;
unsigned int sample_bits;
snd_pcm_uframes_t min_avail;
--
2.7.4
More information about the Alsa-devel
mailing list