Help with audio files please....

Well I just learned somewhat about Audiofiles today and I dont know much but this is what I programmed.
import sun.audio.*;
import java.io.*;
public class music
public static void playMusic()
try
String Filename="di.au";
AudioStream as = new AudioStream(new FileInputStream(Filename));
AudioPlayer.player.start(as);
catch (IOException ioe) {
     System.out.println(ioe);}
public static void main (String[]args)
     playMusic();
Every time I do it though I get an error that says
"Java.io.IOException: could not create audio stream from input stream"
I tried running it with throws IOException to but that didn't do much either

import sun.audio.*;
import java.io.*;
public class music
public static void playMusic()
try
String Filename="di.au";
AudioStream as = new AudioStream(new FileInputStream(Filename));
AudioPlayer.player.start(as);
catch (IOException ioe) {
System.out.println(ioe);}
public static void main (String[]args)
playMusic();
}Sorry I didn't know about Quotes thought I'd fix it^^

Similar Messages

  • Need Help with audio file formats

    Can ssomeone give me a quick list of audio files that I can import into logic Pro 7? i'm surprised it doesn't import the normal wave file,
    Thanx
    John

    not sure if this will do it for you, but here is a link to a sample player preset for ultrabeat. you can use this to load up ultrabeat with your own samples
    http://www.logicprohelp.com/viewtopic.php?t=879

  • Need help with audio files

    i know this may be a dumb question but i need to get uploaded audio files from my iphone to my pc without a usb cabl

    I don't know of anyway to get audio files onto it other than the cabel. using iCloud may work.

  • Help with Audio Formats please

    Hello everybody,
    I have a problem with the Java AudioFormat class, can you help me please?
    The thing is Im working on a voice chat using the following audio format settings:
    AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sampleRate, sampleSize, 1, 1, frameRate, false);
    Where:
    audioReadBytes = 1024;
    sampleRate = 8000.0F;
    frameRate = 8000.0F;
    sampleSize = 8;
    My problem is that these settings can cause incrementing voice delay and sometimes even block the application. It works fine on a LAN but on the internet it never works.
    I wanted to ask you if there�s a better audioformat setting that can decrease the size and quality of the sound, so it works on low bandwidths.
    I�m new to audio formats so I don�t understand them much and when I tried to change the settings by decreasing the sample rate I didn�t get what I expected.
    Please help me...
    Thanks a lot,
    Dan.

    Based on the concept of Unity in a gain chain, if you set the levels properly at the output of the analog mixer, then they should be fine coming into the software after the A/D conversion. As long as you don't clip the digital input, you can adjust levels internally on an audio timeline, so it is always better to err on the side of too little rather than too much.
    Digital maximum is -20 dB which is equivalent to 0 dB VU in the analog world. This provides sufficient headroom to avoid clipping in most circumstance.
    Try a few different levels and see what works best for your needs.
    HTH,

  • Possibly corrupt prefs.js file. Need help with this file please.

    I've been having a problem with sending/receiving text messages in Yahoo Messenger and I think I've narrowed it to the prefs.js file in Firefox. I'm using Firefox 3.6.25 on Windows XP sp3. The Yahoo Messenger window would not open when the appropriate mobile phone link was clicked. I uninstalled/reinstalled flash without change. I cleared cache, etc., without change. I created a new Firefox profile and I was able to get the Yahoo Messenger window to open. When I copied the prefs.js file from the old profile to the new profile, I encountered the problem again. I opened the prefs.js file with wordpad and noticed that editing should occur in about:config in the currently running Firefox browser. I briefly compared the two about:config tabs from the working profile and the non-working profile. They were significantly different. How do I make a copy of one so that I can paste it into wordpad and make the editing of the other one easier? Where can I find information about the individual parameters and their settings?

    Hi,
    Please see [[http://kb.mozillazine.org/About:config_entries this.]
    [http://kb.mozillazine.org/About:config about:config]
    You can try to '''Reset all user preferences to Firefox defaults:''' and '''Make Changes and Restart''' in the [https://support.mozilla.org/en-US/kb/Safe%20Mode Firefox Safe Mode] start screen which would also hopefully solve the issue. You can also try to manually '''Reset''' to defaults the modified entries by right-clicking on the bold entries (user set) in about:config. Clicking on the '''Status''' column header would sort the entries between user set (modified) and the defaults.
    An easy way would be to create a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile] and [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile?s=profile&r=1&e=sph&as=s copy/transfer the needed personal data] from the old profile and start using the new profile. You can then delete or troubleshoot the old proile. Firefox stores your personal data and settings in [http://kb.mozillazine.org/Profile_folder another location (profile folder)] separate from its [http://kb.mozillazine.org/Installation_directory folders/files]. A new profile would have the default Firefox settings in '''Tools''' ('''Alt''' + '''T''') > [https://support.mozilla.org/en-US/kb/Options%20window Options] and [http://kb.mozillazine.org/About:config about:config], and usually would also be empty of '''Extensions''' and themes ('''Appearance''') in '''Tools''' > '''Add-ons''', and their settings. Also, a new profile would have no previous stored website cache/cookies/data/preferences: '''Tools''' > [https://support.mozilla.org/en-US/kb/Clear%20Recent%20History '''Clear Recent History'''].
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder & Files]

  • Help with audio book, PLEASE!!

    I have purchased an audio book form ITunes and whenever I quit the book and go back it never restarts where I left off.
    Help
    Larry

    Are you leaving your iPod off long enough for it to do a soft reset -- apple logo showing?
    If that is the case, will loose current bookmark upon automatic soft reset when left off for times that vary by iPod. You can force the bookmark by leaving the audiobook and going to a song.
    Otherwise, try a soft reset (hold menu and center button simultaneously until apple logo appears on display).
    Just to be sure, do a right click, show file to see if m4b extension.
    Try downloading some free content from somewhere and see if those bookmark. i.e., http://www.learnoutloud.com/Free-Audio-Video/Biography/Autobiography/The-Autobio graphy-of-Benjamin-Franklin/18190
    be sure to chose mp4 download of this Franklin autobiography
    All else fails, a hard reset.
    Also try iLounge.com for better audiobook forum responses
    Best of luck!

  • Help with audio question please

    New guy here,
    I have a MAC G5 with Premiere CS4. I do not prior Premiere experience. I've worked several other NLE packages so I'm not a rookie either.
    Anyway, I'm routing the audio through an analog mixer and into a Canopus ADVC 110. I've been able to capture video and audio from a DVD player with Premiere's audio hardware settings set to (Built-in line input/Built-in line output). I've been able to capture both video and audio with the hardware setting set to (Built-in digital input/Built-in line output) put when I scrub on the time line or try he clip in he preview window it will not play back when I hit the space bar or click on the play button. When using (Built-in line input/Built-in line output)everything is fine.
    Here's my question. How do I preview and adjust the audio prior to capturing it? I can hear it just fine when I'm capturing but I can't preview the audio levels to know where I'm at.
    I thought the analog audio going into the Canopus converter would out put the audio as a digital signal since it's being exported to the MAC via firewire.
    Hope someone out there is smarter than I am about this.
    Thanks!
    Jim

    Based on the concept of Unity in a gain chain, if you set the levels properly at the output of the analog mixer, then they should be fine coming into the software after the A/D conversion. As long as you don't clip the digital input, you can adjust levels internally on an audio timeline, so it is always better to err on the side of too little rather than too much.
    Digital maximum is -20 dB which is equivalent to 0 dB VU in the analog world. This provides sufficient headroom to avoid clipping in most circumstance.
    Try a few different levels and see what works best for your needs.
    HTH,

  • I rec'd a CD with audio files. The suffix is .v09, and they won't play on iTunes. Any idea what I should do?

    I rec'd a CD with audio files. The suffix is .v09, and they won't play on iTunes. Any idea what I should do?
    I have a MacBook, OS X.

    No helpful information seems to be available about this, except that on Windows .v09 indicates an unknown extension - in other words they could be anything. What do you get if you highlight the file and hit command-i - does the info pane give you any file type?
    The best thing would be to ask the person who sent you the CD what they are; if you can't do this you can only try opening it in various programs. Audacity is a free audio editor which can open a number of formats. You could try dragging it to a browser icon in case it's Flash, or try the Windows Media Player. However there's a good chance that it's one of the obscure audio formats, in which case you very likely won't be able to play it.

  • Help with Audio for Premiere Project

    Working on a lengthy project and need some help with audio which is not my specialty!
    I am recording using a Sony EX1r and a wireless lav mic,     OK.  Here is what is happening.
    When I import the clip into project I get Audio from the left speaker.   If I burn a DVD and playback on home player with surround sound, I get audio out of just the left speaker which makes sense.    SO I go to Premier and use "Fill Left" which fixes the audio on my computer and get sound from left and right speakers.    The odd thing is that when I play this version back from DVD on the surround sound system, the audio now only comes from the CENTER speaker.  I dont get anything out of left OR the right speaker so it sounds hollow.
    I am sure I am missing something obvious so please be kind.
    Is there an easy way to get my audio to come out of Left, Center, and Right speakers (and rear for that matter) ???
    Thank you
    Ted

    Bill,
    The DVD player is a Sony BluRay and the receiver is an Onkyo AV receiver HT-R380.    
    My thinking is that it is something that I am doing wrong inside Premiere vs something that the DVD player or receiver is doing.    My final product will need to play on a variety of DVD players so I need to get it right.
    It just seems odd that my default output DVD provides sound to the left speaker but then removes it when I fill Left.
    Am I setting up my audio tracks wrong?  Or should I being doing something with a 5.1 track???
    Thanks
    Ted

  • Can some help with CR2 files ,Ican`t see CR2 files in adobe bridge

    can some help with CR2 files ,I can`t see CR2 files in adobe bridge when I open Adobe Photoshop cs5- help- about plugins- no camera raw plugins. When i go Edit- preference and click on camera raw  shows message that Adobe camera raw plugin cannot be found

    That's strage. Seems that the Camera Raw.8bi file has been moved to different location or has gone corrupt. By any chance did you try to move the camera raw plugin to a custom location?
    Go To "C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\CS5\File Formats" and look for Camera Raw.8bi file.
    If you have that file there, try to download the updated camera raw plugin from the below location.
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5371&fileID=5001
    In case  you ae not able to locate the Camera Raw.8bi file on the above location, then i think you need to re-install PS CS5.
    [Moving the discussion to Photoshop General Discussions Forum]

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Unexpected problem: uncaught exception when working with audio files in Soundtrack Pro

    Hey,
    Whenever I double click an audio file in the timeline to work on it, I end up getting the Error message: "Unexpected problem: uncaught exception" and Soundtrack Pro eventually crashes.  Also, this happens when I try to work with audio files in the file editor.  I have Leopard and am using Logic Studio 8.  Any insight would be much appreciated. Thanks
    Matt

    Didnt know how to remove the original clip from the STP arrange window - or whatever it's called in STPro.  So I could go no further in my perverse science experiment. 
    It also appeared that I could only import an aif but not a wav? 
    I gave up on STPro and did what I needed to do in Logic, which I use regularly.    
    Thank you for folowing up on this. 
    PS.  I used to use an old PowerPC version (1.0.3) of STPro and loved the way it visually showed the change in the waveform when you added each efffect.  It appears that the new version (3.0.1) does not allow you to do this anymore?  You can render or flatten the effects to see the final waveform, but then you are dead in the water and cant make changes?  
    Im such a newbie at STPro that I am probably not using it right? 

  • Pdf with audio files

    When I exported iBooks author file with audio files to a pdf file, I cannot play audo files.  How can I make a pdf file with audo files from iBooks author? Any commnets are aprpreciated.

    Not going to happen (in this context), sorry.
    Consider PDFs as review tools, not replacements for interactive books.

  • Help with access control please

    So I'm trying to set up my brother's PSP to the wirless network through MAC address timed access. What I want to do is make it so that he can only access it through certain times in the day. I'm having troubles with actually getting it to work. Everytime I set it up, the PSP only show's up as a DHCP client and not a Wireless client. I tried the option panel with the add wireless clients through the first try access. Could I get some help with this issue please? Thanks!

    Just to calm your fears... There is no conspiracy. If someone had an answer or a suggestion they would post it.

  • Help with editing audio files (please)

    hi there,
    firstly sorry for posting in this section but i had no idea where else to do it.
    i recently went to an acoustic gig and recorded some songs from it using a sony ericsson phone. i have blue-toothed the files to my mac. there are a few songs on each recording are two things i would like to do with these files.
    1. i would like to split the files so they are separate for each song.
    2. i would like to try remove as much background noise as possible i.e. crowd making noise, or at least focus it on the actual music being played.
    i have download audacity but have no idea. i am looking for a possibly free way to do this and simple too. i am not going to go hardcore with the editing, just want to do it quick and easy.
    any help much appreciated, thanks, ravi.
    Message was edited by: irav_86

    You need to import your song to iTunes first.
    Than open Garage Band and click on bottom Right button (View/ Hide media browser).
    Click on Audio>iTunes>Music, and choose the song you want to edit. Then Just drag to your board and this will open new track, you will see line running vertically on your screen, this is showing you at what measure your song will start, just move to the beginning of a track (if you drop it too soon, just "pick" it up again and move it). This is very useful when you are trying to merge several track (e.g. for your iMovie, as you have only two tracks on it).
    Than Split and delete portion you don't want any more.
    To Slit a track, adjust your measure where you want to split it and go to Edit>Spit.
    Hope this helps.

Maybe you are looking for