Record Control

Hi!
I'm have a problem with sound recording. I want to capture sound and write it to output stream. According to MMAPI 1.2 this is done like this:
try {
    // Create a Player that captures live audio.
    Player p = Manager.createPlayer("capture://audio");
    p.realize();
    // Get the RecordControl, set the record stream,
    // start the Player and record for 5 seconds.
    RecordControl rc = (RecordControl)p.getControl("RecordControl");
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    rc.setRecordStream(output);
    rc.startRecord();
    p.start();
    Thread.currentThread().sleep(5000);
    rc.commit();
    p.close();
} catch (IOException ioe) {
} catch (MediaException me) {
} catch (InterruptedException ie) { }This code works but, you can write out data ONLY after rc.commint is called.
You see, I want to write recorded sound over DataOutputStream over network:
                connection = (OutputConnection) Connector.open("socket://"+ip+":"+port,Connector.WRITE);
                output = connection.openDataOutputStream();
                player.realize();
                rc = (RecordControl)player.getControl("RecordControl");
                rc.setRecordStream(output);
                rc.startRecord();
                player.start();
                //.WAITS HERE ....///
                rc.commit();
                player.close();
                output.flush();
                output.close();
                connection.close();Server doesn't recive any data UNTIL rc.commit() is called.
Looks like that RecordControl sends the data from buffer to outputStream after rc.commit().
If someone can help me solve this problem I would be very grateful!
Thanks!

I've tried that, but it on sends the data on rc.commit(). Its funny that the programmer doesn't have actally any control on outputstream. Anyway thanks for your tip.

