Embed wav file in executable for playing

I would like to embed a wav file in an exectubale (an array of wav files would be best) so that I can play that sound.
I want to distribute one file (the executable) that can play an array of audio tracks from wav files.

You can either store the wav data in a constant like and array of clusters, each cluster would have the wave data (8 or 16 bit mono or stereo: which are 1-d or 2-d arrays of intergers) plus the config info rate resolution or you can store an array of references to wave file paths.  I would go with the second version since you dont bind the data at compile time, allowing for the application to change "sound tracks" without recompiling.  When you build the application you can specify these wave file as support files and lock their paths (probably ./application/data) you can even store the path in the registry if needed.  Good luck.
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA

Similar Messages

  • Sync'd .wav files on iPod not playing

    I have iTunes version 8.0.1.11, iPod version 1.3 fifth generation w/video. I have two .wav files on iTunes that playing perfectly. #1 .wav file=36.6 MB, #2 .wav file=4.8 MB. Sync onto iPod appears fine. The bar at bottom of iPod page indicates that 41.4 MB has been sync'd onto iPod. On the iPod itself, all the sub-menus identify the .wav files present on the iPod. However, when I push the play button on iPod the play page comes up for each .wav file but nothing happens. The progress bar at bottom of play page has no movement, no increasing green bar. I have tested the iPod by sync'g part of an audiobook onto the iPod. No problem. After I attempt to play the .wav file then play page goes black. Yesterday I had no problem sync'g a similar .wav file onto same iPod. Thank you.

    Try converting the files to something else or even "converting" them to WAV files again forcing iTunes to create new copies. Then sync those and see if it works any better. A Wav to Wav "conversion" will be lossless. Or do a WAV to AIFF (also lossless) conversion and see if the AIFF files play.
    Good luck,
    Patrick

  • Placing 24/192 WAV files on iTunes for playback through Wadia 170 iTranspor

    I record live music on a Sound Devices 722 digital audio recorder at 24/192 as WAV files. I can import the 24/192 WAV file into iTunes on a Mac and the bit rate is displayed as 9216 kps. This makes sense since 24x192=9216. When I click on the song in iTunes it plays back at the correct tempo.
    I bought a Wadia 170 iTransport since it says it will output bit perfect digital files. I'd love to hear my recordings this way over my sound system. I understand that this would chew up drive space real fast on an iPod. However . . .
    I can't get my iPod to accept the 9216 kps song files. I went to set iTunes / Preferences / Advanced / Importing to WAV but the options for sample rate only go up to 48.0 kps and the bit rate up to 16-bit.
    Any thoughts or suggestions on how to overcome this will be appreciated.

    Hi,
    I'm from germany so no 'best buy' but I think I will lock around sleeve/bag for a different product with same measures. Any tip?
    The clear plastic case is not what I want. I would like to use the player without such protections. I just want a sleeve to protect the player while its in my jacket/pants.
    Btw, i have bought this version: Creative Zen (maybe european version?). I also doesn't seem to have your mentioned sleeve. I also couldn't find it on the website.
    Anyway, thank you,
    Chris

  • Corrupt wav files in Adobe but play fine in other apps

    I have some old projects that have been backed up several times.  The problem is some of the sound files appear corrupt when I load them into Adobe Audition.  The sound plays all distorted with VERY LOUD clicks/pops in it.  However, I can play the same files just fine in any standard media player (Winamp, WMP, VLC player)
    I tried opening the project in the new Audition but same thing happens.  I've also tried the "Open As" option and specifying what windows reports as it's sample rate etc but it comes out the same.  Most of the other wav files in the projects work just fine, but one here and there is like this and is preventing me from remixing anything.  Worst case scenario I suppose I could play the file in winamp and record it but then I'd have to match the timing up and everything and I just don't have the motivation to do that on all these projects.
    http://home.comcast.net/~chicken3/Track17.zip
    This is one of the files if somebody wants to take a moment and look at it.  I just don't understand why winamp and all of them can play it fine if it was corrupt in any way, other than VLC which I know doesn't need file headers to play properly most of the time.
    Below is a pic of what the wave looks like in Audition.  Oh, and Reaper reads the files just fine as well, if I hadn't trimmed all my wav files down i'd just paste the whole project into Reaper and remix but unfortunately I trimmed all the files already.

    Well as I said it plays in standard media players such as Winamp (which generally will not play a file with a corrupt header or any sort of problem like that)  However I checked it out in that app you mentioned and the results seem normal to me.  I've tried Open As in Audition and I can choose the 44.1KHz and 32 bits but it opens the same as it did before.  So far I've only noticed 32 bit files with this problem but it's possible it has nothing to do with that.  Again, the file plays fine in all standard players, and Reaper and other audio apps open it just fine.  Audition will not.
    Format                           : Wave
    File size                        : 36.8 MiB
    Duration                         : 1mn 49s
    Overall bit rate                 : 2 822 Kbps
    Audio
    ID                               : 0
    Format                           : PCM
    Codec ID                         : 1
    Codec ID/Hint                    : Microsoft
    Duration                         : 1mn 49s
    Bit rate                         : 2 822 Kbps
    Channel(s)                       : 2 channels
    Sampling rate                    : 44.1 KHz
    Resolution                       : 32 bits
    Stream size                      : 36.8 MiB (100%)
    Edit: Downloaded goldwave trial just to see, it opens flawlessly in Goldwave.  I suppose I can try resaving the files from within goldwave and see what happens...Audition is really pissing me off.

  • Selecting WAV files in iTunes for AAC conversion

    I've been told in another thread by Ed, a Windows iTunes user, that I can select a WAV song file in the iTunes library, right-click it, and the "Advanced" menu will have the "Convert Selection to XXX (whatever you designate in preferences)" option. However, my Mac OS X 10.4.8 was not able to do this -- there is an "advanced" pull-down menu, but the "convert selection to AAC" choice contained therein is NOT highlighted. I wonder why?

    Not sure exactly how the rebuild was done, but if anything didn't get added, just go ahead and add it. This can be done either by dragging the files into the iTunes pane, or by using the iTunes command File > Add Folder to Library.
    It is also possible that the files are corrupted. This would be unusual with music WAVs (although not uncommon on voice recorder WAVs). If you are concerned with a specific file, right-click its file icon and choose Open With > iTunes. If it is compatible and not corrupted, it will start playing, and will be added to the iTunes library if it is not already in. But if it gives you the silent treatment, the problem is in the file.

  • Quicktime audio file to CD for playing on a CD Player can you help

    I have a quicktime audio file (which seems to show as a movie?) which I have on my desktop.  I want to burn it to a CD so that my uni tutor can listen to it on a CD player.  Can you help.  I get all the way to the burn thing in disk utilities, but it won't burn.  I'm thinking it needs to be saved in another format?

    Oh, thank you Martin.  I've cracked it right the way to burning the file, but it doesn't play on a CD player.  I definitely brought it through iTunes, but it shows on the CD as a Quicktime file.  I think this may be the problem.  Liz

  • Why cant I play embeded wave files in firefox but I can in explorer?

    I just embedded a wave file (Godsmack Voodoo) for my website & saved it but when I goto run teh intro no sound, But explorer plays it no problems? What is wrong with Firefox 9.01 & playing the embedded sounds?

    Can you post a link to a public page?
    Which code are you using to play that WAV file?

  • Does Firefox play .wav files on Quicktime 10 with an iMac with Snowleopard?

    I upgraded to Snowleopard, on my iMac desktop. On Safari, the .wav files (voicemail) from work play (on Quicktime 10), but on Firefox 5.0.1 they don't. The message says I need an additional plug in, but they are for making videos and listening to audio visualizations, and making closed captionings. I tried two of them anyway (Divx and Express Burn) and they didn't work. Now I am having trouble getting rid of the plugins I tried. How can I get it to work on Firefox 5.0.1? I called Apple, they said to ask you.
    Sincerely,
    Windancer

    http://developer.apple.com/internet/ieembedprep.html

  • How do I get Logic to stop looking for a specific .wav file?

    I recently imported a project I started in GarageBand into Logic Pro.  Once in Logic, I edited and added to the project then saved it as a Logic project file.  I deleted the original project from GarageBand.  Now, when I open the Logic file, Logic is still looking for .wav files that were used in the original GarageBand file.  None of these files are actually needed in my project.  Is there a way that I can get Logic to stop looking for these .wav files?
    Thanks for any help!

    Do a cleanup.
    http://documentation.apple.com/en/logicpro/usermanual/index.html#chapter=7%26sec tion=9%26tasks=true

  • Feature Request - Play .WAV files in Bridge Messages

    I just found an interesting feature,
    My Corporate Voicemail is emailed to me in .WAV files.  I can play them on my 9550 but the Bridge Messages on the PB report unsupported file type.
    I'm a little surprised by this but hope it is just an update away...

    i would like to see this as well.  i too have a 9550 and *.wav files sent to me from my office voicemail.
    - When life hands you lemons, find someone with a paper cut.

  • Blackberry 8330 - can't play wav files - Red X and "unknown error occured"

    I have a client that started having an issue with her blackberry after we moved to BES Express 5.02.  Her .wav file association on her computer was changed so she couldn't play .wav files on her PC.  Then she stated getting a red X on her phone when trying to listen to the Cisco unity voice mail messages that are attached to emails.   
    I was able to correct the issue on her PC by re-associating the .wav file with windows media player.   However on the blackberry, the .wav file still will not play.  Is there a file association section on a blackberry device?  If not what else might be the issue?   she is the only person having the issue.  I don't use a blackberry so i don't know the menu options very well.
    Thanks
    Steve.
    P.S.
    Oh, The phone was factory reset before being added to the new BES, Service books and IT policy Applied correctly.   I could pull the phoen and reset it again but I don't know if that would correct the issue. 

    Hi - I am now having this same exact problem on my Mac laptop.   I have many Breaking Bad, etc TV shows that I purchased through itunes & have watched over the years & now all of those, as well as, any new shows I purchase will not play on my laptop.    Just same as above person -- a black screen that appears to be playing movie (the timer is actually playing)  but no video or sound.    Shows / Movies all work fine on my home computer.  
    On my laptop it keeps saying .. "Not authorized to play .... & then says  "Sign into Itunes.. "   - but I  do sign out & sign  back in & still nothing happens.   Very annoying and frustrating as I  can ususlly figure things out with perserverence and trial & error. 

  • Importing .wav files

    How do you import .wav and .wpl files into iTunes? The files are on my iMac, but the Import application in iTunes fails when .wav files are chosen for import.

    depends on what type your .wav files they are.
    is it audio .wav or movie file .wav ? what says your information ?
    and how you got it your .wav file...
    it should be able to play on your itune if its .wav file...
    or just use your quicktime for playing...
    good luck

  • Wav File upload-Chipmunks

    We have Cisco Unity connections ver 7.1.3.  We also have some wav files that were created for call handlers. These wav files sound fine when playing through the computer. When I attmpted to upload them to the CUC server they upload fine, but when they are played back, it plays so fast it sounds like the chipmunks.  I am unable to slow the message down vis the slider on the control panel on CUC screen.
    Any help would be grealty appreciated.

    Thank you for the quick reply.  I fouind out that the WAV files were not modified in any way.  Once I modified them to CCITT u-Law 44Khz and 8bit mono that seemed to work.
    Again, thank you for your assistance.

  • Want to convert in to wav file !

    i'm working on the project which is about to generate WAV file from RTP (real-time protocol) packets.
    Basically, this program should read packets from a data file (PCAP
    format) that contains RTP packets for a VoIP stream and then
    convert it to WAV file which can be played in Media player.
    as you are very experince developer can you guide me how could i do it.or where to start?

    i think you can create a Processor that gets an url as input locator or that creates an RTP session an listens for the input stream. To convert to wav, just take processor track control and content descriptor or file type descriptor and adjust them to convert to wav format (AudioFormat). To write to a file, set the rigth locator.
    good example of writting and changing format:
    http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFCapturing.html#93821

  • Disappearing .wav files

    Upgraded(?) from iTunes 6 to iTunes 7. All my imported .wav files went missing, i.e. "!" + "Song could not be used because the orginal file could not be found." Redownloaded the .wav file, and all is good UNTIL you turn off the computer. On rebooting - same thing - iTunes 7 and almost all the Library works fine, but the imported .wav files are AWOL. Suggestions?
    Thanks (especially if you have a fix)
    PS: Absent a fix, what's the easy way to reinstall iTunes 6?
    PC   Windows XP  

    Make sure that under the advanced tab in Preferences, under General, check the box that says keep iTunes folder organized.
    Also, iTunes usually converts .wav files because iPods cannot play them. If there is an exclamation mark, double click the file and search for it on your harddrive to restore it.

