Unsupported control type: Volume

Hi,
I have a problem. I want to set the volume for my Audio player, but it won't work. I'm getting the exception: Unsupported control type: Volumein this Line:
gain = (FloatControl)line.getControl(FloatControl.Type.VOLUME);
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.FloatControl;
import javax.sound.sampled.SourceDataLine;
public class Player extends Thread{
     static boolean weiter;
     private AudioInputStream in = null;
     private SourceDataLine line = null;
     static Thread player = new Thread();
     static FloatControl gainControl;
     FloatControl gain;
     public Player(AudioInputStream aui){      
          weiter = true;
     try{     
          in = aui;
     }catch (Exception d){
     AudioFormat format = in.getFormat();
     DataLine.Info info = new DataLine.Info(SourceDataLine.class,format);
     try {
          line = (SourceDataLine)AudioSystem.getLine(info);
          line.open(format);
          System.out.println("Lautst�rke : "+ gainControl);
          }catch (Exception e) {
          System.exit(-2);
     public void stopPlaying(){
          if(player!= null){
               player.interrupt();
          weiter = false;
          line.close();
     public void pause(){
          line.stop();
     public void resumeSound(){
          line.start();
     public void run(){
          startPlaying();
     public void startPlaying(){
          System.out.println("Thread start");
          while(weiter){
          int readBytes =0;
          byte[] data = new byte[20000];
          line.start();
          line.getControls();
          gain = (FloatControl)line.getControl(FloatControl.Type.VOLUME);
          gain.setValue(3f);
          do{
               try {
               readBytes = in.read(data,0,data.length);
          }catch (Exception e){
               //MainClass.logger.error(e.getMessage());
               System.exit(-3);
          if (readBytes!=-1) line.write(data, 0, readBytes);
          } while (readBytes != -1);
}I hope you can help!
Thanks a lot!

Hi,
I got the same trouble and used MASTER_GAIN control.
I can't understand why the VOLUME control does NOT work in this case. Does someone knows?
Moreover I have several line of this type and can't synchronize them (Exception tells that my mixer does NOT support synchronization).
I think that this is related to the same trouble.
Thanks for your help,
Regards,
Syl

Similar Messages

  • HTTP 415 Unsupported Media Type with SOAP adapter trying to put SOAP header

    Hello,
    I am trying to put data into soap header using soap receiver adapter. Seems like building the complete soap message is the right way to go. Thus I wrote a java program to build the complete soap message (soap envelop, soap header and soap body which contains the message PI received from the sender). Mapping program works well. However when I ran the scenario, I got Error "SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 415 Unsupported Media Type" when calling the receiver's web service (the SOAP receiver adapter CC have the "Do Not use SOAP Envelop" checked). Anyone knows why I got this error? From google, seems like this error is because the http's content-type is set to other type, rather than "text/xml". However in soap CC there is no option to control this.
    The message sent to the receiver is (after mapping);
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <SOAP-SEC:Signature xmlns:SOAP-SEC="http://schemas.xmlsoap.org/soap/security/2000-12" MyAttr="value">My Test Value</SOAP-SEC:Signature>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ns1:UpdateEquipment xmlns:ns1="http://mycomp.com/mywebservice">
    <ns1:EquipmentNumber>000000012345</ns1:EquipmentNumber>
    <ns1:LicensePlate>654321</ns1:LicensePlate>
    </ns1:UpdateEquipment>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Anyone can help?
    Thanks

    When you check "Do Not use SOAP Envelop", the SOAP adapter chooses application/xml instead of text/xml.
    You can change the content type with help of the MessageTransformBean. You put the bean in the module chain of the receiver channel and add the parameter Transform.ContentType = text/xml
    See
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/57/0b2c4142aef623e10000000a155106/frameset.htm

  • PowerPoint Web App 415 Unsupported Media Type

    Hi,
    i had successfully deployed and configured external access via TMG to SharePoint 2013 with Office Web Apps 2013. Everything works fine, except PowerPoint Web App, when the farm is accessed externally. User becomes following error message:
    Either you´ve lost network connectivity or our server is too busy to handle your request. Please check your network connection and try again later. 
    PowerPoint Web App is working fine, when accessing SharePoint form local network or through VPN.
    Ive searched TMG Logs and found this 415 ERROR:
    Allowed Connection
    Log type: Web Proxy (Reverse)
    Status: 415 Unsupported Media Type
    Rule: (SERVER FQDN)
    Source: Internal ()
    Destination: Local Host ()
    Request: POST http://(SERVER FQDN)/p/ppt/view.https.svc/jsonNtlm/GetPresentation
    Filter information: Req ID: 0be8d6bf; Compression: client=Yes, server=No, compress rate=0% decompress rate=0% ; FBA cookie: exists=yes, valid=yes, updated=no, logged off=no, client type=public, user activity=yes
    Protocol: https
    User: domain\name
    Additional information
    Client agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
    Object source: Internet (Source is the Internet. Object was added to the cache.)
    Cache info: 0x40020000 (Response includes the CACHE-CONTROL: PRIVATE header. Response should not be cached.)
    Processing time: 16 MIME type:
    Thank you for answers! 
    Regards
    Lubomir

    I'm going to move this to the TMG forum as it is more of a TMG-related issue (clearly WAC works fine when not taking TMG int account).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • IDVD: Files exported from iMovie 11, one works, one "Unsupported File Type : Unknown format"

    I used footage from the same camera (taken on the same weekend using the same settings) in several different iMovie "projects". All were shared from iMovie 11 as "File" using the quality setting "SD 480p".
    In Quicktime Player, all ".mp4" files will play and they show the following info in its inspector:
    Format: H.264, 854 x 480
                  AAC, 48000 Hz, Stereo (L R)
    FPS: 29.97
    One exported file will drag, drop, and burn in iDVD just fine. The other two files show the error "Unsupported File Type : Unknown format" as soon as I try and drag them into iDVD.
    The only difference I can find is that the one file that works is about 803MB, while the files that don't work are 1.87GB and 3.98GB.
    All files and the iDVD project are in the same folder on my startup volume. I've tried deleting com.apple.idvd but that didn't help. I've tried rebooting and starting the iDVD project from scratch but I get the same results.
    Mac OS 10.9.1
    iMovie 10.0.1
    iDVD 7.1.2
    Any ideas?

    Hello Bengt and thank you again for the replies.
    As I mentioned in my previous posts, I'm using iMovie 10.0.1 which has very limited quality adjustments. In every case I chose the smallest size, which iMovie 10.0.1 calls "SD 480p (854 x 480)". I used this same setting on all exports.
    I still have iMovie HD (6.0.4) and iMovie '11 (9.0.9) on my iMac so I tried both of them. In both cases, they could import only the file that works in iDVD. Both older versions of iMovie choked on the longer movies shared from iMovie 10.0.1.
    I have many many hours into the editing of these clips and I do not want to have to go back and redo everything in an older version of iMovie. Might I be better off going with a different DVD creation software? Or am I out of luck? Because I can't really change iMovie 10.0.1's export settings, I'm afraid there's nothing I can do to get it to export it as something that iDVD can use (really, I can't even tell why it's different and why iDVD doesn't like it).
    The software "WonderShare DVD Creator" has no issue with any of the files I've exported from iMovie 10.0.1.    

  • Unsupported Content-Type: text/plain

    Hi everyone,
    I am trying to invoke an aync Oracle BPEL process from WLI 8.1.6, without worrying about the response / callback. The web service control that is generated shows the operation stub as public void receive (java.lang.String input); which makes sense since I don't want any response. When I invoke BPEL though, I get the following error in WLI:
    <Error> <WLW> <000000> <Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:javax.xml.soap.SOAPException
    String:Unsupported Content-Type: text/plain
    Detail:
    END SERVICE FAULT [ServiceException]>
    There shouldn't be any response though, so how can I tell WLI to ignore what (doesn't) come back? When I check BPEL, the request is successfully received and the BPEL process completes successfully.
    Thanks,
    Nicholas

    By default, getContent() will return decoded text. But,some mail server will put 8bits instead of 8bit. Javamail will throw exception when encoding is "8bits". In that case, you will have to decode the message by yourself, force using "8bit".
    Part 2 & 3 of the problem - it is not able to find the character set support.

  • Trying to import dvd into iDVD,it says Unsupported File Type:Unknown format

    Hi there,
    I just had a home movie transferred from vhs to dvd. Now I am trying to import it into iDVD and when i try to the message appears : Unsupported File Type :Unknown format
    Logical Volume Identifier/VIDEO_TS.
    I wanted to put the home movie to music (it allowed me to import the song, not the video).
    It says the kind of file is UNIX Executable File.
    Any help would be appreciated.
    Thanks.

    to do this you would first need to convert the DVD (mpeg 2) to QT so you can import to iDvd which btw involves a quality hit. There are apps out there that can do this at a marginal level ... for example:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.products.htm

  • What is the user area control type

    I am able to find volumes of data on using buttons, text areas, check boxes, etc... But there seems to be no reference any where to the user area control type.

    Hi
    In the Case 2, scenario i.e. when some one modifies the file, it does show in the source control as pending changes. In case multiple user check out the file, then it show only one user.
    Kindly try once again this is one of the basic and essential functionality of version control and TFS does support this.
    Cheers, Senthilraj

  • Using 'Calendar' control type in prompt - not available

    Hi All,
    I am trying to setup a simple from and to date prompt that can be used in my reports to set the to and from date range for filtering the fact data that is returned. Following a number of blogs and articles on this it seems pretty straightforward. I have setup two static presentation variables on the rpd (startdate and enddate respectively) and I have started to create the prompt in answers that will be used by a number of different reports.
    My issue is that, all the articles I have seen indicate the use of the 'Calendar' control type when setting up the prompt. I however only have the following control type options for the prompt *(Edit Box, Drop Down List, Multi-Select)*. I do not see Calendar. Does this need to be initialized in any way to make it available .. ie move the calendar.js file somewhere so I can use the calendar control?
    example instructions: http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    Thanks,
    K

    Figured it out. The fields I was using in the prompts were character fields representing dates 'YYYY-MM-DD'. In order for the Calendar control option to become visible the fields selected as part of the prompts need to be of date or timestamp data type.
    Thanks,
    K
    Edited by: user_K on Apr 20, 2010 12:47 PM

  • How do i drag indicator control type on WPF instead of using Drag and Drop points

    In my WPF application, i have a window which is docked with the screen. i want to automate to expand the window using an Indicator control type, by sliding it. As of now i use StartDrag and StopDrag using specific points, which is not correct when it runs
    in many other screens.
    Could you please let me know, is there way to slide the control (to set window display size to viewable) without using  drag and drop action using points.

    Hi Pavithra,
    >> As of now i use StartDrag and StopDrag using specific points, which is not correct when it runs in many other screens.
    To really understanding this issue, could you share us what you mean by ”which is not correct”? It would be much helpful if you could share us a screen shoot about your UI and your issue.
    >> Could you please let me know, is there way to slide the control (to set window display size to viewable) without using  drag and drop action using points
    Do you mean that the control of the WPF is invisible and you want to set the window display size to make it visible? If so, I think you could use the Mouse.MoveScrollWheel Method to change the windows view until the control is visible. The link below might
    be useful to you:
    # CodedUI cann't find the controls outside the screen view, Mouse.MoveScrollWheel doesn't work too
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/e1dba9ee-dc51-4160-9a1a-a2220c903db0/codedui-cannt-find-the-controls-outside-the-screen-view-mousemovescrollwheel-doesnt-work-too?forum=vstest
    If I misunderstood you, please feel free to let me know.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Is there an app to control the volume of an iPhone 3GS?

    I have an iPhone 3GS and the volume keeps going all the way down once I plug the headphones in. Before this started happening the volume would go all the way up. Before that even started happening the phone would repeatedly try to shut itself off and I had to keep pressing Cancel.
    I did buy the phone off of eBay used, to try and go on a prepaid contract once my current contract ends. On the case itself, there are some minor scuffs and such, it does look like it was opened at a time. It still works perfectly, except for the volume glitch right now. Is there an app that controls the volume to keep it from going all the way down?. People say in forums and such to tighten the screws on the bottom (which I tried), and to also open the phone and see if there is anything blocking the volume control thing (like dust or anything) but I'm afraid to try that with the risk of causing further damage. What should I try?.

    to at least try and fix it if none of that works then replace it through apple

  • How can I control the volume in a Appletv movie from my remote control App. In my IPad ?.

    How can I control the volume in a Apple Tv movie from my remote control App. In my IPad ?.

    There is not now, nor has there ever been a version of flash for any iOS device.
    Adobe has abandoned mobile flash, so there never will be.
    Browsers like iswifter or photon may work for you, but don't hold your breath.
    Check app store for an app of whatever game you want.

  • How to create a  contract? ( Types: volume,time,quality contracts)

    Hi Gurus,
    How to create a  contract? ( Types: volume,time,quality contracts)
    Give the procedure to create above mentioned types of contract.
    Bye
    Narasimha Rao Gunda

    1.Access the transaction choosing one of the following navigation options:
    SAP ECC menu     Logistics  Materials Management  Purchasing   Outline Agreement  Contract  Create
    Transaction code     ME31K
    2.On the Create Contract: Initial Screen, enter the following values and choose Enter:
         Vendor               xxxx          
         Agreement type          MK          
         Agreement date          Todayu2019s date          
         Purchasing Organization          
         Purchasing Group          xxx          
         Plant               xxx     
    3.On the Create Contract: Header Data screen, in Validity End field, enter end date (e.g. two years in the future) of the contract and choose Enter.
    4.On the Create Contract: Item Overview  screen, enter the following values:
         Material                              
         Target Quantity      10000               
         Net price          xxxx usd per 100 PC          
         Plant          1000
    5.Remark: Delete any entry in the field storage location.
    6.Additional step:
    If you want to use the information of an existing info record mark the line of the agreement item (item 10) and go to Environment  Info record. On the Info record: General Data screen choose Conditions. On the screen Display Gross Price Condition (PB00): Condition Supplements you can see the value of the gross price (here: 1282.5 per 100 pieces.).
    7.Choose Save (Check if the automatic print function of the contract works).

  • Getting 415 Unsupported Media Type error when calling a windows web service

    I have a BPEL process that invokes a windows web service. This process is working currently on the production system. When trying to run the process in a new test clustered environment, I'm getting the error below (bolded).
    We're using 10.1.3.3 Oracle Application Server and BPEL. Please advise on what config files might need to be tweaked to fix this.
    InvokeWindowsLoggingWebService(faulted)
    [2010/04/16 17:26:35] Faulted while invoking operation "WriteLog" on provider "WindowsLoggingWebService". less
    -<messages>
    -<input>
    -<InvokeWindowsLoggingWebService_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    -<WriteLog xmlns="http://tempuri.org/">
    <FileAbsolutePath>
    R:\CV & RM\upload_from_test.log
    </FileAbsolutePath>
    <Content>
    ||*************************************************************************************|Append to log file 2010-04-16T16:57:08-04:00|*************************************************************************************||START DATE: 2010-04-16T16:57:08-04:00|END DATE: 2010-04-16T17:25:58-04:00|COUNT: 106|TRANSFER OF FILES TO TAS SUCCESSFUL
    </Content>
    <NewLineDelimiter>
    |
    </NewLineDelimiter>
    </WriteLog>
    </part>
    </InvokeWindowsLoggingWebService_InputVariable>
    </input>
    -<fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 415 Unsupported Media Type
    </summary>
    </part>
    </remoteFault>
    </fault>
    </messages>
    [2010/04/16 17:26:35] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. less
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 415 Unsupported Media Type
    </summary>
    </part>
    </remoteFault>

    I generated a proxy service in jdev and used the same parms as was done on OAS...
    <WriteLog xmlns="http://tempuri.org/">
    <FileAbsolutePath>
    R:\CV & RM\upload_from_test.log
    </FileAbsolutePath>
    <Content>
    ||*************************************************************************************|Append to log file 2010-04-16T16:57:08-04:00|*************************************************************************************||START DATE: 2010-04-16T16:57:08-04:00|END DATE: 2010-04-16T17:25:58-04:00|COUNT: 106|TRANSFER OF FILES TO TAS SUCCESSFUL
    </Content>
    <NewLineDelimiter>
    |
    </NewLineDelimiter>
    </WriteLog>
    and was able to call the service fine and it returned successful. Just seems to be an issue on the server when I execute it from there.

  • HT1947 Can I control the volume of my MacBook Pro with the remote app on my IPhone or IPad?

    Can I control the volume of my MacBook Pro with the remote app on my IPhone or IPad?

    Welcome to the Apple Community.
    To an extent yes. You can't control the master volume, but tou can turn the volume up and down, up to the maximum set manually on your computer.

  • Is there any way to control the volume on my Apple TV?

    Here's the scenario: I have a small amplifier under my couch that controls the speakers connected to my Apple TV. When I use Airplay from my iPhone to listen to music, I'm able to control the volume right from the music App on my phone- this is perfect because I don't like to reach under the couch to change the volume. However, there are two scenarios when I cannot seem to adjust the volume anywhere except on the amp. These are:
    First: Using Airplay while playing a video from my MacBook Pro to the Apple TV. In this case, the volume slider in iTunes suddenly has a little lock icon on it and is unadjustable. Is there any way to unlock the volume?
    Second: When using the Apple TV directly to play any media- music or movies. The volume up and down buttons on the Apple TV don't control the volume. I'm forced to reach under the couch to adjust the volume- which happens quite frequently. Is there any way to control the output volume of the Apple TV?
    The lack of volume control has been super disappointing. I've been a (multiple) airport express user for years so kind of expected Airplay to work the same for video- with the ability to control the volume from whatever device was transmitting. Can anyone help me?

    Andrew- this is how I would expect things to work. However, when I use airplay from my iPhone to say, play a youtube video, the volume on the phone is suddenly rendered useless and I'm forced to adjust the amplifier. When I just play audio from the phone, the volume works.
    It's the same on my macbook pro. If I mirror the screen, my computer's volume affects the speakers volume. However, if I am in itunes and play a movie and use airplay for that, I get a lock on the volume. Is this a setting somewhere?

Maybe you are looking for

  • Can validation check can be set for vendor master record .

    Hi Experts , User wants to remove two existing payment methods,instead of removing i think to set validation for the vendor master record . can validation can be set for vendor master record ? PLease suggest me with advice. Thanks Pardha

  • Deploying ear file / Automatic Deployment /AS Deployment

    Hello All, i was trying to deploy a ear file of 100 mb in a10.1.3 Server on a specific oc4j instance. The error is Error initializing site OracleAS Java Web Site: No web-app named 'lib/axis' found in application '--WorkBrain' (found web-modules are:

  • User equivalence test failed (RAC setup in Windows)

    I am trying to set up user equivalence between 2 nodes, following instructions from "Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide 10g Release 2 (10.2) for Windows" The Administrator account on both nodes

  • [Help] Cannot create datasource in Mapviewer

    Hello. When I deploy MapViewer in OC4J standalone and log as oc4jadmin, i cannot create datasource for it. I edited mapViewerConfig.xml like this: <map_data_source name="kuba" jdbc_host="localhost" jdbc_sid="orcl" jdbc_port="1521" jdbc_user="kuba" jd

  • Using Z10 or Z30 with PlayBook

    I have been using the Storm 2 in conjunction with the PlayBook since it was released and it has been a very useful combination, especially for email since the keyboard and screen are actually big enough to make it a productive tool and the intelligen