search for: println

Displaying 20 results from an estimated 179 matches for "println".

2012 Nov 23
0
[LLVMdev] [cfe-dev] costing optimisations
...The Felix compiler generates C++. This particular test checks printing and comparison of tuples and arrays. What is relevant here is the "inline* keyword. This tells Felix to inline the procedure, so the result is a single big C++ function. ///////////////// var z = 1, (2.2, "xx"); println$ str z; var z2 = 1, 2.2, "xx", 3, 4.3; println$ z2; var z3 = 1,23.3, z, z2, 99, "Jah"; println$ z3; a := 1,2,3,4,5,6,7,8,9,10; inline proc A () { println$ 1,2; println$ 1,2,3; println$ 1,2,3,4; println$ 1,2,3,4,5; println$ (a, a) :>> (int ^ 20); } A; inline proc B ()...
2004 Aug 06
0
Lost ogg sync using jspeex
...udioCapture { public static void main(String args[]) { int bufferlength=44100; int framelength=1280; int frameduration=1000; Vector recordBuffer=new Vector(); try { AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true); System.out.println("AudioFormat Created"); DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class,audioFormat,8000); System.out.println("Dataline.Info Created"); //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100); TargetDataLine...
2004 Aug 06
0
Lost ogg sync using jspeex
...udioCapture { public static void main(String args[]) { int bufferlength=44100; int framelength=1280; int frameduration=1000; Vector recordBuffer=new Vector(); try { AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true); System.out.println("AudioFormat Created"); DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class,audioFormat,8000); System.out.println("Dataline.Info Created"); //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat,44100); TargetDataLine...
2005 Jul 20
2
unable to call R t-test from Java
...Evaluator; public class JavaRCall2 { /** * want to see if I can eval a t.test command like what I would run in the * R command line */ static public void runTTestByEval_cores(REvaluator e, ROmegahatInterpreter interp) { /* produces a core */ System.err.println("eval a t.test"); Object value = e.eval("t.test (c(1,2,3), c(4,5,6))"); if (value != null) interp.show(value); } /** * want to see if I can eval anything that takes a vector, e.g. mean, * like what I would run in the R command...
2004 Aug 06
3
Mixing audio
Is There any intension to deal with mixing two or more streams encoded with "speex". Most voice wise applications (such as conference) need this feature. Oded Rephael <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...bufferlength=44100;<BR> int framelength=1280;<BR> int frameduration=1000;<BR> Vector recordBuffer=new Vector();<BR> try<BR> {<BR> AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true);<BR> System.out.println("AudioFormat Created");<BR> DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class,audioFormat,8000);<BR> System.out.println("Dataline.Info Created");<BR> //DataLine.Info outputDataLineInfo = new DataLine.Info(SourceDataLine.class,audioFormat...
2004 Aug 06
2
q about jspeex
Ulrich B. Staudinger wrote: > Hi, > > i have: > > public void run(){ > try{ > System.out.println("Opening > mic"); // AudioInput > ai=new AudioInput(t); > // ai.start(); > if(t.input==null){ > AudioFormat format = new > AudioFormat(AudioFormat.Encoding.PCM_SIGNED...
2012 Nov 23
5
[LLVMdev] [cfe-dev] costing optimisations
Adding LLVMdev, since this is intimately related to the optimization passes. > I think this is roughly because some function level optimisations are > worse than O(N) in the number of instructions. Please profile this and mail llvmdev regarding passes with significantly superlinear behavior (e.g. O(n^2)). My understanding is that these kinds of algorithmic problems are generally considered
2005 Aug 22
1
Fetching Warning Messages
...<-sqrt(-9);y<-matrix(1:9,ncol=4);z<-sqrt(4)} , warning = function (w) { lastWarning <<- paste(lastWarning,as.character(w))})"); //This will generate warning message[sqrt(-9)], another warning message [ matrix(1:9,ncol=4) ] and successful completion [ sqrt(4) ] System.out.println(c.eval("z").asDouble()); System.out.println(c.eval("lastWarning").asString()); c.close(); System.out.println("DONE"); } catch(RSrvException e) { System.out.println("Error : " + e.getMessage()); e.pr...
2004 Aug 06
3
q about jspeex
Hi Marc, thanks for the quick reply. Marc Gimpel wrote: > It would appear the the 'pcm2speex.read(frame, 0, frame.length)' is > blocking which means that it is waiting for data from the underlying > inputstream (i.e.AudioInputStream(t.input)). If it could read > sufficient data it would transcode it. If it recieved an EOF, it > should do some zero padding and then
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...le("Testing.raw")); if (!AudioSystem.isLineSupported(info)) throw new Exception("no line supported"); line = (TargetDataLine)AudioSystem.getLine(info); line.open(format); buffer = new byte[320]; byte[] mybuffer = new byte[4000000]; line.start(); System.out.println("Frame size: "+format.getFrameSize()); int numBytesRead; System.out.println("The buffer length is "+buffer.length+"\nMy packet buffers are: "+nbBytes+"\n"); System.out.println("My byffer bytes are: "+obBytes+"\nNumber of packets: "+m...
2004 Aug 06
0
q about jspeex
Hi, i have: public void run(){ try{ System.out.println("Opening mic"); // AudioInput ai=new AudioInput(t); // ai.start(); if(t.input==null){ AudioFormat format = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100, 16, 2, 4, 44100, f...
2004 Aug 06
0
q about jspeex
...coding, that I'm sure of in any case. Marc Gimpel Head of research Wimba Ulrich B. Staudinger wrote: > Ulrich B. Staudinger wrote: > >> Hi, >> >> i have: >> >> public void run(){ >> try{ >> System.out.println("Opening >> mic"); // >> AudioInput ai=new AudioInput(t); >> // ai.start(); >> if(t.input==null){ >> AudioFormat format = new >> AudioFormat(AudioFo...
2012 Nov 23
2
[LLVMdev] [cfe-dev] costing optimisations
...C++. This particular test checks printing and > comparison of tuples and arrays. What is relevant here is the "inline* keyword. > This tells Felix to inline the procedure, so the result is a single big C++ function. > > ///////////////// > var z = 1, (2.2, "xx"); > println$ str z; > var z2 = 1, 2.2, "xx", 3, 4.3; > println$ z2; > > var z3 = 1,23.3, z, z2, 99, "Jah"; > println$ z3; > a := 1,2,3,4,5,6,7,8,9,10; > > inline proc A () { > println$ 1,2; > println$ 1,2,3; > println$ 1,2,3,4; > println$ 1,2,3,4,5; &g...
2005 Jul 05
2
Java and R help
Im doing an aplication in Java and i have a program made in R what i want to launch with Java. I have the following instructions: Runtime r = Runtime.getRuntime(); try { System.out.println ("Llamada a R..."); p = r.exec(sRutaR); } catch (IOException e) { System.out.println ("Error lanzando R: " + e.getMessage()); e.printStackTrace(); } catch (Exception ex) { System.out....
2019 Apr 18
2
Re: [libvirt] JVM crashes during GC
...== > > *package* org.libvirt; > > > *import* org.libvirt.jna.Libvirt; > > > *public* *class* LibvirtCrashTest { > > *void* createAndDestroyDefaultAuthConnection() { > > ConnectAuth ca = *new* ConnectAuthDefault(); > > *try* { > > System.*out*.println("Starting new connection with default auth"); > > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); It could be interesting to try different libvirt drivers. eg "test:///default" this could help identify if its a bug in libvirt common code...
2008 Apr 23
2
[LLVMdev] templates vs code to generate IR
...bute that fill in the holes is very simple from an ANTLR grammar. :) Just a few thoughts in case people are wondering about the various approaches. regards, Ter ------------- Imagine that you would like to generate the Java byte codes using a program for the following java code: System.out.println("Hello"); The javac byte code compiler will generate the following byte codes: getstatic java/lang/System/out Ljava/io/PrintStream; ldc "Hello" invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V Either you use templates that render to text or you use a library suc...
2019 Apr 18
3
Re: [libvirt] JVM crashes during GC
On Thu, Apr 18, 2019 at 05:51:06PM +0200, Michal Prívozník wrote: > On 4/17/19 10:24 AM, Sachin Soman wrote: > > Hi, > > > > Could you tell me if the following is some known issue? > > > > While performing the following simple test, I see my JVM crashing > > (consistently): > > 1. Open a connection to an ESXi driver/host (passing ConnectAuthDefault
2003 Nov 12
1
Talk with from Java
...BufferedWriter out = new BufferedWriter(new OutputStreamWriter(process.getOutputStream())); String s=null; String c=null; while(true) { try { while ((s=in.readLine())!=null) { System.out.println(s); } /* The big problem is: it seems like R doesn't come out of this loop, or if its does I get the following error: java.io.IOException: Broken pipe*/ System.out.print("\n>"); c = reader.readLine();...
2019 Apr 18
1
Re: [libvirt] JVM crashes during GC
...=========== > > *package* org.libvirt; > > > *import* org.libvirt.jna.Libvirt; > > > *public* *class* LibvirtCrashTest { > > *void* createAndDestroyDefaultAuthConnection() { > > ConnectAuth ca = *new* ConnectAuthDefault(); > > *try* { > > System.*out*.println("Starting new connection with default auth"); > > Connect connect = *new* Connect("esx://x.x.x.x/?no_verify=1", ca, 0); > > Thread.*sleep*(1000); > > System.*out*.println("Explicit connection closure"); > > connect.close(); > > Thread.*sle...