Maybe you are looking for

  • Using G_SET_GET_ALL_VALUES Method

    Hi, I need to use the following method. G_SET_GET_ALL_VALUES. But I'm not sure of the data type that it returns. CALL FUNCTION 'G_SET_GET_ALL_VALUES'   EXPORTING   CLIENT                      = ' '   FORMULA_RETRIEVAL           = ' '   LEVEL         

  • Office OneNote 2013 working with OneDrive for Business

    M$ is going to be the death of me. So here's what I have Windows 8.1 Pro with Office 2013 Pro with OneDrive for Business with our own SharePoint 2013 environment running on a tablet.  I open this lovely OneNote Product and all it asks me is to sign i

  • How to set a DMA transfer type for PXIe-6536 in LabWindows/CVI?

    I have a PXI chassis PXIe-1078 with a controller PXIe-8115 running under Windows 7. The digital output board is PXIe-6536. I use a function DAQmxSetChanAttribute to set a property DAQmx_DO_DataXferMech to a value DAQmx_Val_DMA, since I want to use a

  • Adding a new field to 2LIS_12_VCITM

    Hi Gurus,               I have a standard extractor 2LIS_12_VCITM, the R/3 functional team decided to use to field EXIDV2 instead of EXIDV for tracking. now EXIDV is present in the extractor but since they r using EXIDV2, I need to add that field in

  • About Sun Java System Application Server

    Can SJSAS dealing with 2 LAN Card (NIC) and 2 Ips? let's say i want to separate my client's network and the server's network. clients connects to the Application Server using IP 192.168.11.xxx and the application server connects to the database serve