[-,JACK,PCM,plugin,4/7] jack: Use ALSA data type for internal hardware pointer
diff mbox

Message ID 1516795241-10219-2-git-send-email-twischer@de.adit-jv.com
State New
Headers show

Commit Message

Timo Wischer Jan. 24, 2018, noon UTC
From: Timo Wischer <twischer@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@de.adit-jv.com>

diff mbox

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;