Format to play a garageband file on a cd player

I tried to put a garageband file on a CD and it wouldn't play on a cd player. how can i save it in a format that will burn on a cd that will play on a computer.

Don't do a Burn folder. Just burn direct from iTunes. You can drag tunes into a Playlist folder if you like but you don't need to. Just check the songs you want to burn, insert the blank CD-R and you'll see the button at the bottom right to burn the disc.
You can also burn direct to CD from GB if you choose that option.
(Correction: GB 3 doesn't burn to CD, I don't think. So Share to iTunes first.)
Message was edited by: p o'flynn

Similar Messages

  • Playing large video files in the flash player

    Hi,
    At the moment I'm trying to play large video files (1GB+) in the JW Player, but after a certain amount of time, around 67 to 70 minutes, the video just stops playing. Does the Flash Player have a limit on the size of video files?

    I'd need to debug it to figure out what's going on.
    The best way to get traction on this is to file a bug.  If you can provide a link that demonstrates the problem, that would be ideal.
    http://bugbase.adobe.com/
    Post the bug number here, and I'll forward it over to the video team.
    Thanks!

  • HT4229 Does Logic Pro or logic express allow me to plug in a Halion VST player or to import and play VST wave files on any other player plugin?

    Hi
    Can I plug Halion 2 into Logic Pro or Logic Express?  Or another VST player?
    I cant find out how....

    Logic unfortunately does not support any VST's by themselves. Rather they support AU's (Audio Units). So you cannot plug Halion 2 into Logic easily.
    However, I have heard that you can install an AU called Plogue Bidule that allows you to run VST's. It acts as a sort of middle man so that you open the AU that opens the VST. I don't know too much about it, but it appears that they have some content on their website to look at if you are interested.
    Hope this information helps!
    Ryan

  • Is there a way to play flv & mkv file formats through media element in windows 8.1 app ?

    i am trying to develop a video player so i just thought Is there a way to play flv & mkv file formats through media element in windows 8.1 app ? , coz when i tried media element it is supporting only mp4 & avi formats.

    Here is a list of Media Foundation codecs
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd757927(v=vs.85).aspx
    For the rest of the formats you have you write your own MFT-based codec and ship the codec with your app. See also
    implementing a Codec MFT (http://msdn.microsoft.com/en-us/library/windows/desktop/dd757274(v=vs.85).aspx)
    Media extensions sample (https://code.msdn.microsoft.com/windowsapps/Media-extensions-sample-7b466096)
    MKV and FLV are just container formats, though, you need to survey some video files to see what video codecs are actually in streams and support them one by one. Supporting some proprietary video formats may involve licensing costs from patent holders.
    Visual C++ MVP

  • Any ideas why a film I have  converted to mp4 format, that plays with sound through my PC windows media file- only has a picture but no sound when transferred to my ipod touch via the Itunes?

    Any ideas why a film I have  converted to mp4 format, that plays with sound through my PC windows media file- only has a picture but no sound when transferred to my ipod touch via the Itunes?

    See:
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    iTunes: Frequently asked questions about viewing and syncing videos

  • Garageband 10 won't play my old garageband files correctly

    My previous computer broke, but I had all my garageband 6 files on external HD. So when I got my new computer, it came with the new garageband. Ok, no problem. But when I open up my garageband files into the new version, nothing but the piano instrument (and a couple of other basic instruments) work. But my drunm kits, strings, and other things don't because this garageband seemed to have cleaned house and gotten rid of a ton of instruments (and replaced them with a couple crappy ones). I also had the Jam packs. So my question is this - is there anyway to get the old instruments from garageband 6 over to the new one, or, is there a way I can just re-install the old garageband, as I found it's interface to be cleaner?

    Have you already installed the additional instruments, that come with GarageBand 10?  You start the download from GarageBand's main menu bar:    GarageBand > Restore Sound Library  or Download additional Sounds. 
    That will download several GB of additional instruments and loops.    But quite a few sounds and loops will still be missing, if you previously had GarageBand 6.0.5  and the Jam Packs.  Do you still have the installer DVDs for GarageBand and the Jam packs? Then reinstall from the original media. To install the Jam Packs on Yosemite, see the FAQ:  http://www.bulletsandbones.com/GB/FAQPages/InstallJamPack10.7.html
    Some JamPack installers use PowerPC code and do not run directly on Yosemite, so you need the work-around described in the FAQ.
    If you still have an backup of your old Mac, you could also simply migrate the missing files from the Instrument Library and the loop library to your new mac.
    The instruments are installed in the folder     /Library/Application Support/GarageBand/Instrument Library/
    The loops are installed in /Library/Audio/

  • How can i fix a corrupted garageband file????

    I have here a file that i was working on. I a cd track, and i imported it into the garageband file. After my computer crashed as i was exporting the completed track into itunes, i restarted my computer and when i went to open the garageband file, it said the file was no longer supported. so i opened the file in anycase and was no longer able to use the cd track i had imported. It said that it found 67 audio tracks in 8 bit format. This format os unsupportedd and cannot be played back....can someone help me find some kind of resolution to this issue??

    You'll probably have more luck getting help with this if you post in the GarageBand forum:
    https://discussions.apple.com/community/ilife/garageband
    Posting here is unnecessarily limiting you to those who would happen to be running GarageBand on a mini.
    Regards.

  • How do i make it so iTunes plays the music files from where i have chosen to store them?

    how do i make it so iTunes plays the music files from where i have chosen to store them as opposed to it scattering copies of my files into a myriad different folders based on the albums they came from when i'm not even interested in keeping whole albums?
    I recently converted myself to mac after having been a windows formatted person since the beginning of time. I use last.fm and the client scrobbler only supports iTunes on the mac (scobbling since Nov 06 and i'm now heavily dependant upon it as a means of discovering new music) - if you don't know what that means then take it for granted i have no option other than to use iTunes as my media player whn using the mac. And almost immediately upon using iTunes i was filled with horror.
    My tale of woe as follows: I copy all my mp3 files to folder X on my new mac. I copy my simple playlist in to that same folder X. The simple playlist simply lists all the files in folder X in the order i want to hear them in... simple right? And what happens the moment i start playing my simple list? Well you probably all ready know; itunes throws copies of all those files in to the air, scatters them to the four winds so each of them fall into a little folder of their own representing the album they might once have come from. I don't keep whole albums. For me the 'album experience' is a ruse to trick one into listening to weaker material. I only keep the concentrated goodness. I only put up with albums in a previous lifetime because in the days of vinyl i had no other choice apart from spending hours compiling mix tapes. Now i am liberated from these restrictions and have been for the 15 or so years i've been using a computer to listen to music. Until along comes iTunes forcing me backwards in time, frog marching me back into the past.
    That simple list i mentioned is my one and only playlist. This single playlist has been evolving for 15 years as tracks are added and removed and their position in the list changes because that song sounds amazing when heard after that other song whereas hearing this song after that song would be like pouring custard over your sausages (for me shuffling is an abomination). And so here is how i've managed this list and managed synchronization of said list and listed files with my mp3 player (currently a Zen).
    Adding a new file: After deciding that song is a keeper i will copy it into that simple folder that holds all my music and drop it in to a position on the list i deem most suited for it. Incidentally over this entire 15 year (i'm pretty sure it's been around that long) my media player has been winamp but for the reason previously mentioned i am unable to use winamp in mac world.
    Removing a file: fortunately winamp has an option to simultaneously remove a file from the list and the hard drive. And naturally so because after all if i no longer like a song then i want it expunged completely from life or at least from my hard drive and playlist. In the brave new world of iTunes i have to remove from the list there then delete the file from where iTunes copied it from and then the place iTunes copied it to.
    Editing the list: drag an item in the list to it's preferred location and select to save it as i would for any other file using any other application... well desktop type application as opposed to one that uses a database as its primary means of storage.
    Syncing with the mp3 player: copy drag drop playlist file from the simple folder on the hard drive to the simple folder on the mp3 player as i would for any other file. And then also copy drag drop the most recently created files from simple folder on hard drive to simple folder on player after having ordered them by creation date so as to make it easier to select the most recently created. After a while the mp3 player will fill up with the files no longer on the list so i will delete all files from player then re-copy all flies from simple folder on hard drive to simple folder on mp3 player.
    I do not make changes to the list on the mp3 player so synchronization needs only to go one way: from laptop to player.
    So all very simple. Apart from editing the positions of files in the list everything is managed by copy drag dropping and deleting files using windows explorer.
    But i'm in a mac and circumstances have forced me in to the corner of using iTunes. And this whole iTunes situation is terrifying for me as over the years i've heard horror stories about it deleting all of someone's music files. Perhaps this may have been by using the software incorrectly but even so, the very fact that it appears possible for this to happen simply by using the software incorrectly and the fact that it happens with some degree of frequency given the number of reports of this happening that i have heard of over the years on music discussion forums fills me with dread that i have to now use this software. And given the software's blatant disregard for the user's choice as to where to store his/her files it's no surprise that this happens. The software is pointlessly doing dangerous things with my data. Please make it stop.
    Please can i just at the very least make iTunes play the music from the folder i have chosen to put my files in and not copy those files here there and everywhere without my say so? Thankyou.

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

  • Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?

    Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?
    A little background info. I use Captivate 7 and currently have over 100 projects that I maintain on a quarterly basis. I publish using the SWF format and upload the swf/htm files to a server where they are then accessed from a few locations (within our online documentation, in our software product, on two different websites). Many of the projects are linked so some will be viewed as a series and others viewed as a standalone video. Each video uses the same template and includes an intro and end slide. Now my organization wants to implement a new intro to all videos (those I publish and those from several groups across the organization). My current intros provide overview material for the specific video so the new intro, which is an animation with audio in mp4 format, would need to be placed at the start of each project. The issue is, the intro adds 9 seconds to every video and in many cases doesn’t add any value (say, if a user accesses the video from within our product or views the videos as a series). I’ve talked it over with my boss and we want to try to add the intro only to videos accessed from site X, not any other location. So now to my question. Is there a way to play an external mp4 file (intro) only when the published project is accessed from a specific site, therefore eliminating the need to update each project? Maybe there's a way to add a parameter or variable to the URL or the html code?
    Thanks in advance for your suggestions. Please let me know if you need additional information.

    AimeeLove,
    I have a solution for you.  You may have to modify the code a little bit based on how long the timeline animation is for your clock.  I based mine on 3 seconds to complete a minute hand sweep around the clock.
    Milliseconds for each point on the clock:
    12 = 0
    1 = 250
    2 = 500
    3 = 750
    4 = 1000
    5 = 1250
    6 = 1500
    7 = 1750
    8 = 2000
    9 = 2250
    10 = 2500
    11 = 2750
    In the mouseover section for 12 o' clock, put this code...
    myVar = setInterval(function(){
         var pos = sym.getPosition();
         if (pos > 0 && pos < 50){
              sym.stop(0);
              clearInterval(myVar);
    },10);
    When you point to the time, the setInterval method loops every 100th of a second and checks the current position of the timeline.  When the timeline reaches the range between 0 and 50 milliseconds (almost impossible to hit 1 specific point), the timeline will stop at 0.  Also, the clearInterval will be fired to stop the loop.
    In the mouseout section, put this...
    sym.play();
    clearInterval(myVar);
    It start the clock again, and it also clears the loop in case you mouseout before you reach the range.
    Make sure that myVar is a global variable so you can clear it from the mouseout section.
    Repeat this for each point on the clock.  To avoid potential conflicts, you may want to use my12, my1, my2, etc. instead of myVar.  I put the milliseconds at the top that you would use as the beginning of the range.  50 milliseconds should be enough to catch it.  So, for 5 o' clock, you would make your range between 1250 and 1300.
    Let me know if you have any questions.  Thanks!
    Fred

  • IPod mini only plays MP3, no longer plays iTunes m4p files

    I connected my friends Windows formated iPod mini (4gig) to my Mac so we could transfer a song she purchased through iTunes 6. Initially there was a dialog box that wanted to update the software on the iPod. Since she had never updated her iPod we didn't choose to do that. The iPod showed up in iTunes fine, and we then authorized the Mac with her account.we transferred the song. The song would play fine from the iPod mini through iTunes, but the minute we disconnected from the computer and tried to play through the iPod, it would skip all the protected m4p files and only play the MP3 files and regular AAC unprotected files. All the protected iTunes songs will no longer play. She has since updated her iPod with the latest software from her windows, and we have deauthorized the Mac, but still the same issues. We then reauthorized the iPod on the Mac and still nothing. Any ideas?

    Upgrading to iTunes 6.0.1 fixes the problem. At least it did on my 3G Mac formated iPod. The mini is working as it should be we restored it to factory settings and got the basic functionality working again. iTunes 6.0.1 allows the 3G iPod to play my recently purchased music, previously puchased music and books, as well as all the other MP3 and non-purchased AAC encoded music. I'm glad I didn't have to restore the 3G 30 gig iPod since that would have been a lot of work.
    Thanks for the fix Apple!
    Earl

  • ITUNES DOES NOT PLAY ALL MUSIC FILES AFTER DATA RECOVERY

    My external Iomega Firewire 160gig HD, all of a sudden, changed the drive letter from H to F with unknown format.
    I recovered music files ( Using Stellar Phoenix FAT)and files/folders are in iTunes but only 20-30 play (out of over 6,000)
    I can play CD and rip new music in iTunes, though.
    Any suggestions how to get my music play all library files??
    Dell   Windows XP   Media center

    WiseBird,
    There might be several causes for that kind of erratic behaviour:
    1st use Disk Utility to check your internal disk as well as the external one.
    2nd Your Library database might be damaged
    - Quit iTunes
    - Goto ./Users/YourUserName/Music/iTunes
    There will 2 files named something "Library" - move them to your desktop
    - Launch iTunes
    As you're now starting from scratch, iTunes will offer to search for audio tracks - Don't let it.
    - Your iTunes should be "clean"
    - in iTunes Preferences - Advanced - General:
    Point the Music Folder Location to the appropriate folder on your ext hd
    Disable "Copy Files to iTunes music folder....."
    - Quit Preferences
    - From iTunes Menu - File choose "Add to library..." + select that folder on your ext hd that contains all your tracks.
    - All your tracks should be back by now in iTunes Library.
    - To get your playlists back: From iTunes Menu - File choose "Import" and open that .xml file that you moved to your desktop (might work but need not).

  • [SOLVED] can't play any multimedia file, fresh install msi wind

    hi! i have now a pretty much working system i installed mplayer and alsa, and have a working xorg, i configured alsa with alsaconf and it says that the card was found and i can now change levels with alsamixer the thing is that everytime a want to play a media file, say an mp3, avi, mpg, every kind of media file, mplayer says "Starting playback..." and the do nothing, i tryed vlc too, it shows the position bar like its playing but nothiing happends and then if you want to close it the only way to stop them is via htop, not even a sudo killall mplayer/vlc do the trick, dont know if its a misconfiguration or a alsa/kernel bug, and i think that i have so less controls in alsamixer/amixer, because i don't have a mic audio level for example, i only have a "mono" Master and PC Speaker
    thanks for read!
    my xorg, amixer/mplayer/vlc output:
    my xorg:
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    # InputDevice "SynapticsTouchpad" "SendCoreEvents"
    # InputDevice "USB Mouse" "CorePointer"
    # InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "ServerFlags"
    # Option "AllowMouseOpenFail" "true"
    # Option "AutoAddDevices" "False"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/local/"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
    # Load "ddc"
    Load "dbe"
    # Load "xtrap"
    Load "dri"
    Load "glx"
    Load "bitmap" # bitmap-fonts
    Load "type1"
    Load "record"
    Load "extmod"
    Load "freetype"
    Load "synaptics"
    EndSection
    #Section "InputDevice"
    # Identifier "Keyboard0"
    # Driver "keyboard"
    # Option "CoreKeyboard"
    # Option "XkbRules" "xorg"
    # Option "XkbModel" "pc105"
    # Option "XkbLayout" "es"
    #EndSection
    #Section "InputDevice"
    # Identifier "USB Mouse"
    # Driver "mouse"
    # Option "Device" "/dev/input/mice"
    # Option "SendCoreEvents" "true"
    # Option "Protocol" "IMPS/2"
    # Option "ZAxisMapping" "4 5"
    # Option "Buttons" "5"
    #EndSection
    #Section "InputDevice"
    # Identifier "Touchpad"
    # Driver "synaptics"
    # Option "Device" "/dev/input/mouse0"
    # Option "Protocol" "auto-dev"
    # Option "LeftEdge" "130"
    # Option "RightEdge" "840"
    # Option "TopEdge" "130"
    # Option "BottomEdge" "640"
    # Option "FingerLow" "7"
    # Option "FingerHigh" "8"
    # Option "MaxTapTime" "180"
    # Option "MaxTapMove" "110"
    # Option "EmulateMidButtonTime" "75"
    # Option "VertScrollDelta" "20"
    # Option "HorizScrollDelta" "20"
    # Option "MinSpeed" "0.25"
    # Option "MaxSpeed" "0.50"
    # Option "AccelFactor" "0.010"
    # Option "EdgeMotionMinSpeed" "200"
    # Option "EdgeMotionMaxSpeed" "200"
    # Option "UpDownScrolling" "1"
    # Option "CircularScrolling" "1"
    # Option "CircScrollDelta" "0.1"
    # Option "CircScrollTrigger" "2"
    # Option "SHMConfig" "on"
    # Option "Emulate3Buttons" "on"
    # Option "VertTwoFingerScroll" "1"
    # Option "HorizTwoFingerScroll" "1"
    #EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Monitor Model"
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "NoAccel" # [<bool>]
    #Option "SWcursor" # [<bool>]
    #Option "ColorKey" # <i>
    #Option "CacheLines" # <i>
    #Option "Dac6Bit" # [<bool>]
    #Option "DRI" # [<bool>]
    #Option "NoDDC" # [<bool>]
    #Option "ShowCache" # [<bool>]
    #Option "XvMCSurfaces" # <i>
    #Option "PageFlip" # [<bool>]
    Identifier "Card0"
    Driver "intel"
    VendorName "Intel Corporation"
    BoardName "Mobile 945GME Express Integrated Graphics Controller"
    BusID "PCI:0:2:0"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 8
    Modes "1680x1050" "1024x600" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1680x1050" "1024x600" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1680x1050" "1024x600" "800x600" "640x480"
    EndSubSection
    EndSection
    Section "DRI"
    Mode 0666
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    amixer:
    [aleyscha@aleyscha 63 ~ 11:15]$ amixer
    Simple mixer control 'Master',0
    Capabilities: pvolume pswitch pswitch-joined
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 255
    Mono:
    Front Left: Playback 21 [8%] [-7.69dB] [on]
    Front Right: Playback 21 [8%] [-7.69dB] [on]
    Simple mixer control 'PC Speaker',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [on]
    Simple mixer control 'BaseFRQ',0
    Capabilities: penum
    Items: '18643' '37286'
    Item0: '18643'
    mplayer:
    MPlayer dev-SVN-rUNKNOWN-4.3.2 (C) 2000-2009 MPlayer Team
    CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    137 audio & 292 video codecs
    Playing doorbell1.mp3.
    libavformat file format detected.
    [lavf] Audio stream found, -aid 0
    ==========================================================================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    AUDIO: 22050 Hz, 2 ch, s16le, 128.0 kbit/18.14% (ratio: 16000->88200)
    Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    ==========================================================================
    AO: [alsa] 22050Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback...
    vlc:
    [aleyscha@aleyscha 71 Music 11:24]$ vlc Krishna_Das_-_Jaya_Jagatambe_\(Pilgrim_Heart\).mp3
    VLC media player 0.9.8a Grishenko
    [00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
    [00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--enable-dvdread' '--enable-dvdnav' '--enable-madi' '--enable-ffmpeg' '--disable-rpath' '--enable-qt4' '--enable-faad' '--enable-alsa' '--enable-skins2' '--enable-dvb' '--enable-dmo' '--with-ffmpeg-faac' '--with-ffmpeg-vorbis' '--with-ffmpeg-dts' '--with-ffmpeg-ogg' '--with-ffmpeg-theora' '--enable-v4l' '--enable-theora' '--enable-flac' '--enable-snapshot' '--enable-hal' '--enable-dbus' '--enable-ogg' '--enable-dbus-control' '--enable-shared' '--enable-nls' '--enable-lirc' '--enable-shout' '--enable-pvr' '--enable-release' '--program-suffix=' '--with-dv-raw1394=/usr/include/libraw1394' '--enable-loader' '--enable-live555' '--with-live555-tree=/usr/lib/live-media' 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe' 'CXXFLAGS=-march=i686 -mtune=generic -O2 -pipe' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig'
    [00000001] main libvlc debug: translation test: code is "C"
    [00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    Last edited by leo2501 (2009-01-25 23:53:47)

    A few days ago, x264 was updated through pacman. Ever since that update I have been unable to watch video over the web. VLC won't generate sound. Flash video freezes firefox and opera.  Here are some links to threads about it (also a link to the bug page where it has been assigned for a fix.). Maybe this is what is causing your problem as well??
    http://bbs.archlinux.org/viewtopic.php?id=63509
    http://bbs.archlinux.org/viewtopic.php?id=63461
    http://bugs.archlinux.org/task/12872

  • Playing an audio file from applet

    Hi friends,
    I have a problem to be solved .
    Please help me.
    I have to play an audio file from applet.When the applet loads it shold start playing .There is a progress bar in the applet it shold alsomove corresponding to that.
    How can i do that.Give me an idea.
    I know nothing about jmf.
    I am using j2sdk1.4,windows 2000 server.

    Andrew,
    Forgive my naivety, but i struggle with JAVA! I am desperately trying to create a JAVA plugin to SERVOY and have to date been successful with a few things. Record, Playback, convert to .spx.
    I am really struggling with implementing a rewind and fastforward function of the type you have. I thought it would be easy, but it appears not.
    At the bottom is the complete code from my class that is called by the servoy plugin wrapper,
    i had thought that adding some simple jump 500 ms would have been easy in something like this:
    public AudioStream js_FastForward (AudioStream as) throws IOException {
    !!! Line or two here to move the play head forward !!!
         AudioPlayer.player.start(as);
         return as;
    Can you give me any pointers to how i code that fast forward bit.
    many thanks
    David
    package com.d2e.MyPlugin;
    import com.servoy.j2db.scripting.IScriptObject;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.awt.Button;
    import javax.sound.sampled.*;
    import org.xiph.speex.*;
    import org.xiph.speex.spi.*;
    import  sun.audio.*;    //import the sun.audio package
    public class MyPluginProvider implements IScriptObject  {
          public void JSencode()
             throws IOException{
               /** Version of the Speex Encoder */
                final String VERSION = "Java Speex Command Line Encoder v0.9.7 ($Revision: 1.5 $)";
                /** Copyright display String */
                final String COPYRIGHT = "Copyright (C) 2002-2004 Wimba S.A.";
                /** Print level for messages : Print debug information */
                final int DEBUG = 0;
                /** Print level for messages : Print basic information */
                final int INFO  = 1;
                /** Print level for messages : Print only warnings and errors */
                final int WARN  = 2;
                /** Print level for messages : Print only errors */
                final int ERROR = 3;
                int printlevel = INFO;
                /** File format for input or output audio file: Raw */
                final int FILE_FORMAT_RAW  = 0;
                /** File format for input or output audio file: Ogg */
                final int FILE_FORMAT_OGG  = 1;
                /** File format for input or output audio file: Wave */
                final int FILE_FORMAT_WAVE = 2;
                int srcFormat  = FILE_FORMAT_OGG;
                int destFormat = FILE_FORMAT_WAVE;
                int mode       = -1;
                int quality    = 4;
                /** Defines the encoders algorithmic complexity. */
                 int complexity = 3;
                /** Defines the number of frames per speex packet. */
                 int nframes    = 1;
                /** Defines the desired bitrate for the encoded audio. */
                 int bitrate    = -1;
                /** Defines the sampling rate of the audio input. */
                 int sampleRate = -1;
                /** Defines the number of channels of the audio input (1=mono, 2=stereo). */
                 int channels   = 1;
                /** Defines the encoder VBR quality setting (float from 0 to 10). */
                 float vbr_quality = -1;
                /** Defines whether or not to use VBR (Variable Bit Rate). */
                 boolean vbr    = false;
                /** Defines whether or not to use VAD (Voice Activity Detection). */
                 boolean vad    = false;
                /** Defines whether or not to use DTX (Discontinuous Transmission). */
                 boolean dtx    = false;
              //HArd code src format and dest
               // private String srcPath ="junk.wav";
              srcFormat = FILE_FORMAT_WAVE;
              destFormat = FILE_FORMAT_OGG;
              //destPath="junk.spx";
             byte[] temp    = new byte[2560]; // stereo UWB requires one to read 2560b
             final int HEADERSIZE = 8;
             final String RIFF      = "RIFF";
             final String WAVE      = "WAVE";
             final String FORMAT    = "fmt ";
             final String DATA      = "data";
             final int WAVE_FORMAT_PCM = 0x0001;
             // Open the input stream
             DataInputStream dis = new DataInputStream(new FileInputStream("junk.wav"));
             // Prepare input stream
           //DP - Sort out the Wave File
               // read the WAVE header
               dis.readFully(temp, 0, HEADERSIZE+4);
               // Read other header chunks
               dis.readFully(temp, 0, HEADERSIZE);
               String chunk = new String(temp, 0, 4);
               int size = readInt(temp, 4);
               while (!chunk.equals(DATA)) {
                 dis.readFully(temp, 0, size);
                 if (chunk.equals(FORMAT)) {
                   typedef struct waveformat_extended_tag {
                   WORD wFormatTag; // format type
                   WORD nChannels; // number of channels (i.e. mono, stereo...)
                   DWORD nSamplesPerSec; // sample rate
                   DWORD nAvgBytesPerSec; // for buffer estimation
                   WORD nBlockAlign; // block size of data
                   WORD wBitsPerSample; // Number of bits per sample of mono data
                   WORD cbSize; // The count in bytes of the extra size
                   } WAVEFORMATEX;
                   if (readShort(temp, 0) != WAVE_FORMAT_PCM) {
                     System.err.println("Not a PCM file");
                     return;
                   channels = readShort(temp, 2);
                   sampleRate = readInt(temp, 4);
                   if (readShort(temp, 14) != 16) {
                     System.err.println("Not a 16 bit file " + readShort(temp, 18));
                     return;
                   // Display audio info
                   if (printlevel <= DEBUG) {
                     System.out.println("File Format: PCM wave");
                     System.out.println("Sample Rate: " + sampleRate);
                     System.out.println("Channels: " + channels);
                 dis.readFully(temp, 0, HEADERSIZE);
                 chunk = new String(temp, 0, 4);
                 size = readInt(temp, 4);
               if (printlevel <= DEBUG) System.out.println("Data size: " + size);
           //DP ENd sort wave file 
           //Now Choose the mode , we have a file sampled at 44100
                 mode = 2; // Ultra-wideband
             // Construct a new encoder
             SpeexEncoder speexEncoder = new SpeexEncoder();
             speexEncoder.init(mode, quality, sampleRate, channels);
             if (complexity > 0) {
               speexEncoder.getEncoder().setComplexity(complexity);
             if (bitrate > 0) {
               speexEncoder.getEncoder().setBitRate(bitrate);
             if (vbr) {
               speexEncoder.getEncoder().setVbr(vbr);
               if (vbr_quality > 0) {
                 speexEncoder.getEncoder().setVbrQuality(vbr_quality);
             if (vad) {
               speexEncoder.getEncoder().setVad(vad);
             if (dtx) {
               speexEncoder.getEncoder().setDtx(dtx);
             // Display info
             // Open the file writer
             AudioFileWriter writer;
             if (destFormat == FILE_FORMAT_OGG) {
               writer = new OggSpeexWriter(mode, sampleRate, channels, nframes, vbr);
             else if (destFormat == FILE_FORMAT_WAVE) {
               nframes = PcmWaveWriter.WAVE_FRAME_SIZES[mode-1][channels-1][quality];
               writer = new PcmWaveWriter(mode, quality, sampleRate, channels, nframes, vbr);
             else {
               writer = new RawWriter();
             writer.open("junk.spx");
             writer.writeHeader("Encoded with: " + VERSION);
             int pcmPacketSize = 2 * channels * speexEncoder.getFrameSize();
             try {
               // read until we get to EOF
               while (true) {
                 dis.readFully(temp, 0, nframes*pcmPacketSize);
                 for (int i=0; i<nframes; i++)
                   speexEncoder.processData(temp, i*pcmPacketSize, pcmPacketSize);
                 int encsize = speexEncoder.getProcessedData(temp, 0);
                 if (encsize > 0) {
                   writer.writePacket(temp, 0, encsize);
             catch (EOFException e) {}
             writer.close();
             dis.close();
            * Converts Little Endian (Windows) bytes to an int (Java uses Big Endian).
            * @param data the data to read.
            * @param offset the offset from which to start reading.
            * @return the integer value of the reassembled bytes.
           protected static int readInt(final byte[] data, final int offset)
             return (data[offset] & 0xff) |
                    ((data[offset+1] & 0xff) <<  8) |
                    ((data[offset+2] & 0xff) << 16) |
                    (data[offset+3] << 24); // no 0xff on the last one to keep the sign
            * Converts Little Endian (Windows) bytes to an short (Java uses Big Endian).
            * @param data the data to read.
            * @param offset the offset from which to start reading.
            * @return the integer value of the reassembled bytes.
           protected static int readShort(final byte[] data, final int offset)
             return (data[offset] & 0xff) |
                    (data[offset+1] << 8); // no 0xff on the last one to keep the sign
         AudioFormat audioFormat;
           TargetDataLine targetDataLine;
         public Class[] getAllReturnedTypes() {
              // TODO Auto-generated method stub
              return null;
         public String[] getParameterNames(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public String getSample(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public String getToolTip(String arg0) {
              // TODO Auto-generated method stub
              return null;
         public boolean isDeprecated(String arg0) {
              // TODO Auto-generated method stub
              return false;
         public String js_Record (String name){
              captureAudio();
              return "Started Recording " +name;
        public String js_StopRecord (String name) throws IOException{
             //new ActionListener(){
             //   public void actionPerformed(ActionEvent e)
                  //Terminate the capturing of input data
                  // from the microphone.
                  targetDataLine.stop();
                  targetDataLine.close();
              //  }//end actionPerformed
             //};//end ActionListener
                 // JSpeexEnc ("junk.wav","output.spx");
                  JSencode();
              return "Stop Records " +name;
        //Play audio file
        public AudioStream js_Playback (String name) throws IOException{
             InputStream in = new FileInputStream("junk.wav");
             AudioStream as = new AudioStream(in);        
             AudioPlayer.player.start(as);           
             return as;
        public AudioStream js_ContPlay (AudioStream as) throws IOException {
             AudioPlayer.player.start(as);           
             return as;
         //Stop Play
        public AudioStream js_Stop_Playback (AudioStream as) throws IOException{
             AudioPlayer.player.stop(as);
              return as;
         //This method captures audio input from a
        // microphone and saves it in an audio file.
        private void captureAudio(){
          try{
            //Get things set up for capture
            audioFormat = getAudioFormat();
            DataLine.Info dataLineInfo =
                                new DataLine.Info(
                                  TargetDataLine.class,
                                  audioFormat);
            targetDataLine = (TargetDataLine)
                     AudioSystem.getLine(dataLineInfo);
            //Create a thread to capture the microphone
            // data into an audio file and start the
            // thread running.  It will run until the
            // Stop button is clicked.  This method
            // will return after starting the thread.
            new CaptureThread().start();
          }catch (Exception e) {
            e.printStackTrace();
            System.exit(0);
          }//end catch
        }//end captureAudio method  
    //  This method creates and returns an
        // AudioFormat object for a given set of format
        // parameters.  If these parameters don't work
        // well for you, try some of the other
        // allowable parameter values, which are shown
        // in comments following the declarations.
        private AudioFormat getAudioFormat(){
          float sampleRate = 44100.0F;
          //8000,11025,16000,22050,44100
          int sampleSizeInBits = 16;
          //8,16
          int channels = 1;
          //1,2
          boolean signed = true;
          //true,false
          boolean bigEndian = true;
          //true,false
          return new AudioFormat(sampleRate,
                                 sampleSizeInBits,
                                 channels,
                                 signed,
                                 bigEndian);
        }//end getAudioFormat
        class CaptureThread extends Thread{
               public void run(){
                 AudioFileFormat.Type fileType = null;
                 File audioFile = null;
                 //Set the file type and the file extension
                 // based on the selected radio button.
                 //if(aifcBtn.isSelected()){
                  // fileType = AudioFileFormat.Type.AIFC;
                  // audioFile = new File("junk.aifc");
                // }else if(aiffBtn.isSelected()){
                 //  fileType = AudioFileFormat.Type.AIFF;
                 //  audioFile = new File("junk.aif");
                // }else if(auBtn.isSelected()){
                 //  fileType = AudioFileFormat.Type.AU;
                 //  audioFile = new File("junk.au");
                // }else if(sndBtn.isSelected()){
                //   fileType = AudioFileFormat.Type.SND;
                 //  audioFile = new File("junk.snd");
                // }else if(waveBtn.isSelected()){
                 fileType = AudioFileFormat.Type.WAVE;
                 audioFile = new File("junk.wav");
                // }//end if
                 try{
                   targetDataLine.open(audioFormat);
                   targetDataLine.start();
                   AudioSystem.write(
                         new AudioInputStream(targetDataLine),
                         fileType,
                         audioFile);
                 }catch (Exception e){
                   e.printStackTrace();
                 }//end catch
               }//end run
             }//end inner class CaptureThread
    }

  • Playing a wav file (byte array) using JMF

    Hi,
    I want to play a wav file in form of a byte array using JMF. I have 2 classes, MyDataSource and MyPullBufferStream. MyDataSource class is inherited from PullStreamDataSource, and MyPullBufferStream is derived from PullBufferStream. When I run the following piece of code, I got an error saying "EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9108b2, pid=3800, tid=1111". Any idea what might be the problem? Thanks.
    File file = new File(filename);
    byte[] data = FileUtils.readFileToByteArray(file);
    MyDataSource ds = new MyDataSource(data);
    ds.connect();
    try
        player = Manager.createPlayer(ds);
    catch (NoPlayerException e)
        e.printStackTrace();
    if (player != null)
         this.filename = filename;
         JMFrame jmframe = new JMFrame(player, filename);
        desktop.add(jmframe);
    import java.io.IOException;
    import javax.media.Time;
    import javax.media.protocol.PullBufferDataSource;
    import javax.media.protocol.PullBufferStream;
    public class MyDataSource extends PullBufferDataSource
        protected Object[] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNKNOWN;
        protected PullBufferStream[] streams = null;
        protected PullBufferStream stream = null;
        protected final byte[] data;
        public MyDataSource(final byte[] data)
            this.data = data;
        public String getContentType()
            if (!connected)
                System.err.println("Error: DataSource not connected");
                return null;
            return contentType;
        public void connect() throws IOException
            if (connected)
                return;
            stream = new MyPullBufferStream(data);
            streams = new MyPullBufferStream[1];
            streams[0] = this.stream;
            connected = true;
        public void disconnect()
            try
                if (started)
                    stop();
            catch (IOException e)
            connected = false;
        public void start() throws IOException
            // we need to throw error if connect() has not been called
            if (!connected)
                throw new java.lang.Error(
                        "DataSource must be connected before it can be started");
            if (started)
                return;
            started = true;
        public void stop() throws IOException
            if (!connected || !started)
                return;
            started = false;
        public Object[] getControls()
            return controls;
        public Object getControl(String controlType)
            try
                Class cls = Class.forName(controlType);
                Object cs[] = getControls();
                for (int i = 0; i < cs.length; i++)
                    if (cls.isInstance(cs))
    return cs[i];
    return null;
    catch (Exception e)
    // no such controlType or such control
    return null;
    public Time getDuration()
    return duration;
    public PullBufferStream[] getStreams()
    if (streams == null)
    streams = new MyPullBufferStream[1];
    stream = streams[0] = new MyPullBufferStream(data);
    return streams;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.media.Buffer;
    import javax.media.Control;
    import javax.media.Format;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.PullBufferStream;
    public class MyPullBufferStream implements PullBufferStream
    private static final int BLOCK_SIZE = 500;
    protected final ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
    protected AudioFormat audioFormat = new AudioFormat(AudioFormat.GSM_MS, 8000.0, 8, 1,
    Format.NOT_SPECIFIED, AudioFormat.SIGNED, 8, Format.NOT_SPECIFIED,
    Format.byteArray);
    private int seqNo = 0;
    private final byte[] data;
    private final ByteArrayInputStream bais;
    protected Control[] controls = new Control[0];
    public MyPullBufferStream(final byte[] data)
    this.data = data;
    bais = new ByteArrayInputStream(data);
    public Format getFormat()
    return audioFormat;
    public void read(Buffer buffer) throws IOException
    synchronized (this)
    Object outdata = buffer.getData();
    if (outdata == null || !(outdata.getClass() == Format.byteArray)
    || ((byte[]) outdata).length < BLOCK_SIZE)
    outdata = new byte[BLOCK_SIZE];
    buffer.setData(outdata);
    byte[] data = (byte[])buffer.getData();
    int bytes = bais.read(data);
    buffer.setData(data);
    buffer.setFormat(audioFormat);
    buffer.setTimeStamp(System.currentTimeMillis());
    buffer.setSequenceNumber(seqNo);
    buffer.setLength(BLOCK_SIZE);
    buffer.setFlags(0);
    buffer.setHeader(null);
    seqNo++;
    public boolean willReadBlock()
    return bais.available() > 0;
    public boolean endOfStream()
    return willReadBlock();
    public ContentDescriptor getContentDescriptor()
    return cd;
    public long getContentLength()
    return (long)data.length;
    public Object getControl(String controlType)
    try
    Class cls = Class.forName(controlType);
    Object cs[] = getControls();
    for (int i = 0; i < cs.length; i++)
    if (cls.isInstance(cs[i]))
    return cs[i];
    return null;
    catch (Exception e)
    // no such controlType or such control
    return null;
    public Object[] getControls()
    return controls;

    Here's some additional information. After making the following changes to MyPullBufferStream class, I can play a wav file with gsm-ms encoding with one issue: the wav file is played many times faster.
    protected AudioFormat audioFormat = new AudioFormat(AudioFormat.GSM, 8000.0, 8, 1,
                Format.NOT_SPECIFIED, AudioFormat.SIGNED, 8, Format.NOT_SPECIFIED,
                Format.byteArray);
    // put the entire byte array into the buffer in one shot instead of
    // giving a portion of it multiple times
    public void read(Buffer buffer) throws IOException
            synchronized (this)
                Object outdata = buffer.getData();
                if (outdata == null || !(outdata.getClass() == Format.byteArray)
                        || ((byte[]) outdata).length < BLOCK_SIZE)
                    outdata = new byte[BLOCK_SIZE];
                    buffer.setData(outdata);
                buffer.setLength(this.data.length);
                buffer.setOffset(0);
                buffer.setFormat(audioFormat);
                buffer.setData(this.data);
                seqNo++;
        }

  • Playing a .wav file loaded from filesystem

    I am trying to play a local file and getting:
    Have not been able to load: MediaError: media unsupported:com.sun.media.jmc.MediaUnsupportedException: Unsupported media: file:///product-name/lib/buzzer.wav
    I get a different exception if the file does not exist, so the message seems to be saying it has a problem with .wav files, or this .wav file in particular??
    I am using 1.3, but this page is for 1.2:
    http://download.oracle.com/javafx/1.2/tutorials/media/format.html
    There doesn't seem to be an equivalent page for 1.3. If 1.2 rules still applied then for Audio on Vista the resolution under 'Supported Media Codecs' is "All the audio formats supported by Windows Media Player". And [this file|http://www.strandz.org/javafxstreaming/buzzer.wav] certainly works on Windows Media Player.
    package def alarmSoundPlayer = MediaPlayer
        media: makeFilesystemMedia( "file:///product-name/lib/buzzer.wav");
        autoPlay: false;
        repeatCount: 1;   
    public function makeFilesystemMedia( fileName: String): Media
        var music = Media
            source: fileName
            onError: function( mediaError: MediaError)
                println( "Have not been able to load: {mediaError}");
        return music;
    }

    It might not be the issue, but the file:///product-name/lib/buzzer.wav is strange. Aren't you missing a drive specification? (might not be necessary if on the same disk, but still unusual). Is the "product-name" at the root of the disk? When in doubt of URL syntax, you can still use a path to initialize a File object, then get toURI().toURL() to have a normalized URL.
    HTH.

Maybe you are looking for

  • Problem with Socket and dynamic IP

    The problem I have is the following: My domain has a dynamic IP, so after the IP changes the s.accept() does not work any more! try // Point 1 *) ServerSocket s = new ServerSocket(portNumber); for(;;) Socket incoming = s.accept(); // does not work af

  • My phone won't update it keeps saying its not connected to the Internet and it is. And now my apps won't work?? Help

    MY phone needs updating and it won't let me. It keeps saying its not connected to the Internet and i

  • How to raise the exception in function module

    Dear abaper's.                I am creating a Function module .In that in' EXCEPTION' Tab i am giving 3 exception .1.NO_DATA_FOUND 2.NO_PRINTER_FOUND 3.SMARTFORM_INTERFACE_NOT_FOUND. In my coding if this condtion matches i want to raise this exceptio

  • Oracle 8.1.7 setup fails

    When I try to start the Oracle 8.1.7 install (On an NT4 platform), I get a Java error in jrew.RPT as follows: Exception code: C0000005 ACCESS_VIOLATION Is this an Oracle issue?

  • Compatibility PLSSS READ!!!

    heloo, i have the mobo msi 880gm-e41 and the processor AMD phenom II x4 965 which have 125w and  the mobo supports only 95w . is there any update for bios or could i put the proc on the mobo even though the TDP is with 30w higher. will the mobo see m