Storing audio file

Hi, I read on the mysql forum that it is easier to store the filename of the audio file in the database and then retrieve that filename from the server.
I have been using this code to try and do this:
http://www.java2s.com/Code/Java/Servlets/Sendmp3.htm
however i'm not sure about the context stuff. What do I need to do to tell the servlet where the file is on my server?
And what directory should the audio files go in on the server ie web-inf, lib, classes etc.
thanks

melbee wrote:
however i'm not sure about the context stuff. What do I need to do to tell the servlet where the file is on my server?Just use the full absolute path to the file.
And what directory should the audio files go in on the server ie web-inf, lib, classes etc.That's up to you. Just pick a directory outside the web application so that when you redeploy it, you don't erase all the audio files.

Similar Messages

  • Storing audio files in tables

    i need some information about storing audio files.
    is it possible to store audio files in blob column.
    in a tbale column data type is blob.in that column is there any possiblity to store audio file.

    You can store arbitrary binary data in a BLOB column, yes. That includes audio files, video files, images, etc.
    That being said, depending on what you are doing with the files, you may want to use interMedia and store the audio data in ORDAudio columns.
    Justin

  • Storing audio file in SQL Server

    Hi All,
    I need to store the recorded .wav file into the SQL Server. Can anyone give me the code that achieves this functionality.
    Thanks in Advance

    I need to store the recorded .wav file into the SQL Server. Can anyone give me the code that achieves this functionality.Do your own work. This is a forum for answering questions, not a code-request hotline...

  • How can I see previously stored tunes no longer on my computer? Where are iCloud audio files?

    Maybe my question has an answer too "obvious" for me to see it.  But lately I've become aware of tunes that, for one reason or another, are not showing in my iMac's iTunes program. I went to System Preferences and clicked on "iCloud."  Immediately, I saw how to check iCloud for the following files and documents: Mail, Contacts, Calendar, Notes, Safari (not sure what this category could be for--seeing what was on the web at some prior point in history?), Photo Stream, Documents & Data, Back to My Mac, Find My Mac.
    In other words, going to iCloud appears to reveal categories for all of your iCloud content EXCEPT your music files.  I know about iTunes Match, and I think I like it, now that I've gotten used to a few of its quirks.  But certainly there are times when the owner of downloaded, commercial audio files (i.e. Tunes) will not have them on his computer.  And certainly there must be a way for me to see what I've previously stored in the Cloud--if only to remind myself of the music I've purchased and have available to me.
    I may be missing something about the whole iCloud concept.  Is there a way for me to see tunes I've previously stored in the iCloud but no longer have on my computer?  (I'm always careful not to delete tunes from my iTunes program unless I see 2 or more identical files appearing on my computer).
    Thanks for any directions to the iCloud musical holdings / archives--or clarification of any misunderstandings.
    Cap
    (I see that I'm currently running OS 10.8.2.  I have only 500 gigs of memory, and my music collection is so larg, I'm almost dependent on being able to access songs in the iCloud.  Next time, I'll certainly pony up for the largest memory Apple offers on an iMac.)

    They are not showing up in Lightroom at all. I already deleted them.
    When I try to import them again into Lightroom it wants to add another 2012 folder to wherever I am trying to insert them and then it does the month/day folder when it already has the month folder it should automatically go into and not be adding a seperate 2012 folder first.
    I can't even get it to do the above right now. Now all it does is it wants to make this seperate 2012 folder with the month/day folders but has little boxes beside each folder showing that there are no images to import. The images do show up on the import screen but they are all darkened and unchecked. When I click the proper folder to import them they come on bright and have little boxes checked, but that lasts for less than a second before it decides they are not new. They are new images, I deleted them all out of Lightroom, and probably missed deleting some through Lightroom but instead deleted them straight from the folder outside of Lightroom. This is what is probably causing me such grief and I have found nothing in my searches to tell me how to correct this. *sigh*

  • Linking Soundtrack Pro to audio files stored on an external drive

    FCP user but using SP for the first time. I have the large sized audio files stored on an external drive which at the moment I can't access from within SP. Just wondering the best way to link to the audio files?

    I actually use the 'save as' function that consolidates all the audio clips and move them onto a separate drive. I'm doing a lot of large projects that have more clips than are actually used. Consolidation means I can move and work on another machine. And in the end it's easier to archive this single directory of files. Works for me, especially because sometimes the audio sources are scattered in too many places on my system.

  • Play or download a WAV audio file stored in a BLOB

    Hi all, I was hoping someone could point me to the proper steps to take to download or play a WAV audio file I have stored in a BLOB column (from APEX). I'm sure it's probably pretty easy, but I can't quite find exactly the right approach.
    Basically all I want to accomplish is show a report, standard or IR, that will show some kind of link if there is a non-null BLOB value for a column -- the column only stores WAV audio files. I'd like the link (image, button, whatever) to either play the audio file directly (using whatever desktop player, plugin whatever the user might have), or at least prompt to download the WAV file for playback later.
    Any advice on how to easily do this?
    Thanks very much
    David

    Se this link: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/up_dn_files.htm#CIHDDJGF
    Thank you,
    Tony Miller
    LuvMuffin Software
    (281) 871-0950

  • Storing and linking audio file

    The only way that I can figure out how to store a file on my iPhone is via Google Drive. I move to the public folder, turn link sharing, copy the link and then paste it here: https://docs.google.com/file/d/0B7SHK5853zdOZGZ0ZlpkMzNDSkk/edit?usp=docslist_ap i

    For what ever reason, the link opens up a new window but no there is no sound when the play button is hit. I've also noticed that the link location being copied (for the audio file) starts with "docs.google.." This makes no sense cuz its an audio file and not a documentation. What am I doing wrong? Also, when in Google Drive, an error message pops ups saying that the file is not supported and to pick an alternate program to play the file.
    What am I doin wrong? Is Google drive the only way to store files via the iPhone (whether it be internally or externally?

  • Using The Same Audio Files On Multiple Platforms

    When I import new audio into logic - often it will say that is creating wave forms for the display.
    Q: I notice that the audio files on disk do not show an altered modified date - so where are these wave form displays being saved - on the audio file or inside the logic song?
    Q: I am interested in possibly going back and forth between logic and Pro tools LE - and at different times using the same audio files for both platforms. Assuming I am not doing any destructive editing - is it OK to use the same set of files for both platforms - or do I need to make duplicates (I'd rather not)? Also, how does this wave form display get dealt with by going back and forth between the two platforms?

    A: the waveform overlays are stored in separate,
    temporary files - *.ovm files or something, but my
    memory is fuzzy on that for now. The original audio
    files are not modified in any way.
    Hmmm... I've wondererd about this, too, and as best I can tell, Logic DOES modify the original files.
    I just imported some stereo interleaved AIF files into a project (with "copy external audio files to project folder" disabled), and I couldn't see any evidence of waveform creation--a disk search by date revealed nothing looking like waveform overviews, and there were no modifications to the AIF file dates.
    So... the next time I imported some AIF files, I checked the file sizes before the import...
    Sure enough, the files got bigger by about 100K after being imported into a Logic session, even though the file's timestamps were not changed.
    Looks like maybe Logic does write the waveforms into the files themselves ?
    On a related note, the manual suggests that it's possible to change the "copy external audio files to project folder" setting after creating a project, but I haven't found this anywhere other than File->New... anyone know ?
    Thanks!
    James
    [email protected]
    Dual 1.25 G4   Mac OS X (10.4.8)  

  • HOW CAN YOU PROCESS AN AUDIO FILE IN LABVIEW?I NEED TO TIME-PITCH SCALE IT

    hello guys.
    can you insert an audio file into labview for further processing?i need to get an audio file (stored on my computer) and further process it for time-pitch scale.does anybody know how?any pointers will much be appreciated.
    regards
    alex

    hi there
    open the "Graphics & Sound" palette from the functions menu to use vis for reading/Writing wavefiles, search the examples shipped with LV for first steps. use the VIs in the "Analyze" functions palette to modify the data.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Is there any way of storing audio- / video-elements in the browser cache in Safari in iOS?

    Hi there,
    I'm desperatly trying to find a solution for a web application that has to run on an iOS-Safari (e.g. on iPad, iPad2 and iPhone 4):
    It's a web-application I wrote some time ago which lets the user search for and listen to short music samples (MP3s, all from ~100 kB to ~1.5 MB). The audio player is Flash-based, so it doesn't work on iOS-devices at the moment and I'll have to implement an alternative either in HTML 5 or with a "direct" QuickTime-object.
    Both my HTML 5- and QuickTime-alternatives for iOS-devices work fine so far, but there's one major problem I can't find a solution to:
    Unlike Flash and most HTML 5-capable browsers on Windows Safari on my iPad 2 won't store the audiofiles in the browsercache after loading and playing them - neither with HTML 5 audio-tags nor with a QuickTime-Object. Every time I load an audio file for playback from the server (with JavaScript-Commands, so without changing or reloading the whole page) it's downloaded again completely.
    If a user listens to sample A and then to sample B, Safari forgot about having played sample A and downloads the whole MP3 again if I like to listen to it again. On a mobile device with a potentially narrow bandwith this behaviour is out of the question.
    Is there a way of storing downloaded audiofiles opened by HTML 5 or QuickTime in Safari's cache so it remembers already having downloaded them  -  like it caches usual "web-files" like HTML, CSS or JPEG-images, or like Flash stores such objects in its local cache?
    The Application Cache with a manifest-file is not an option - this only seems to work if the browser is offline, for example if the iOS-device is in "Airplane"-Mode.

    Yes, I watched it. It contains interesting stuff I have to admit I didn't know yet, but unfortunately I still can't find a solution to my problem:
    My first attempt was trying to use the Application Cache with a manifest file - although this is not really the intended purpose for my application... I don't have a static set of files that I want to have cached or "available offline"  -  I just want to cache MP3s which the user has played yet.
    It should be possible to use a "dynamic manifest": One that is parsed by the Apache PHP module and listing the files played so far from a PHP session - something like this:
    <?php
    session_start();
    header("Content-Type: text/cache-manifest, charset=UTF-8");
    echo "CACHE MANIFEST\n";
    foreach($_SESSION['playedSongs'] as $song)
        echo $song."\n";
    ?>
    So whenever a song is loaded / played, I could access the PHP session with AJAX, insert the filename of the played file and manually update the manifest by calling window.applicationCache.update().
    There are two problems with this:
    First of all: It doesn't work. And I didn't even get to the point of trying to use a dynamic manifest:
    <!DOCTYPE html>   
    <html manifest="cache.manifest">
        <head>
            <title>Test</title>
            <script type="text/javascript">
            function playStuff(id)
                if(id == 1)
                    window.document.getElementById("audio").innerHTML = '<audio controls preload="automatic" autobuffer><source src="song01.mp3" type="audio/mp3" /></audio>';
                else if(id == 2)
                    window.document.getElementById("audio").innerHTML = '<audio controls preload="automatic" autobuffer><source src="song02.mp3" type="audio/mp3" /></audio>';
            </script>
        </head>
        <body>
            <div id="audio"></div><br />
            <br />
            <input type="button" value="playStuff(1)" onclick="playStuff(1)" />
            <input type="button" value="playStuff(2)" onclick="playStuff(2)" />
        </body>
    </html>
    The cache.manifest looks like this:
    CACHE MANIFEST
    song01.mp3
    song02.mp3
    and is properly returned from Apache as "text/cache-manifest" by adding
    AddType text/cache-manifest manifest
    to the .htaccess of this directory.
    The Apache-logs clearly show that the Safari (respectively "AppleCoreMedia") doesn't care about the application cache when it comes to audio-files:
    Safari itself seems to acknowledge the manifest and indeed preload the files:
    192.168.0.40 - - [23/Jul/2011:12:45:46 +0200] "GET /websql/index2.html HTTP/1.1" 200 2619 "-" "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
    192.168.0.40 - - [23/Jul/2011:12:45:46 +0200] "GET /websql/cache.manifest HTTP/1.1" 200 79 "-" "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
    192.168.0.40 - - [23/Jul/2011:12:45:46 +0200] "GET /websql/cache.manifest?%3E HTTP/1.1" 200 79 "-" "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
    192.168.0.40 - - [23/Jul/2011:12:45:46 +0200] "GET /websql/song02.mp3 HTTP/1.1" 200 120525 "-" "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
    192.168.0.40 - - [23/Jul/2011:12:45:46 +0200] "GET /websql/song01.mp3 HTTP/1.1" 200 120525 "-" "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; de-de) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
    Up to this point I did nothing but opening my test-application in Safari.
    Playing song01.mp3:
    192.168.0.40 - - [23/Jul/2011:12:47:25 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 2 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:47:25 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:47:25 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:47:25 +0200] "GET /websql/song01.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:47:25 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:47:29 +0200] "GET /websql/song01.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:47:29 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    Playing song2.mp3:
    192.168.0.40 - - [23/Jul/2011:12:48:04 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 2 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:04 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:04 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:04 +0200] "GET /websql/song02.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:04 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:05 +0200] "GET /websql/song02.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:05 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    Playing song1.mp3 again:
    192.168.0.40 - - [23/Jul/2011:12:48:38 +0200] "GET /websql/song01.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:38 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:38 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:38 +0200] "GET /websql/song01.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:38 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:40 +0200] "GET /websql/song01.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:48:40 +0200] "GET /websql/song01.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    Playing song2.mp3 again:
    192.168.0.40 - - [23/Jul/2011:12:49:12 +0200] "GET /websql/song02.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:49:12 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:49:12 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:49:12 +0200] "GET /websql/song02.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:49:12 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:49:13 +0200] "GET /websql/song02.mp3 HTTP/1.1" 304 - "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    192.168.0.40 - - [23/Jul/2011:12:49:13 +0200] "GET /websql/song02.mp3 HTTP/1.1" 206 120525 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; de_de)"
    Every file is downloaded again completely when playing it. So "AppleCoreMedia" (whatever this may be exactly, the QuickTime-plugin that is triggered by the HTML 5 audio-element I suppose?) either doesn't have access to the Application Cache or simply just doesn't realize the files in it. So if I switch my iPad to "Airplane Mode" now, the Safari is unable to access / load / play the files.
    I also tried using a QuickTime-object instead of an HTML 5 audio-tag (as far as I know HTML 5 audio and video in Safari always use QuickTime?) and controlling it with something like:
    document.movie1.SetURL('song02.mp3');
    Nothing changes, it's just like using HTML 5 audio and everything gets downloaded again when loading/playing it.
    And even if this would work there'd still be a problem:
    To properly implement that I would have to load the MP3-file in the Application Cache before playing it. When doing this it seems impossible to show a "real" progress: The ProgressEvent that is fired from the Application Cache after updating it doesn't seem to provide any information about data loaded so far and the complete size of a file. It's just "File 1 from 2" and so on, and not a "real" progress where I could determine something like: "100 kB of 1.2 MB loaded" as I can with the audio-element.
    All the other storage-approaches like Web SQL / Web Database or Local Storage are no help either:
    I don't see any way of getting the MP3 data into Local Storage or Web Database or getting it out again to play it. The HTML 5 Canvas-element has a toDataURL()-function to produce a Base64-encoded representation and use it for storage  -  the Audio-element doesn't seem to have anything like this.
    My last really "dirty" approach was trying to load "manually" Base64-encoded-MP3s with a combination of AJAX and PHP: A PHP-script outputs a Base64-representation of a MP3-file and is loaded by AJAX, so I could store the Base64-representation e.g. as Local Storage or in Web Database:
    <?php
    $infile = 'song01.mp3';
    $contents = file_get_contents($infile);
    $base64 = base64_encode($contents);
    $audio = 'data:audio/mp3;base64,'.$base64.'';
    echo $audio;
    ?>
    I tried using the resulting AJAX responseText as the source-argument in an audio-source-tag. Suprise: It doesn't work in Safari on my iPad 2, the player just fails to load the "file", although this works fine in Chrome on Windows. Possibly a size limitation for Base64-URIs on Safari / iOS.
    And again: Even if this was working in iOS/Safari I don't know of a way to determine a real progress from an AJAX-query...
    The last thing I could think of is not replacing the audio- or source-tags when loading a song but leaving them in the DOM-structure, check if it's already there when a song is loaded and just add a new audio-tag if a song hasn't been loaded yet.
    This solution would be my last resort: I'd have to rewrite nearly the whole application to completely operate on JavaScript / AJAX to stay on one site in the browser - else the "cached" audio data would be lost again when changing to another site in Safari.
    Furthermore I think there'll be a small cache limit somewhere when doing this?
    Any ideas?

  • IMovie 08 - Problems referencing audio files.

    I have just finished creating a new movie in iMovie 08. The problem I am having is iMovie can't find the audio files I used as a soundtrack for the movie. These audio files are located in my iTunes library. The catch is that all of the music in my iTunes library is stored on another computer, so all of the music files are referenced.
    The problem began when I had to turn off the other computer for updates, while I still had iMovie open. Mistakenly I forgot to eject the other computer as it was connected as a server to my Mac. Of course iMovie can no longer find the audio files because they are offline.
    Well, when I turned the other computer back on and remounted it as a server, iMovie would no longer play the audio files in my movie. I can still access them through the music tab in iMovie, and they play perfectly.
    I have even restarted iMovie and my Mac multiple times.
    I really don't want to have to redo all of the music for my movie. If anyone can tell me how to "re-reference" audio files in iMovie, I would greatly appreciate it.
    Thanks!

    Try post on the iMovie forum is my best advice.
    Regards
    TD

  • Playing an audio file in the mainBundle through an NSDictionary

    I have an audio file audio1.caf in my mainBundle.
    In the mainViewController I want to use an NSDictionary with audio1.caf being the object for the key audio1Key
    In my detailViewController I want to have the user tap a button and the audio plays.
    This sounds like a very simple  thing but search as I might I can't seem to find the answer.
    Here is the code for my dictionary in the mainViewController
    if ([vc isKindOfClass:[detailViewController class]])
            detailViewController*lcVC =(detailViewController*)vc;
    NSMutableDictionary *mydDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                           @"audio1.caf",@"firstAudioKey",nil];
    lcVC.myDictionary = myDictionary;  
        [self.navigationController pushViewController:vc animated:YES];
    Then in my detailViewController I use
    -(IBAction)buttonPressedid)sender {
        NSError *error = nil;
        NSString *firstAudio = [myDictionary objectForKey:@"firstAudioKey"];
        NSURL *url = [NSURL fileURLWithPath:firstAudio];
        theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];
        theAudio.delegate =self;
        theAudio.volume = 1.0;
        theAudio.numberOfLoops = 0;
         NSLog (@"%@",url);
        if ([theAudio isPlaying]){[theAudio pause]; }else{[theAudio play];}}
    So I know things are getting passed by the dictionary ok because other things are showing up (text, and other audio) stored in the documents directory.
    However this shows that the url path is audio1.caf --file://localhost/ So I am gettin the name of the objectForKey but not the whole path.  I think I need to look in the mainBundle and get the path to the file but I cannot seem to be able to figure this out.  I have looked all over the internet for a discussion, or tutorial. but no luck.  Can someone point out where I'm going wrong or suggest where to look.  Thanks

    I finally figured this out DUH!  Here's my code if anyone wants to look at it and tell me if I'm doing something wrong.
    -(IBAction)buttonPressed2:(id)sender {
        NSError *error = nil;
        NSString *someAudio = [[NSBundle mainBundle]bundlePath];
        NSString *audioPath = [someAudio stringByAppendingPathComponent:[myDictionary objectForKey:@"firstAudioKey"]];
        NSURL *url = [NSURL fileURLWithPath:audioPath];
        theAudio7 = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];
        theAudio7.delegate =self;
        theAudio7.volume = 10.0;
        theAudio7.numberOfLoops = 0;
        NSLog (@"%@",firstAudioKey);
        if ([theAudio7 isPlaying]){[theAudio7 pause]; }else{[theAudio7 play];}}
    Thanks to everyone.

  • Peak Audio Files

    Having real problems with peak audio generation.  Lots of projects that I open or re-open that where created in any version of Premiere CC (including 2014) have the wave form missing.  I have tried clearing the media cache to force Premiere to re-generate the peak files but with no luck.  I would rather not use render and replace as a solution to this is there an easy way to get premiere to regenerate the peak audio files manually? or at the very least an easy way delete any cache files on my system in order for prem to automatically regenerate the peak audio files?  Without a wave for it is making it very difficult to edit the audio in my projects
    In terms of the system I am running if that helps shed any light on the issue its a new 12 core MacPro and this is a clean install of Premiere Pro CC 2014 without any previous versions lurking around on the system.  All my projects are stored on a SAN but the media cache is pointed to the local machine rather than set to store stuff with each project.

    There are Preferences for this.
    Check the Audio prefs panel and the Media panel.
    You can turn on/off PEK file generation and enable these to be stored in a specific location.
    Using a SAN, I would adjust the Media prefs to store cahce files alongside the media.

  • Where are the audio files in an iPad mini?

    Hi.
    Where are the audio files in an iPad mini? (iTunes, Garage band...)
                                                                                                                         W.W.

    Thanks Jonathan.
    To be more specific. After you record an audio file with Garageband on the iPad mini where is it stored, to be copied, transfired?
                                W.W.

  • Location of audio files and sessions

    Hi,
    This seems like such a basic question, but I can't figure out how to do this. I've been a Pro Tools user for the past several years, but I'm recently getting into Logic as well. I have 2 internal drives, one for my system files, and one for audio files/sessions. However, when I first installed Logic, it defaulted all the files to be saved onto my main hard drive (in Music\Logic). I want all of these files to be saved to my second drive, which contains all of my audio files. How do I change the location that these go into automatically? For now, I just dragged that folder over to my second hard drive and open the sessions off of that...but every time I create a new session, it tries to save it into that folder on the main drive. I have to manually browse to my second hard drive. I want it to automatically come up on my new path. How do I do this? Thanks for the help.

    OK, so I'm a bit confused. I think I may have messed some things up. I dragged my Logic folder to my second hard drive as that's where I want everything stored. One of the sessions is in process still, and I worked on it some today. I opened it from the folder on the second drive however, to assure that everything would be saved to that path when I saved it. However, for that session, when I go to project settings, recording, core audio recording folder....it has the ORIGINAL location (the primary hard drive). Are all the audio files still being stored to the original drive? All I want to do is change the default setting to be on my secondary drive and all sessions/audio data go to a Logic folder on that drive.

Maybe you are looking for