gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
JackPortMonitor.C
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16  */
17 
18 /*
19 Author: Matt Flax <flatmax@flatmax.org>
20 Date: 2013.08.05
21 */
22 
23 #include <unistd.h>
24 #include "JackPortMonitor.H"
25 #include <iostream>
26 using namespace std;
27 
28 int main(int argc, char *argv[]) {
29  bool monitorPorts=true, autoConnectNetClients=true;
30  JackPortMonitor jackPM("port monitor", monitorPorts, autoConnectNetClients); // init the jack port manager, use the non gui client type.
31 
32  cout<<"Jack : sample rate set to : "<<jackPM.getSampleRate()<<" Hz"<<endl;
33 
34  jackPM.print(cout);
35 
36  while (1)
37  sleep(360);
38 
39  return 0;
40 }
virtual void print(ostream &os)
STL namespace.
int main(int argc, char *argv[])
int getSampleRate(void) const
Definition: JackBase.H:266
gtkIOStream: /tmp/gtkiostream/applications/JackPortMonitor.C Source File
GTK+ IOStream  Beta