Similar Messages

  • How to get record control in sony ericsson p1i.

    How to get record control in sony ericsson p1i....
    does jsr234 helps??

    I'm not sure it is possible to get the PL/SQL record type through JDBC. Please try to access this procedure through JDBC to see if it is possible.
    You may need to convert the record type, to an object-type, i.e. wrap the procedure in another procedure that converts the record type. You could also just wrap the procedure in another that expands the record values into individual output parameters.

  • Not able get record control while video capturing ..(urgent)

    here is my code..
    try {
    // Create a Player that captures live audio.
    Player p = Manager.createPlayer("capture://audio");
    p.realize();
    RecordControl rc = (RecordControl)p.getControl("RecordControl");
    If (rc==null)
    System.out.println("Record control has problem pls check");
    else
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    rc.setRecordStream(output);
    rc.startRecord();
    p.start();
    Thread.currentThread().sleep(5000);
    rc.commit();
    p.close();
    } catch (IOException ioe) {
    } catch (MediaException me) {
    } catch (InterruptedException ie) { }
    when i execute the same code in Wtk23, iam geting an exception " Record control has problem pls check" . iam not able to get the record control for video ,here are my queries;
    1. do wtk2.3 suports recordcontrol for video .
    2. if yes, how to implement?
    3. provide me the good samples for only video capturing ..not for image capturing.
    thaks to all,
    Vishnu.k

    Solved by myself.

  • Mixing Wave and MIDI output for recording - Windows Record Control limitatio

    I am using a SoundBlaster Li've! card with Magix MIDI Studio 2005. When I create a score that combines MIDI tracks with Wave tracks, I cannot record the combined audio stream using an internal recording program like Magix Audio Studio. It all sounds fine over the speakers, but I cannot record what I am hearing.
    MIDI Studio and Audio Studio are not aware of each other directly - they appear to use the Windows Play Control and Record Control to set which channel should be used to provide audio to the recording program.
    Unfortunately, Windows Record Control does not allow more than one channel to be used as the recording source. If I select MIDI, then Wave is deselected. If I select Wave then MIDI is deselected. I can record each separately, but I cannot sync them, since they don't send SMPTE or anything other than audio across the channel.
    Is this reflecting a limitation of the sound card or is there some utility I need to use to override the Windows Record Control? Or is there some program or some hardware feature I need to make sure that the audio output from MIDI and from the Wave source are mixed down to the Wave recording channel?
    I have already seen some recommendations to patch the audio out of the sound card to the line in. I am not interested in a solution such as this, since two conversions between digital and analog are bound to degrade the result significantly.
    If I need a higher level sound, that's fine, just point me to the right one.
    Thanks in advance!

    Duplicate thread.
    Cat

  • The missing audio recording control...

    For whatever reason, when I choose Audio->Record to-> Slide, the audio recording control does not show up on the screen anywhere. I am using Captivate 5.

    Did you use this laptop with two monitors? Perhaps the dialog box is still on the other monitor, this sounds strange sorry, but it happened to me before. I'm used to have another monitor connected in college and then have some panels on one monitor, if I forget to restore to one monitor sometimes certain boxes seem to have disappeared.
    Lilybiri

  • Recording Control Surface automation to a channel strip

    Hey guys,
    I was wondering if anyone could help me.
    I have a Novation Remote 25 SL which its perfectly connected with Logic as a Control Surface.
    What I want is to record live all the moments i do with Mixer in Logic using Remote Sl as a Control Surface while my track is playing. I want to record it to one channel strip or somewhere were i can edit them later. Is it possible? Thanks in advance.

    Read the automation section in the manual.
    Basically - switch all channels you wish to automate into Latch mode to write automation. Put them back to read mode to avoid overwriting. Logic has full automation editing.

  • Customer inf record control inspection lot creation

    Hi all,
    There is this section in SAP that said:
    Using customer Info record for a customer/material combination, you can specify whether or not an inspection lot is created before the goods are shipped or after the goods are shipped
    The u201Cbefore the goods are shippedu201D u2026 does it means an inspection lot is created AFTER a Delivery Order is created in SD component and BEFORE a Goods Issue?
    Likewise, the u201Cafter the goods are shippedu201D, does it means an inspection lot is created AFTER a Delivery Order AND Goods Issue have taken place?
    Thanks,
    YY

    Dear Yong
    Using Customer info record you can do delivery inspeciton at any one of the 3 stages
    1) Before delivery - Delivery inspection has to be completed for doing the PGI of the delivery document. In this inspection lot is created when Delivery document is saved. PGI is not allowed before the clearance of the lot
    2) After delivery - This is after PGI is taken place then the inspection lot is created
    3) at customer site - this is when the material reaches the customer
    Option 1 has a better control on the system than the option 2 & 3
    Regards
    Gajesh

  • Recording control with the Adobe Connect mobile ap

    In the Adobe Connect mobile ap, I do not see that it allows you to start (and end) the meeting recording?  This is one critical hosting feature that I do not see supported. Am I missing it?

    More host functions are expected to to be available in future releases of the Connect Mobile app. As of now, I don't believe there is the ability to start/stop recordings in the mobile app.

  • SD Condition Record Control data.

    Hi All,
    In a sales order pricing procedure, if we go in the condition Type JMOD, and double click in it, to view the control data, and its tax code coming into it.  In control Data screen there is 2 fields Cond. Control and Condit. Origin. From where the values come into it automatically.

    Hi Arun,
    Thanks for the Reply.
    But here I am facing some other Problem where the Excise Duty, E Cess and Higher Sec Ecess is getting determined correctly, but the Tax tab of the line item where sum total of these 3 should come is showing Zero.
    After a careful analysis I have found after comparing from the old Sales order where the Tax tab is showing Correct Calculation that the JMOD condition of the line item in the sales order is having Account Key and Tax code and Condition Control is 'F', whereas in the sales order where Tax Tab is showing zero do not have the Account key and tax code coming in it. The UTXJ is determining the ax code but no tax code is coming in the JMOD Condition. and control data here is 'A' instead of 'F'.
    That is the reason I raised thuis question. I am still facing the problem. The Tax Procedure is TAXINJ and SAP 4.6.
    Please help.

  • Records control

    Hi,
    I'm new to JSF, but I'm strugling with the problem of records navigation for a few days now. How can I let say display a set of records with an example call:
    URL:
    http://mywebserver.com/jsf/listRecords.faces?fromId=40&outdent=20
    Records:
    40. Book40 Author40 Publisher40
    41. Book41 Author41 Publisher41
    42. Book42 Author42 Publisher42
    60. Book60 Author60 Publisher60
    I'm also curious how to make the navigation for previous records and next records.
    Thanks in advance,
    Bojan

    Hi  Sundras,
    For that you need to follow the following steps:
    In WAD you need to set some properties. The following are the steps to change the properties:
    1)For setting this property we need to open WAD template in designer.
    2)Select a Item table where we mention the query for WAD.
    3)n the Properties of this Table we have a Specific settings in that 'Number of Data Rows Displayee at..' = 100
    4)In this under Specific Option we have u201CRows Scrolled for each Stepu201D this is set as a 0 by default, meaning of 0 is 2/3 of total no. of records per page i.e. 2/3 of 100 records.
    This setting we can change by double click on 0 value, change this value to 100 i.e. each next page will take next 100 records.
    Thanks,
    Neelam

  • Passing Control Record Data in IDOC to R/3 3.1i system

    Hi,
    We have PI 7.0.9 installed in-house and are currently attemptng to point to an R/3 3.1i system (we are in the process of upgrading to ECC5).
    When I enable the check-box to "Apply Control Record Values from Payload" in the receiver comm. channel for the IDOC adapter, it ignores the directive.
    If I look at the Payload in the XML Message in the call to the IDOC adapter, the fields are all filled - however the IDoc adapter simply builds its own values when sending to the back-end. The only difference to idocs for newer SAP systems is we use EDI_DC rather than EDI_DC40.
    Does anyone have any knowledge of this problem and a solution?
    Thanks
    Brian

    Hi Brian,
    About "Apply Control Record Values from Payload"
    If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.
    If you do not set the indicator, all combinations of communication parties and services are handled as services without party.
    If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values
    If in the receiver Communication Channel, you do NOT choose option "Apply Record control value from Payload", then EDI_DC40 will contain the values mapped during Mapping in Message Monitoring and SXMB_MONI - Response Payload, but when the IDOC is sent out , control record is filled with the value from the SLD
    If you are looking for, where to find the place where the logical system name for the XI system is defined, it can seen in 2 places....IN transaction SALE on XI, under "Basic Settings --> Logical Systems --> Assign Logical System to Client"...double click on the client no you want to check for...
    Also it can be seen in the SLD in the corresponding business system details.
    Do you want this value as the SNDPRN in the control record ? then you need not do anyhting
    Also take a look at these links,
    http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    Also have a look at this thread...
    Re: SLD - Logical System Management
    I hope it helps....
    Regards,
    Abhy

  • How can i use in the same time input line and mic to recorder in several track whit SONAR

    I have beem recording only input line because SONAR 4 not recognized the mic in, Help me!!!.
    Thank you. Sorry for my english

    LIMACAR wrote:
    How can i use in the same time input line and mic to recorder in several track whit SONAR 4. I have beem recording only input line because SONAR 4 not recognized the mic in, Help me!!!.
    Thank you. Sorry for my english
    Depending on which soundcard you have there, but if your card is capable for
    ASIO -> activate I/O drivers on Sonar/Options/Audio/Drivers -tab (mic/line sources should be listed there --> activate) and select the mic or/and Line sources on tracks "I" - dialog
    WDM/KS -> use the Surround Mixer or windows recording controls for recording source selection (mic should be listed there)
    MME32 - > same w/ WDM/KS
    If you use Asio4All --> same w/ WDM/KS & MME32
    No mic and line source simultaenously w/ WDM/KS and MME32.
    You perhaps be able to do this w/ kX drivers.
    jutapa
    ADDED:
    You can also install modded version of Audigy 2 drivers/software but I have never done this w/ Li've! 5. so I can't be sure if you get ASIO support for your card.
    Here are the instruction --> http://www.tech-pc.co.uk/audigy-2.php
    jutapaMessage Edited by jutapa on 05-25-2006 02:48 PM

  • Audigy 2 ZS Platinum Pro and Inspire T7700 does not recognize Mic on Audio Control

    Hi folks,
    I decided to hook up my headphone and mic sets to the Audio Control Pod for the first time recently to chat online. I'm not sure if I ever tried this when I bought the Inspire T7700 speaker system, but I cannot seem to get any voice to come through in Windows' Sound Recorder (the headphones work fine). I'm hoping that someone here can help...otherwise, I suppose I'll have to find an alternate solution than using my soundcard system.
    Here are some specs:
    OS: Windows XP SP2 and all current updates
    Soundcard: Audigy 2 ZS Platinum Pro
    Speakers: Inspire T7700 with Audio Control Pod (contains the headphone and mic jack)
    Here's what I have tried:
    . Updated drivers to: SBAX_WBUP2_LB_2_09_006.exe
    2. Tested headsets and mics out on another one of my computers with a SoundBlaster Li've. They work fine.
    3. Set each audio source with full volume in the Recording Control window as the source while recording in Windows' Sound Recorder (I know some of these aren't right, but I tried them all nonetheless):
    - MIDI Synth
    - Line-In 3
    - Line-In /Mic (this should be the one, I think)
    - S/PDIF-In
    - Auxiliary (this might be the one for the Audio Control Pod)
    - "What U Hear"
    - Line-In 2
    - CD Digital
    - Wave
    4. Installed the Creative software from the official CD to manage the audio and speaker settings. Retested the same as item 3 above within this software. Same results.
    5. Disconnected the external I/O hub (since I am connecting to the Audio Control Pod, which connects to the speaker system and then my sound card). Interestingly, the Line-In /Mic input disappeared. All that I saw for an input (I believe) was Auxiliary. I tried even that as noted in item 3, but nothing.
    Has anyone had any luck in getting a mic from a headphone set to work with the Audio Control Pod for the Inspire T7700 speaker system along with the Audigy 2 ZS Platinum Pro?
    Thanks in advance for the help!

    Read the FAQ on top of the soundcard forum concerning SPDIF and digital out. The reason is very easy to find out if you read that. In short: the digital out can only send out a PCM stereo signal (which is why you only get FL/FR sound) and an encoded AC-3 signal.

  • Recording from Cassette Is

    <SPAN>I have a up to date PCI Sound Blaster card with mini jacks. Trying to get that actual recording level or default level, when recording line-in from a cassette deck, or more precisely from a receiver that the deck in connected to. I know I have achieved this before and really need help. Now the recording level in hooked to the sound mixer line-in settings. I need the sound coming into the PC to be independent of the PC volume control line-in level. I need the sound coming in and what is being recorded in the PC to be the actual level found on the cassette. Now the problem is when I notch up or down the recording volume of the line-in on the mixer up or down, the recording level does up or down with it. I do not want this.. Please Help

    randomglen wrote:
    <SPAN>I have a up to date PCI Sound Blaster card with mini jacks.
    Trying to get that actual recording level or default level, when recording line-in from a cassette deck, or more precisely from a receiver that the deck in connected to. I know I have achieved this before and really need help.
    Now the recording level in hooked to the sound mixer line-in settings. I need the sound coming into the PC to be independent of the PC volume control line-in level. I need the sound coming in and what is being recorded in the PC to be the actual level found on the cassette.
    Now the problem is when I notch up or down the recording volume of the line-in on the mixer up or down, the recording level does up or down with it. I do not want this.. Please Help
    You can't bypass the source (line-in) volume control, but you can bypass the source: Wave and Recording level controls by using Asio4All (or WDM/KS) drivers and some recording software supporting ASIO (or WDM/KS) driver mode.
    I don't know the card/software you have there, but ... normally you just
    - set the source (line-in) level to 85&#37;-00&#37;
    - control/set the recording level on "Windows Recording Controls" (or creative mixer app) or on software you're using
    - control the output level w/ master volume control (task bar, playback controls, ct mixer) or w/ Wave output volume control
    jutapaMessage Edited by jutapa on 05-03-2006 2:22 PM

  • Recording from a MIDI device

    Hello,
    Is it possible to record from a MIDI device? I connected my keyboard via an M-Audio USB UNO interface. I used MIDI-OX to confirm that my Windows XP PC was able to input and output a MIDI signal. But I do not see a MIDI input option in Soundbooth's Record dialog box. And when I check audio levels, nothing shows up in the dialog box. I checked my Recording Control dialog box and MIDI/Synth is selected.
    Jeff Sengstack

    I think you need Adobe Audition.  Soundbooth I believe is strictly Audio waveforms capable.
    http://www.adobe.com/products/audition/?promoid=DJDVV
    check out the link above.

Maybe you are looking for

  • To display a message after respose.redirect download

    Hi All, I have jsp page where in the only code I have is a <% response.sendRedirect("/cz_CZ/songs/angelique_song.zip"); %>. Now this starts the browser download window and asks the user to download the zip file. Now, what i want is once the user comp

  • XML to string using xslt or java mapping

    Hi Experts, I want to put xml into string and i need to change lessthan symbol to "&lt"   and greaterthan symbol to "&gt" , can anyone please help me how to do this??? can you provide code for java mapping or XSLT mapping to achive this. SOURCE <?xml

  • ALERT MONITOR

    Hello I have configured the Alert Monitor, Alert is triggered, the message comes on the external mail. But I have 2 questions related to the Alert Monitor. 1) Explain what the appointment of the following fields in the t-code ALRTCATDEF: alrtcatdef -

  • Retrieve "Start date of Next financial Period" and "Current Period"

    Hi, T-code: cne5 I would like to display 2 new fields in cne5 report result:- 1) Start date of Next financial Period 2) Current Period I can used CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'      EXPORTING           I_DATE         = SY-DATUM           I_PE

  • How to design a layout using coding?

    hi how to design a layout using coding?