Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: candycanearter07 Newsgroups: comp.os.linux.advocacy Subject: Re: The Power of AI! Date: Fri, 25 Oct 2024 18:40:04 -0000 (UTC) Organization: the-candyden-of-code Lines: 42 Message-ID: References: Injection-Date: Fri, 25 Oct 2024 20:40:04 +0200 (CEST) Injection-Info: dont-email.me; posting-host="c888727e652c6f0f842ad30fb4e9232d"; logging-data="3469183"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ApiE9jfJIC7BqVJESerdUaC4Vk3hxOTrWBF5cfmHjHg==" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:rac2xaNFTKLZVipxSXHvsJMKuLQ= X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA] wrote at 10:59 this Tuesday (GMT): > The googoo query: "C++ start the jack server". > > The AI overview: > > Starting the JACK server directly from C++ code is not a common practice. > You usually start the JACK server using external tools like jackd from the > command line or using a graphical tool like QjackCtl. However, if you > really need to control the JACK server from your C++ code, you can use a > library like libjack. Here's a basic example: > > #include > > int main() { > jack_status_t status; > jack_client_t* client = > jack_client_open("MyClient", JackNullOption, &status); > > if (client == NULL) { > fprintf(stderr, "jack_client_open() failed, status = 0x%2.0x\n", > status); > if (status & JackServerFailed) { > fprintf(stderr, "Unable to connect to JACK server\n"); > } > exit(1); > } > > // ... your JACK client code here ... > > jack_client_close(client); > return 0; > } > > In other words, wrong. Actually not even wrong; it does not answer the > question. > > Heh heh: Was the message cut off by my provider, or did you mistype a period? -- user is generated from /dev/urandom