From: <twischer@de.adit-jv.com>
To: patch@alsa-project.org
Cc: Timo Wischer <twischer@de.adit-jv.com>, alsa-devel@alsa-project.org
Subject: [PATCH - JACK PCM plugin 4/7] jack: Use ALSA data type for internal hardware pointer
Date: Wed, 24 Jan 2018 13:00:39 +0100 [thread overview]
Message-ID: <1516795241-10219-2-git-send-email-twischer@de.adit-jv.com> (raw)
In-Reply-To: <1516795241-10219-1-git-send-email-twischer@de.adit-jv.com>
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 --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
next prev parent reply other threads:[~2018-01-24 12:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-24 12:00 (no subject) twischer
2018-01-24 12:00 ` twischer [this message]
2018-01-24 12:00 ` [PATCH - JACK PCM plugin 5/7] jack: Use internal snd_pcm_state to reduce amount of additional variables twischer
2018-01-24 12:00 ` [PATCH - JACK PCM plugin 6/7] jack: Report Xruns to user application twischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516795241-10219-2-git-send-email-twischer@de.adit-jv.com \
--to=twischer@de.adit-jv.com \
--cc=alsa-devel@alsa-project.org \
--cc=patch@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.