Detect audio device without jmf-registry

Hi,
I am working with Java Media Framework for some time now. But now I got a problem which I couldn't solve although I tried to find a solution on the jmf-web page.
With the function autoDetect (com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(i)) it is possible to accesses a video capture device without the JMF registry.
Unfortunately I couldn't find out how I could access during runtime and without the JMF registry on an audio device (microphon).
I would be very thnakful if someone could solve my problem.
thx!
the_greg

thanks Owen,
but I'm sure that it has to works without jmfinit and the registry :-)
An example, how you can get the webcam without jmf.properties (to test it, you can rename the registry):
private CaptureDeviceInfo getVideoDevice() {
Vector deviceList = CaptureDeviceManager.getDeviceList(null);
CaptureDeviceInfo devInfo = null;
if (deviceList.size() == 0) {
String name = VFWCapture.capGetDriverDescriptionName(0);
System.out.println(name);
if (name != null && name.length() > 0){
devInfo = com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(0);
System.out.println(devInfo);
return devInfo;
In my opinion as this is possible for a video-device, it ought to be possible for an audio device also. (??)
Greg

Similar Messages

  • How detect capture device without jmf&java client pc ??

    hi...
    a computer install jmf & java => detect catpure device
    but... no detect capture device without jmf & java clientpc...
    however solved this problem?
    plz...
    thanks..
    email : [email protected]

    You must hard code a dependent platform code to examine the registry or its similar in linux.

  • URGENT- problem in detecting audio device using  JMF in  WIndows7 - 64 bit

    Hi,
    I am trying to detect the audio device in windows 7 -64 bit OS, using JMF API with JRE 1.6.18.But it showing zero device found.below i have mentioned the source code that i have used.please suggest how to solve this , thanks in advance.
    import java.util.ArrayList;
    import java.util.Vector;
    import javax.media.CaptureDeviceInfo;
    import javax.media.CaptureDeviceManager;
    import javax.media.format.AudioFormat;
    import javax.media.format.VideoFormat;
    public class CaptureDeviceFinder {
    //possible audio formats available
    static String audioformats[] = {
    AudioFormat.LINEAR };
    static ArrayList available_audiolist= new ArrayList();
    public static void main(String[] args) {
    findAudioDevices();
    }//main
    public static void findAudioDevices() {
    / Audio capture devices /
    System.out.println("CAPTURE AUDIO FORMATS:");
    for (String format : audioformats) {
    System.out.println("format is :"format);
    Vector<CaptureDeviceInfo> devices = CaptureDeviceManager
    .getDeviceList(new AudioFormat(format));
    System.out.println("devices is"+devices);
    for (CaptureDeviceInfo device : devices) {
    if (!devices.isEmpty()) {
    System.out.println("\tFormat: " format);
    System.out.println("\t\t" device.getName());
    available_audiolist.add(format"|"+device.getName());
    System.out.println("list is :"+available_audiolist);
    Edited by: Saravana4u on Mar 17, 2010 10:39 AM

    almightywiz wrote:
    Well, I don't know if the JMF Studio works on a 64-bit system, but the base java libraries work just as well as on a 32-bit system. I currently use both Windows 7 64-bit and 32-bit version, and I am able to recognize all of my audio input devices.JMF wraps around and makes use of a bunch of native interfaces, all of which are precompiled for 32-bit systems. As such, anything relying upon those 32-bit libraries will not work, and that cuts the functionality down to, essentially, the cross-platform pack stuff.
    JMF's sound infastructure is mostly a wrapper around JavaSound, so as long as JavaSound is working on the JRE, you'll be able to utilize the audio functionality.
    As for device detection, I know at least some of that is native code. I'm not 100% sure, but I'd almost expect the Windows performance pack to never return any devices on a 64-bit system, but the cross-platform back to return audio devices. This is an assumption, but, that's what I would expect.
    In any case, if you're using the Windows performance pack, you'd most likely get better results by switching to the cross-platform pack.

  • JMF-based applet can not detect audio devices on Vista (?)

    Hi,
    As many people reported, I encountered the same issue - CaptureDeviceManager.getDeviceList does not detect any audio device on IE/Vista.
    Here is my testing environment:
    HP XW4600, RealTek HD Audio onboard sound card,
    Vista SP1 (Business, Home Premium, and Vista64)
    JRE1.5.0_16, JMF2.1.1e
    A recording Applet runs in IE7 (which works fine on XP and its Java application version always works fine on Vista)
    I have tried a number of things without success:
    1)Use different audio formats as the input parameter for getDeviceList
    2)Try CaptureDeviceManager.getDevice(new String("DirectSoundCapture"))
    3)CaptureDeviceInfo info = new CaptureDeviceInfo(com.sun.media.protocol.dsound.DataSource.NAME,new MediaLocator("dsound://"),null);
    4) Vector devices = (Vector) CaptureDeviceManager.getDeviceList(null).clone();
    5)Uncheck UAC(Vista User Access Control)
    6)Set IE settings least restrictive
    7)Try signed or unsigned recording Applet
    8)Pack the recording Applet to a jar and deploy to JRE\lib\ext
    9)Run JMFInit and copy the files in JMF\Lib to System32 folder
    On a few occasions, audio devices can be detected. For examples,
    10)Upgrading an HP XW4200 (XP machine with AC�97 codecs driver) to Vista,
    11)1/5 chance on the machines with both Sun JRE and MS Java SDK installed.
    12)Trying Item # 9. it worked once on one machine, but after rebuilding the machine, the same trick does not play.
    I am wondering if there is a way to let JMF-based applets detect audio devices on Vista or this is an inherent problem with JMF, IE and Vista.
    I would appreciate it very much if you�d kindly offer any help and suggestions.
    -Belfield

    >
    As many people reported, I encountered the same issue - CaptureDeviceManager.getDeviceList does not detect any audio device on IE/Vista.>(..in an applet)
    >
    I would appreciate it very much if you'd kindly offer any help and suggestions. >I suspect the basic problem here, is the installer that defaults to preventing the applet access to record sound (I am guessing that would 'spill over' into web-cam permissions). A quick test of that is to try the same code as an application.
    If the application works, one possible fix is to launch the application using webstart. Webstart will work from a web page, and offers many other advantages over a standard applet.

  • Not able to recognize any video/audio devices using jmf and java soun

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

  • Detect bluetooth audio device using JMF

    Hello all,
    Does the JMF supports detection for a blue tooth audio device or that implementation is for a bluetooth API?
    Adam.

    Does the JMF supports detection for a blue tooth audio device or that implementation is for a bluetooth API?JMF doesn't support that, so you'd have to code support for it yourself...

  • Captivate 4 - Not detecting Audio Device in Windows 7

    Hi Experts,
    I have Windows 7 64 bit. I installed Captivate 4 tiral version. When I try to set the Audio Settings, I saw that Audio Device is not detected. I have enabled all the audio devices through Control Panel -> Sound. Speakers and In-built microphone are working fine on laptop.
    Still Captivate is not detecting the audio device. I tried reinstallinig the application and installing the patch but no success.
    Could you please help ? Thanks & Appreciation in advance.
    Regards
    Ratnesh Nagori

    Welcome to our community
    As you are in the mode of installing a trial version, try uninstalling Captivate 4 and go get Captivate 5 instead. Captivate 4 wasn't built with Windows 7 in mind and many things are "iffy" at best. Captivate 5 is different and should work without issue on Windows 7.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • FMLE won't detect audio devices

    FMLE won't detect any of my audio devices even when I set them to default device. It only detects my microphone, and I've searched online for many fixes and to no avail.

    Pretty much same issue. I usually have my audio device set to "what u hear" for streaming (on creative soundcard), so I can pick up both my mic and ingame audio. However a couple weeks back it just stopped registering "what u hear" and won't pick it up at all (even though ive tested in the creative console and it's definitely working), will only let me set to just my microphone. Have found no fixes anywhere =/

  • No Audio Device Detected (but it shows up correctly in device-manag

    Well, I bought a new soundcard, since I was tired of my old integrated one, and wanted good surround-sound. The model is Creative Sound Blaster X-Fi Xtreme Gamer Fatalty, and my old integrated one is a Realtek-HD (doesn't say more than that).
    Now to my problem, I removed the drivers from Realtek (even cleaned lots of it from the registry) and put in the new soundcard in a PCI-slot, as it's supposed to be done. I then started the computer, canceled the automatic installation and installed the drivers from the CD I got with the card (this is what it said I should do), now the card shows up in the device-manager as "Creative SB X-Fi" and it tells me it's working fine etc. The Creative-update software also detects it so that I can download the latest drivers.
    However, I have no sound, and in the control-panel's "sound & sound devices" it says "No sound device" and I can't do anything. :/ (not sure if this is what it's called in english, I'm using the swedish version of Windows XP Professional), I can select the soundcard in creatives Volume Panel (where it says "select audio device") without any error-messages, but when I double click the application (to change the volume etc.) it says it can't find any supported soundcards.
    I tried removing the drivers etc. for the SB-card and installed the Realtek ones again, but it's the same thing there, it shows up in the device manager (under sound - video & gaming-units) but windows still says it can't find an audio-device. My guess is that there's some kind of conflict between the Realtek-integrated card and the new one.
    Anyone got any ideas of what to do? :/
    Edit: Also, the computer keeps wanting to install the integrated soundcard, but I can't seem to find any way to turn it off in the BIOS :/ (I have an ABIT motherboard, don't know what type, can't seem to find the box for it). The BIOS is called "Phoenix - AwardBIOS v6.00PG"
    I have ofcourse tried to fully remove and reinstall the SB-drivers aswell, but no luck there. :/

    next time go into control panel click on sounds, click on record, right click any where in the record box and then put check marks in the boxes that say show disabled devices, and show disconnected devices. Those devices disappear when the boxes are not checked making your pc think there is no output sound.

  • No audio device detected - Lync 2013 Client

    I have a brand new Dell Latitude E6430 laptop running Windows 7 x64 SP1.  I installed Office 2013, including the Lync 2013 client.  We are running Lync 2013 server as well.  I have connected three different audio devices.
    Polycom CX600 phone.
    Plantronics Bluetooth headset.
    Logitech Video Camera  (The video on this works with Lync but no audio)
    I cannot get Lync to recognize either of them.  I can see them as devices in Windows but within Lync I only get a screen that says "We didn't find an audio device, which you need for calling".  Does anyone have any idea on how to resolve this issue? 
    It is driving me crazy.  Especially since it worked perfectly on my old laptop that had the same OS and patches, etc...
    Thanks for your help in advance.
    Jamie

    Had the same issue.  For me it required uninstalling the Intel Widi device from device manager.  I think it was titled "wiusb" or something similar.  It was in its own group in device manager.  After uninstalling that, Lync would then
    recognize my mic/speakers again. 
    I had the exact same problem as everyone else.  I purchased two Dell Latitude E6530 laptops with Windows 7 Pro 64-bit.  Both laptops had the issue.  I uninstalled the WIUSB devices, restarted Lync, and Lync suddenly is able to detect devices...
    I refreshed device manager to see if the devices would auto-install again... but there weren't detected again.
    William Christenson
    This worked for me as well. Uninstalled the WIUSB and WIUSB Host Controller which was present under its own group, Exit Lync process and started again, it detected the Sound Devices again. Definitely a driver conflict but it was quick resolution to uninstall
    and get it working. No other issues with user as far as another device stopped working due to uninstallation of the devices.
    It does not look like any driver conflicts, all other software detects audio device perfectly (Skype, Recorder,softphone, Lync 2010 etc.), but only Lync 2013 client keeps saying ""we didn't find an audio device". it appears the faulty in Lync 2013 client

  • Problem: Audio device only accepts microphone

    Alright. Ive been googling around, looking at other threads that have this problem without any success.
    This is the case:
    I want to stream with FMLE with stereo mix as my audio device but i cant do that.
    To start off with, stereo mix is enabled. Its not set as a standard device or anything such as that but its enabled.
    For the second picture, the "list" of my audio devices in FMLE. Note that there is no stereo mix.
    As the problem got more frustrating, i found this thread
    http://forums.adobe.com/thread/941171
    I tried to exactly what it said, but as you see on picture number 3, there is no
    "HKEY_CURRENT_USER\Software\Microsoft\ActiveMovie\devenum 64-bit\{33D9A762-90C8-11D0-BD43-00A0C911CE86}"
    So i couldnt copy any settings to
    "HKEY_CURRENT_USER\Software\Microsoft\ActiveMovie\devenum\{33D9A762-90 C8-11D0-BD43-00A0C911CE86}"
    I have reinstalled my motherboards audio drivers, which by the way is Realtek HD Audio, or something like that, without any success at all.
    I have tried Viritual Audio Cable and checked regedit for any outputs/inputs but i couldnt find any.
    I have also tried elder versions of FMLE but ive been having the same problem.
    My specs are the following:
    MS Windows 7 Home Premium 64-bit SP1
    Intel Core i5 2500
    16,0 GB Corsair Vengance
    Gigabyte Technology Co., Ltd. Z68X-UD3H-B3
    GeForce GTX 570
    977GB Seagate ST31000528AS ATA Device
    ANY help is VERY appriciated!

    I have sound but FMLE and manycam are not detecting audio devices and also have a profile validation error. From reading the posts I should have "HKEY_CURRENT_USER\Software\Microsoft\ActiveMovie\devenum\{33D9A762-90 C8-11D0-BD43-00A0C911CE86}" in my registry but it's not there.. Where do I add it and how?
    Thank you

  • [P965 Neo-F v2] Audio Device on High Definition Audio Bus

    Hi,
    I've some problem installing the onboard sound card (Realtek).
    A first part of the driver is installed correctly but a second part is always detected (Audio Device on High Definition Audio Bus) and failed to install.
    I've processed as followed:
    1 - fresh installation Windows XP
      - install INFfrom CD
      - install network from CD
      - install sound from CD
    2 - fresh installation Windows XP
      - install INF (latest driver on USB Key)
      - install network  (latest driver on USB Key)
      - install sound (latest driver on USB key)
    I think the unknown detected peripheral has to do with microsoft (there's a patch included with Sound Realtek drivers)
    Any help is welcome
    Thanks

    Quote from: nightmare99 on 12-September-07, 23:16:35
    Yes its the Microsoft UAA High Definition Bus driver. how are you installing yoiur sound driver are you running the realtek setup?  If so it should install the ms patch.
    I'm using the realtek setup and yes, the patch is installed.
    I've also tried to force the microsoft bus driver (by choosing manually the driver) without success

  • Can I force LE 8 to scan for audio device?

    I run all recordings through a Mac Min. As there is only 1 firewire port, I need to have my mixer feeding into a powered hub. When I start the Mac, it doesn't retain the connection to the mixer and I need to switch the mixer and the mic off on order to let Logic go through the scanning process to re-acquire it. This isn't really a problem, but I find it really irritating. When I had a direct firewire connection to the control room iMac, it always 'saw' the mixer and mic.
    Can anybody suggest a way to keep the connection/setting or can I force Logic to do the scan for audio devices without having to turn the mixer off and on.
    Thanks.

    I am aware of the "hold alt key" at start up. However this doesn't work for me for some reason

  • Capturing vfw: devices from JMF All Java

    Hi There,
    i am new to java.I have a problem that i am unable to capture devices that are vfw:/ devices from jmf registry.
    I am working on jmf for all java i.e. cross platform...
    If any one is having sollution plz send it to me
    Thanks in advance
    Sanket Parekh
    [email protected]

    Hi There,
    i am new to java.I have a problem that i am unable to capture devices that are vfw:/ devices from jmf registry.
    I am working on jmf for all java i.e. cross platform...
    If any one is having sollution plz send it to me
    Thanks in advance
    Sanket Parekh
    [email protected]

  • MacBook Pro USB Audio Device Issues

    Hello,
         I am currently using a MacBook Pro 2012 model and I am having trouble with connecting an audio import source via USB cable. The device I am trying to connect is a pair of Astro A40 headset with the MixAmp. According to various sources, the amp needs to be plugged in into a USB port. I have seen this done and when they go to System Preferences > Sound  the device is shown. Unfortunately, I follow the same procedure as the one found on various sites and my computer is not recognizing that anything has been plugged in. I have tried both USB ports and nothing seems to be working.
         Anyone ever hear anything about the newest model of MacBook having troubles with detecting audio devices via USB ports? Any help would be greatly appreciated.
    Thanks,
    Michael

    So far as the Go Pro connectivity, it was an issue on the Go Pro end. In order for the Go Pro to be found, I needed to remove all accesories. iPhoto still does not pick it up, although Finder did.
    Flash Drives still not found.
    Odd as I remember I used to be able to just plug in a device that had anything to do with pictures or videos and iPhoto would just automatically detect it and ask to import.

Maybe you are looking for

  • Can't erase and install SNow Leopard on old MacBook Pro

    I am trying to erase and install Snow Leopard on a MacBook Pro3,1. I boot up with the installation disc, get to pick a language but then a window pops up that says "Mac OS X can't be installed on this computer" and gives me the options to Restore fro

  • Not able to connect with port 143 without SSL

    Hello , I am using javaMail API. i want to access the class IMAPStore with this constuctor public IMAPStore(Session session, URLName url) {      this(session, url, "imap", false); it has SSL false. But as i set the property as - imapProps.setProperty

  • Not able to do Delivery

    Hi Guys, We tried to do delivery against a sales order. There was enough stock and the sloc is warehouse relevent. When we tried to create delivery in VL01N it created delivery. since it is warehouse relevent we tried to create TO against delivery in

  • Operating file transfer through oracle

    Hi, These the syntax provide in the oracle documentation in oracle 10g for copying the os file from one destination to other destination DBMS_FILE_TRANSFER.COPY_FILE( source_directory_object IN VARCHAR2, source_file_name IN VARCHAR2, destination_dire

  • I have a big problem please help me

    Hi, first of all, excuse my very bad english. I have a big problem. I made a big movie (2 hours) with a lot of effect in iMovie HD and I made a big mistake : I erase it without burning. Is there a way to save my life ??? A secret folder with a backup