Windowing an OutputSream from the mic .. help !

Hi all ..
first I'd like to thank all people here in the forum .. i learnt a lot from u guys !
My problem is ..
I'm using J2ME
I want to stream from the mic .. for 3 seconds
then whenever a 256 samples are available .. i read them from the stream so to do DCT on them .. or maybe Hadamard transform ..
the code i use , makes the recorder sleeps for the 3 seconds .. then all data time samples are available at the end ..
this is the code i use (copied from this forum !)
private byte[] record()   {
    ByteArrayOutputStream output= null;
    try {
        Player p = Manager.createPlayer( "capture://audio?bits=16" );
        p.realize();
        RecordControl rc = ( RecordControl ) p.getControl( "RecordControl" );
        output = new ByteArrayOutputStream();
        Alert splash = new Alert("Please Speak out now !!");
        splash.setTimeout(1000);
        Display.getDisplay(this).setCurrent(splash);
        rc.setRecordStream( output );
        p.start();
        rc.startRecord();
        Thread.currentThread().sleep( 3000 );
        rc.stopRecord();
        rc.commit();
        p.stop();
        p.close();
    } catch( Exception e )  {
        System.out.println( e );
    return output.toByteArray();
}Note : after trying this code on a mobile phone .. it worked great .. but the recorder seemed a little slow .. and did not record All the 3 seconds.. so i made the sleep = 5000 ie 5 seconds..
waiting for ur helpful hands and keyboards .. !!
Thanks in advance..

Sorry, wrong thread......
Here is some info about the applet tag
http://java.sun.com/docs/books/tutorial/applet/appletsonly/appletTag.html
Allthouhg that one still uses CODE="MyClass.class"
and should be CODE="Animator" (without the .class)
The above link tells you about the properties of the applet tag but you should use the object tag instead:
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html
Allthough that article mentioned situations where to use the applet tag.
The only reason to use applet tag is if you want the applet to be run with MSJVM.
Allthough the default installation will run applets with the SUN jre many users will
probably change this after noticing their ms specific applets won't run anymore.

Similar Messages

  • IMovie '11 - when I open iMovie the application starts, but there is no window, If i plug in my iPhone the window will appear from the top right corner, but disappear again. HELP!?

    iMovie '11 - when I open iMovie the application starts, but there is no window, If i plug in my iPhone the window will appear from the top right corner, but disappear again, even if i use a drop down menu from the top menu bar and select, say 'New Project', it will appear from the top right corner, let me choose a new project, only to disappear again into that same corner.

    Argh I'm having the same problem! I always use imovie, and haven't had this prob before... apprantly imovie 11 is full of bugs like this. Anyone know if theres any way of downgrading?

  • Open script cannot get connection from the brower helper after 15 seconds.

    Error:
    ===
    Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
    Please Note:
    ========
    1. I have tried this only on IE
    2. I am running OATS on a Remote desktop
    Situation:
    ======
    Trying to stop the recording
    Try to get xpath of an object using Inspect Path
    Setup details
    ========
    Windows XP 5.1 Service Pack 3, x86
    OpenScript 12.1.0.1.383
    Internet Explorer 8.0.6001.18702
    FireFox 13.0.1
    Mitigation steps done till now:
    ==================
    1. Disabled windows firewall
    2. Disable XSS filter setting
    3. Restarted the ATS services (3 of them)
    4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
    Error in worspace_log:
    =============
    To Change setting:
    Go to Tools > Internet Options and Choose Security Tab
    Select the Zone to modify and Press Custom level
    Find Enable XSS filter Setting - Select Disable and click Ok
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Did not auto-fix the problem.
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
    Aprreciate help on this.

    To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
    Reconfiguring the OATSHelperSvr Service:
    1. Open the services panel (Start > Run > services.msc)
    2. Find the Oracle Application Testing Suite Helper Service
    3. Right Click > Properties then select the Log On Tab
    4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
    5. Click OK
    6. Restart the service after dialogs are closed by Right Click > Restart
    7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
    total)
    You should now retry running the test in Oracle Test Manager

  • HT4946 i locked my new ipod touch and cant it back open from the computer help.?:(

    i locked my new ipod touch and cant it back open from the computer help.?:

    First:
    - See:       
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with defect cables
    - Try another charging source
    - Inspect the dock connector for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar
    If you get it to charge then:
    iOS: Device not recognized in iTunes for Windows
    or
    iOS: Device not recognized in iTunes for Mac OS X

  • TS1363 my iphone 4 doesnt show up in itunes. it is also locked on the 'connect to itunes screen' when unplugged from the computer. help me!

    my iphone 4 doesnt show up in itunes. it is also locked on the 'connect to itunes screen' when unplugged from the computer. help me!

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • I bought a ipod 4th gen and when i try login in with my apple id it says my security pin is wrong but its the 1 from the card help!!

    i bought a ipod 4th gen and when i try login in with my apple id it says my security pin is wrong but its the 1 from the card help!!

    Contact iTunes.  See the iTunes Store Account and Billing topic of:
    Apple - Support - iTunes

  • If I use a USB stick for time machine, will I be able to install Windows (using bootcamp) from the same USB?

    I have a 64GB USB Stick, and I am interested in usign it with time machine. My question is, firstly, is this possible? And secondly, if I do do this, would it be possible to install windows using bootcamp from the same USB. My mother refuses to let me install windows without a backup of Mac OS X, so I really need to know if this is possible???

    You need to use a drive that is larger than your Mac's internal drive for Time Machine, so a USB stick will not work.  You need to buy an external hard drive.  It's worth it. Time machine is a fantastic backup system, keeping not just a single backup, but multiple versions of your files as well (hence the need for a larger drive).

  • Is it possible to Silent Push a Managed Windows Phone App from the Store?

    Is it possible to silent push a Windows Phone app from the Store? We have a requirement to install a couple of apps after enrollment. Some of those apps are in the Store some are Enterprise apps.
    Thanks,
    Mark Monster
    Mark Monster Silverlight MVP

    Hi,
    No it is not currently possible, In Windows 10 a new business portal will be introduced that should solve this.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Print to windows remote printer from solaris Please help

    Hi,
    I basically have 2 machines that are networked ( a solaris 9 sparc machine & a windows machine) The epson C42UX is on the Windows XP machine. I have samba set up on the Unix machine and can succesfully access solaris folders from the my network places folder in windows. My problem is that I want to print documents from my unix machine through the windows printer?
    How would I go about doing this, I have searched the documentation for months and all I have come up with is lots of different ways of doing this none of which seem to work? Most of the methods refer to ancient equipment :-)
    Also my Epson C42UX is connected to a USB port on windows USB0001 I think. Even if anyone could give me any links to a complete tutorial! I even have 2 samba books which mention about printer setup then conviently assume you no the most difficult parts.
    Any Help would be greatly appreciated
    iVE been at this for months ........I am starting to see why windows does so well
    Regards
    David

    Are you using Bonjour on the Mac and the PC?
    That should fix it.
    http://www.twistermc.com/blog/2005/06/21/bonjour-for-wireless-mac-pc-printing

  • I can't uninstall; tried from control panel and from the uninstaller help file.

    all explained above. nothing will remove this program from my computer...windows 8.1

    Hey bmatthewb
    Sorry to hear you are not enjoying firefox as much as we are, and it seems your firefox doesnt want you to part either.
    Try deleting it manually:
    Delete the Firefox installation folder, which is located in one of these locations, by default:
    Windows:
    C:\Program Files\Mozilla Firefox
    C:\Program Files (x86)\Mozilla Firefox
    Once done empty recycle bin and see if it is then listed in your programs from the control panel.
    Hope this helps and get back to us so it is easier for other users to find the solution if they have the same prob :)
    Brad

  • IPhoto broken - Empty window when I open the application - Help needed

    Hi Guys,
    Since my upgrade to Snow Leopard my iPhoto 09 has been completely broken. What I get when I start it up is an empty window. No pictures on the right pane and no menus on the left pane. I read many threads about iPhoto issues, and so I have tried to rebuild the library, reinstall iPhoto from the disk I got with my mac. Still the same problem: On startup, iPhoto opens with a completely blank window. All I have are the three buttons at the bottom left side of the window (+, info and enlarge). Only if I click "+" to add a new album the menus on the left pane (events, photos...) appear. A few clicks on these menus and iPhoto crashes. All this, done with a new, clean library. I moved the old one, and keep it for the day I'll get iPhoto to work again. Hope you guys can help. This is painfully frustrating.

    Thanks for help Terrence
    I am using Suitcase Fusion 2 and just activitating Helvetica Neue in Suitcase seemed to fix this problem I have had for several months.
    I highly recommend doing the activation in Suitcase instead of just droping it into the System Fonts folder. This will allow for Suitcase to activate or deactivate the font. If you put the font into one of your folders, Suitcase can not deactivate, which might be necessary if your job uses a different version of Helvetica Neue.

  • HP G60 lost audio function when upgraded to Windows 8.1 from the original Vista.

     Is there a Windows 8.1 driver that I can download to make the sound card work again? Please provide the source/link so I can download and install it. Thanks.

    Riding wrote:
     Is there a Windows 8.1 driver that I can download to make the sound card work again? Please provide the source/link so I can download and install it. Thanks.
    You could try the driver for windows 7 and check if it helps.
    you can also try to update windows 8.1 as a new update may install the driver from Microsoft's driver library.
    Windows7 Driver:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-75899-2&cc=us&dlc=en&lc=en&...
    I'm an HP Employee.
    The opinions expressed here are my personal opinions, not of HP.
    Click on Thumbs up if my post helped you.
    Make it easier for other people to find solutions, by marking an answer “Accept as Solution” if it solves your problem.

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • Values to the only from the F4 help (F4IF_INT_TABLE_VALUE_REQUES)

    Hi all,
    I am using FM: F4IF_INT_TABLE_VALUE_REQUEST  to get help values on one field. The values are getting from table for the F4 value. Now i am gettign f4 value to the field
    now my problem is, user has to enter the values only from the F4 value not other values. right now field taking other than f4 values if i enter.
    I can not use values table at the domain level as it is standard domain.
    can anybody help me on this

    mythily.guptha wrote:
    Hi all,
    >
    > I am using FM: F4IF_INT_TABLE_VALUE_REQUEST  to get help values on one field. The values are getting from table for the F4 value. Now i am gettign f4 value to the field
    > now my problem is, user has to enter the values only from the F4 value not other values. right now field taking other than f4 values if i enter.
    >
    > I can not use values table at the domain level as it is standard domain.
    >
    > can anybody help me on this
    this is discussed several times in the forums, the simple trick to first input disbale(screen-input = 0) the field in PBO/AT SELECTION-SCREEN OUTPUT using LOOP AT SCREEN and then force input into the disabled field by passing the value 'F' to the parameter 'DISPLAY' of the FM  F4IF_INT_TABLE_VALUE_REQUEST.
    -Rajesh.

  • How do you get a topic to open in a custom window when accessed from the index?

    I right click on an index key word and open Properties. There is only one topic associated with this key word. I click on the Advanced tab, select the custom window that I created. Click OK, compile, etc.
    When I try to access this topic from the index, it still opens in the default pane. When I access it from the TOC, it opens in the custom window. How can I get the topic to open in the custom window from the index?
    Thanks!
    Sue

    Hello,
    The link might not work in Preview (When the option to open link in new tab is checked) however it will work if you do a File>Preview page/site in Browser.
    Muse Preview has only one tab and cannot open another tab/window which is why this functionality does not work in Muse Preview. but works in preview in Browser and in published site.
    Regards,
    Sachin

Maybe you are looking for