search for: mybuffer

Displaying 3 results from an estimated 3 matches for "mybuffer".

Did you mean: mbuffer
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...mat object FileOutputStream fos = new FileOutputStream(new File("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...
2007 Apr 18
2
[Patch]: Drive/Partition and extensible filesystem support for syslinux
...;MYFILE CFG", O_RDONLY); // This will give you a open descriptor // Now on, you can read files just like any other *nix file...! :) read(fd, mybuf, 128); // read 128 bytes from file.. OR you can use zlib funtionality of syslinux with: gzFile gzf = gzdopen(fd, "r"); gzread(gzf, mybuffer, 128); etc... //After you are done, you can close the descriptor with close(fd); // FS can be closed with libfat_close(fs); One thing which is missing is the way you specify file names for open. It is the short name format of DOS. Would appreciate if someone can add long file name search for l...
2007 Jun 17
2
Wx::TextCtrl and wxMSW
...ave word wrapping action going on. As this seems to be a problem with dealing with word wrapping, I''ve been able to create a solution to make autoscrolling work. I create my own method for appending text to the Wx::TextCtrl buffer, Named append_buffer. Here is what it looks like: class MyBuffer < Wx::TextCtrl def append_buffer(text) # I have some processing of the text to colorize it, but I think this is just generally a problem # with word wrapping in general self.freeze # Freeze the buffer, so the control doesn''t try to scroll on us, don''t need that....