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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Timo Wischer <twischer@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxx>

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

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux