search for: arraycopy

Displaying 8 results from an estimated 8 matches for "arraycopy".

2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...ber of packets: "+myNum+"\nSize: "+myNum*nbBytes+"\nRecording started"); while (System.in.available() == 0) { numBytesRead = line.read(buffer, 0, 320); System.out.println("Num bytes read = "+numBytesRead+"\n"); buffer = encode(buffer); System.arraycopy(buffer, 0, mybuffer, myNum*nbBytes, nbBytes); myNum++; } line.stop(); System.out.println("Packet Size = "+nbBytes); while (System.in.available() > 0) { System.in.read(); } System.out.println("Recording stopped\n"); System.out.println("The packet buffe...
2006 Jul 20
1
Invalid sideband mode encountered
...yte[] payload = new byte[FRAME_SIZE*2]; byte[] completebuffer = new byte[4000000]; int mode = 0; int samplerate = 8000; int channels = 1; speexDecoder.init(mode, samplerate, channels, true); for (int packetCount = 0; packetCount < getNbPackets();packetCount++) { System.arraycopy(decbuffer, packetCount*encodedNbBytes(), payload, 0, encodedNbBytes()); try { speexDecoder.processData(payload,0, encodedNbBytes()); byte[] decoded = new byte[FRAME_SIZE*2]; decodedNbBytes = speexDecoder.getProcessedData(decoded, 0); System.arraycopy(decoded, 0, completebuffer, pac...
2004 Aug 06
2
Server based audio merge
Hi Ulrich, > Well, i don't know if we speak of the same ... The quality is ok, but > the encoding of a PCM frame on the tested machine took 2ms, which (if > the PCM frame is 7ms in length) means the machine can only encode three > streams in realtime ... Yes, but this is java. You don't use any threading models and i dont know if you encode from sound card. I also don't
2004 Aug 06
0
Server based audio merge
...up with these numbers. First i capture 2560 bytes (i think, would have to look at my source) direct from the sound card and then i encode it. I am not the guy to dive into the jspeex code and adjust the right screws ;-) i just can adjust major code errors and stuff i know to be slow (like System.arraycopy). best regards, ulrich --- >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' containing only the word 'unsubscribe' in the body. No subject is need...
2009 Aug 30
0
[LLVMdev] Strange error in generated assembly
...here it is: static def concat(s:String...) -> String { let count = s.length; var length = 0; for i = 0; i < count; ++i { length += s[i].length; } let result = alloc(length); var index = 0; for i = 0; i < count; ++i { let src = s[i]; Memory.arrayCopy(result.data, index, src.data, 0, src.length); index += src.length; } return result; } -- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090830/9f84ea01/attachment.html>
2004 Aug 06
2
optimization possible?
hi, i did some tests about performance in jspeex ... uls@mainframe:~/eclipse/avrelay$ java TestClient Diff1: 0 10 Diff2: 141 started. uls@mainframe:~/eclipse/avrelay$ <p>{ SpeexEncoder e1=new SpeexEncoder(); e1.init(0,1,44100,1); byte[] by1=new byte[320]; long l1=System.currentTimeMillis(); long l2=System.currentTimeMillis(); System.out.println("Diff1:
2013 May 08
2
[Bug 2099] New: SshClient.connect() failure on port 22
...Integer.parseInt(args[1]), args[2], args[3])); } catch (Exception ex) { ex.printStackTrace(); } } } Error: com.sshtools.j2ssh.transport.TransportProtocolCommon run SEVERE: The Transport Protocol thread failed java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at com.sshtools.j2ssh.transport.TransportProtocolInputStream.readBufferedData(Unknown Source) at com.sshtools.j2ssh.transport.TransportProtocolInputStream.readMessage(Unknown Source) at com.sshtools.j2ssh.transport.TransportProtocolCommon.processMessages(Unkno...
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...if (header.gcstate != 0) { if (header.gcstate & uint(GCFlags.RELOCATED)) != 0 { ptrAddr[0] = header.newLocation; } else { let size = header.gcstate & uint(~3); let newAddr:Address[ubyte] = toSpace.alloc(size); Memory.arrayCopy(newAddr, addr, size); header.newLocation = ptrAddr[0] = Memory.bitCast(newAddr); header.gcstate = uint(GCFlags.RELOCATED); } } } } } /** Static instance of the trace action. */ let TRACE_ACTION = TraceActionImpl(); The collect function sim...