search for: addelement

Displaying 13 results from an estimated 13 matches for "addelement".

Did you mean: add_element
2013 May 14
2
[LLVMdev] Queue implementation is being trapped
...wrote a queue_wrapper.h library, which, basically, has the following code (where Q is a reference to my queue, and the channel is not really important): *extern "C" { * *#ifdef INT_TYPE* * void __attribute__((noinline))* * TYPED_NAME(produceValue)(int channel, TYPE elem)* * {Q->addElement (channel, (long)elem);}* * * * TYPE __attribute__((noinline))* * TYPED_NAME(consumeValue)(int channel)* * {return (TYPE) Q->removeElement (channel);}* *#endif* * * * void __attribute__((noinline))* * TYPED_NAME(producePtrValue)(int channel, TYPE* elem)* * {Q->addPtrElement (cha...
2013 May 14
0
[LLVMdev] Queue implementation is being trapped
...h library, which, > basically, has the following code (where Q is a reference to my queue, and > the channel is not really important): > The problem is probably in the definition of your queue itself. The code below generates completely reasonable output for me, with... struct q { void addElement(int, char); char removeElement(int); void addPtrElement(int, void*); void *removePtrElement(int); } *Q; > *extern "C" { * > > *#ifdef INT_TYPE* > > * void __attribute__((noinline))* > > * TYPED_NAME(produceValue)(int channel, TYPE elem)* > > * {Q->a...
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
2
q about jspeex
...byte[] frame=new > byte[t.framelength]; while(true){ > int n=pcm2speex.read(frame, 0, frame.length); > System.out.println(""+n+" bytes read."); > > t.recordBuffer.addElement(frame); > } > } > catch(Exception e){ > e.printStackTrace(); > } > } > > now all this code does, is sitting and doing nothing after 'everyt...
2004 Aug 06
0
q about jspeex
...} byte[] frame=new byte[t.framelength]; while(true){ int n=pcm2speex.read(frame, 0, frame.length); System.out.println(""+n+" bytes read."); t.recordBuffer.addElement(frame); } } catch(Exception e){ e.printStackTrace(); } } now all this code does, is sitting and doing nothing after 'everything ok in writer' - it...
2005 Dec 31
0
File_column and multiple file select
...ript> <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files --> var multi_selector = new MultiSelector( document.getElementById( ''files_list'' ), 3 ); <!-- Pass in the file element --> multi_selector.addElement( document.getElementById( ''my_file_element'' ) ); </script> My controller def create @entry = Entry.new(params[:entry_0]) if (@entry.save) redirect_to :action => "show",:id => @entry else render :action => "add_item"...
2008 Sep 19
1
Plot Accessibility
...code to have any concept of a "first entry" instantiating the plot with plot() in place of lines(). Ideally, I'd like something to the effect of: plot <- createPlot(main = "Hello World", sub = "tiny, little world", xlim = c(-3, 3), ylim = c(-3, 3)) plot <- addElement(plot, lines(col = 'BLUE', x = c(0, 1, 2, 3), y = c(3, 2, 1, 0))) Hopefully this laid my problem out a little better. Thanks in advance for any help you might be able to offer -John Crepezzi -- View this message in context: http://www.nabble.com/Plot-Accessibility-tp19575437p19575437.html...
2008 May 19
0
up/down/delete functions for list items, problem with bound parameters
...for one element causes a different element to move. Here is my stripped down code for your viewing pleasure. // FEATUREDCONTENT OBJECT featuredcontent = Class.create({ initialize: function(name) { this.name = name; this.place = -1; this.FCArray = new Array(0); }, addElement: function(id,headline) { upf = (function (pos) { // Create div -> link -> img upLink.observe(''click'',this.upArticle.bindAsEventListener(this,pos)); return upLink; }).bind(pos); div.appendC...
2004 Aug 06
0
q about jspeex
...frame=new >> byte[t.framelength]; while(true){ >> int n=pcm2speex.read(frame, 0, frame.length); >> System.out.println(""+n+" bytes read."); >> >> t.recordBuffer.addElement(frame); >> } >> } >> catch(Exception e){ >> e.printStackTrace(); >> } >> } >> >> now all this code does, is sitting and...
2004 Aug 06
0
Lost ogg sync using jspeex
...0;i<framelength;i++) { System.out.print(frame[i]); } System.out.println("End of Frame Contents..."); pout.write(frame,0,framelength); System.out.println("Wrote into Pout"); //System.out.println("Read by Spx.."+m); //recordBuffer.addElement(frame); //byte[] buffer=(byte[]) recordBuffer.elementAt(0); //toClient.write(buffer); //toClient.flush(); //recordBuffer.removeElementAt(0); } } catch(LineUnavailableException e) { System.out.println("LineUnavailableException...."+e.getMessage()); }...
2004 Aug 06
0
Lost ogg sync using jspeex
...0;i<framelength;i++) { System.out.print(frame[i]); } System.out.println("End of Frame Contents..."); pout.write(frame,0,framelength); System.out.println("Wrote into Pout"); //System.out.println("Read by Spx.."+m); //recordBuffer.addElement(frame); //byte[] buffer=(byte[]) recordBuffer.elementAt(0); //toClient.write(buffer); //toClient.flush(); //recordBuffer.removeElementAt(0); } } catch(LineUnavailableException e) { System.out.println("LineUnavailableException...."+e.getMessage()); }...
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...lt;BR> }<BR> System.out.println("End of Frame Contents...");<BR> pout.write(frame,0,framelength);<BR> System.out.println("Wrote into Pout");<BR> <BR> //System.out.println("Read by Spx.."+m);<BR> //recordBuffer.addElement(frame);<BR> //byte[] buffer=(byte[]) recordBuffer.elementAt(0);<BR> //toClient.write(buffer);<BR> //toClient.flush();<BR> //recordBuffer.removeElementAt(0); <BR> <BR> }<BR> <BR> }<BR> catch(LineUnavailableException e)<BR&...
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