KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > exampleplugins > PitchDetectorYingYang


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.media.exampleplugins;
8
9 import javax.media.Buffer;
10
11 import org.jboss.media.engine.MediaPlugin;
12 import org.jboss.logging.Logger;
13
14 /**
15  * @version <tt>$Revision: 1.2 $</tt>
16  * @author <a HREF="mailto:spyridon_samothrakis@yahoo.com">Spyridon Samothrakis</a>
17  */

18 public class PitchDetectorYingYang extends MediaPlugin
19 {
20    private static Logger log = Logger.getLogger(PitchDetectorYingYang.class);
21    /* (non-Javadoc)
22     * @see org.jboss.media.engine.MediaPlugin#process(javax.media.Buffer)
23     */

24    public int process(Object JavaDoc out)
25    {
26       Buffer output = (Buffer)out;
27       log.info(10+"");
28       return 0;
29    }
30
31 }
32
Popular Tags