summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-05-13 18:08:33 +0000
committerAndy Wingo <wingo@pobox.com>2002-05-13 18:08:33 +0000
commit4a6c33000c8d1766890e7360261830708baf6799 (patch)
tree1ebc64a391f75eaaeff792c1efe1c424400f0c2c /ext
parent14112a29f62d341c36d14b6c6c23cbe904e19dc1 (diff)
downloadgst-plugins-bad-4a6c33000c8d1766890e7360261830708baf6799.tar.gz
gst-plugins-bad-4a6c33000c8d1766890e7360261830708baf6799.tar.bz2
gst-plugins-bad-4a6c33000c8d1766890e7360261830708baf6799.zip
update to new jack api
Original commit message from CVS: update to new jack api
Diffstat (limited to 'ext')
-rw-r--r--ext/jack/gstjack.c2
-rw-r--r--ext/jack/gstjack.h2
-rw-r--r--ext/jack/gstjackbin.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c
index 02696901..ab0e4a3c 100644
--- a/ext/jack/gstjack.c
+++ b/ext/jack/gstjack.c
@@ -410,7 +410,7 @@ gst_jack_loop (GstElement *element)
this = GST_JACK (element);
g_return_if_fail(this != NULL);
- len = this->bin->nframes * sizeof (sample_t);
+ len = this->bin->nframes * sizeof (jack_default_audio_sample_t);
do {
pads = this->pads;
diff --git a/ext/jack/gstjack.h b/ext/jack/gstjack.h
index 4801557e..d13a1dab 100644
--- a/ext/jack/gstjack.h
+++ b/ext/jack/gstjack.h
@@ -109,7 +109,7 @@ struct _GstJackBin {
gchar *client_name;
guint rate;
- nframes_t nframes;
+ jack_nframes_t nframes;
/* the scheduler needs to be setup from within the jack client thread; this
variable is to keep track of whether or not we have been set up yet */
diff --git a/ext/jack/gstjackbin.c b/ext/jack/gstjackbin.c
index 45ab94fd..49ecca70 100644
--- a/ext/jack/gstjackbin.c
+++ b/ext/jack/gstjackbin.c
@@ -30,9 +30,9 @@ static void gst_jack_bin_class_init(GstJackBinClass *klass);
static GstElementStateReturn gst_jack_bin_change_state(GstElement *element);
/* jack callbacks */
-static int process (nframes_t nframes, void *arg);
-static int buffer_size (nframes_t nframes, void *arg);
-static int sample_rate (nframes_t nframes, void *arg);
+static int process (jack_nframes_t nframes, void *arg);
+static int buffer_size (jack_nframes_t nframes, void *arg);
+static int sample_rate (jack_nframes_t nframes, void *arg);
static void shutdown (void *arg);
@@ -225,7 +225,7 @@ gst_jack_bin_change_state (GstElement *element)
/* keep in mind that these run in another thread, mm-kay? */
static int
-process (nframes_t nframes, void *arg)
+process (jack_nframes_t nframes, void *arg)
{
GstJackBin *bin = (GstJackBin*) arg;
GstJackPad *pad;
@@ -293,14 +293,14 @@ process (nframes_t nframes, void *arg)
}
static int
-buffer_size (nframes_t nframes, void *arg)
+buffer_size (jack_nframes_t nframes, void *arg)
{
printf ("the maximum buffer size is now %lu\n", nframes);
return 0;
}
static int
-sample_rate (nframes_t nframes, void *arg)
+sample_rate (jack_nframes_t nframes, void *arg)
{
GstJackBin *bin = (GstJackBin*) arg;
printf ("the sample rate is now %lu/sec\n", nframes);