Memory leak in AudioServicesCreateSystemSoundID with sound files

hi !
Instruments indicates a 64Ko memory leak in "AudioServicesCreateSystemSoundID" when I use a sound that I have created with GBand / iTunes. When I use the sound file "tap.aif" from the "sysSound" sample, there is no memory leak.
What's wrong with my audio file ?
It's a AIFF file, 95Ko, 8 bit mono 22Khz @ 176kbps.
thanks...

appFile = [ [ NSBundle mainBundle ] pathForResource : _filename ofType : _extension ];
FileUrl = [ NSURL fileURLWithPath: appFile ];
if ( AudioServicesCreateSystemSoundID( ( CFURLRef ) FileUrl, &soundID ) != kAudioServicesNoError )
return false;
I don't think the code is wrong because when I change the name of the sound in '_filename', there is no leak.
I haven't found in the documentation the audio file properties ( 8/16 bits, ... ) supported by 'AudioServicesCreateSystemSoundID'.
The code is for iPhone.

Similar Messages

  • Memory leak in Flash with Win7, IE9, 64bit

    I have been having an issue for quite some time on 2 different computers. Both of them are Windows 7 64bit and use IE9.
    Generally I have 1 - 5 tabs open in IE at any given time. Usually one of them is a tab for Yahoo Mail. Other tabs are related to whatever I may be searching for or doing at that time, so pretty varied. Throughout the day at random times I will begin to get a grey icon for anywhere on some tabs where there is supposed to be a flash video (like the ad in the right side of the Yahoo Mail tab)... When it happens I can open Task Manager in windows and I notice that 1 or two "iexplore.exe *32" processes have memory consumed in excess of 600,000K. When I end those processes I am again able to see any flash videos that need to be viewed.
    If I leave Task Manager open throughout the day I can see the memory consumption increase on various tabs until I cannot see any more flash videos or even open new tabs in IE until I end those processes. Further, the memory does not get released if I just close the tabs in IE, but I must either end the specific process or close all tabs in IE so that IE is completely unloaded.
    I have since uninstalled the Flash player and the issue has gone away. I can re-install the flash player and the issue returns. Can you please help? This has been a huge annoyance and I had hoped that it would be fixed sooner or later. Unfortunately it has not been fixed and has finally prompted me to post something....

    First, I just wanted to follow up on this thread and let you guys know that we'll continue to look into it.  I also want to clarify some player behavior, and provide tips for helping to identify a defect that we can take action on.
    Whenever you refresh/reload a tab, the browser should signal to us that our process is being destroyed, at which point we would release all of our resources and shut down.  SergeStone's comment above makes it sound like this might not be happening in a particular case.  I'm going to build out a few tests this week to explore this in more detail, and I'll follow up with results.
    Also, it's worth discussing the difference between memory consumption and memory leaks.  Flash Player is designed to consume a percentage of your available memory.  If you have a 32-bit machine with 2GB of RAM, we're going to consume a lot less memory than a 64-bit system with 16GB of RAM. 
    Not all Flash content is authored well.  If the ActionScript developer is continuously loading objects into their SWF and never releasing them (a slide-show is a good simplistic example), you'll see a steady usage increase as each new object loads in.  You should also see that evenutally, our automatic Garbage Collection process will kick in.  Memory will peak out, and then you'll see a short CPU spike as we look at all of the available objects and cull as many unused ones as possible, consumed memory will dip down significantly (as long as we can cull stuff), and then start growing again until the next time GC kicks in.  We tend to do this judiciously, as poorly-timed GC can cause games to stutter if it happens when lots of things are moving around on the display and you don't have a lot of available CPU.
    If it's our bug, it should be straightforward to fix, and I can follow up to this thread with a beta build for you guys to evaluate once we have one available.  In the meantime, it would be interesting to know if you're seeing the problem on our current Beta builds (which is where we would do the work). 
    Here's a link to the latest Beta download:
    http://labs.adobe.com/downloads/flashplayer11-5.html
    Also, the simplest example is the most actionable.  If you can find a situation where a site in a single tab reproduces the problem, that's a quick and easy thing to deal with.  If the repro case involves opening seven tabs and waiting six hours, someone needs to repeat that over and over, until they can isolate what content experiences the problem and then iterate a bunch more with a debugger attached to try and isolate the root cause.  The more complicated the content, the more difficult that is.
    Secondly, I wanted to offer some actionable suggestions that you could use now to work around this issue. 
    Try Firefox or Chrome.  Both of these browsers run Flash Player as a separate process.
    For those of you using Performance Monitor and other tools to measure, you can directly observe the resources used by Flash Player
    For the folks concerned about Bookmarks synchronization, both Firefox and Chrome provide native bookmark syncing and import from IE mechanisms. 
    Xmarks is a really nice, free utility that provides cross-browser, cross-platform bookmark synchronization.
    Thanks,
    Jeromie Clark

  • PGA memory Leak issue along with TNS: listener could not hand off client connection

    Hi,
    We have two Oracle Database instances in a 32 bit Standard Edition Windows OS machine with 3 GB RAM : 1) 1525 MB (SGA+PGA) 2) 515 MB (SGA+PGA)
    Recently we upgraded the RAM from 3 GB to 4 GB. Subsequently we upgraded the SGA + PGA of the 2nd instance to 771 MB.
    This has resulted into PGA memory leak issue reported in the alert log file and trace file.
    Reverting back the SGA+PGA size to 515 MB solved the issue.
    Is this issue related to Address Windowing Extension (AWE)?
    Is the reason related to Total memory for all the cumulative Oracle instance should be < 2GB.
    How to solve this?
    Mon Jul 15 08:21:25 2013
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU                 : 4 - type 586, 4 Physical Cores
    Process Affinity    : 0x00000000
    Memory (Avail/Total): Ph:1068M/4023M, Ph+PgF:4985M/7933M, VA:18M/2047M
    Instance name: dp3
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 0
    Windows thread id: 4484, image: ORACLE.EXE (SHAD)
    *** 2013-07-15 08:21:25.133
    *** ACTION NAME:() 2013-07-15 08:21:25.133
    *** MODULE NAME:() 2013-07-15 08:21:25.133
    *** SERVICE NAME:() 2013-07-15 08:21:25.133
    *** SESSION ID:(90.829) 2013-07-15 08:21:25.133
    ******** ERROR: PGA memory leak detected 6302928 > 30176 ********
    HEAP DUMP heap name="pga heap"  desc=6C98A800
    extent sz=0x206c alt=92 het=32767 rec=0 flg=3 opc=3
    parent=00000000 owner=00000000 nex=00000000 xsz=0x0
    EXTENT 0 addr=7FC10008
      Chunk 7fc10010 sz=    64996    free      "               "
      Chunk 7fc1fdf4 sz=  2097676    freeable  "krfrbAllocate: "
    Dump of memory from 0x7FC1FDF4 to 0x7FE20000
    7FC1FDF0          1020020D 7FC10010 03871E90      [.. .........]
    7FC1FE00 00000000 00000000 00000000 00000000  [................]
      Repeat 131103 times
    EXTENT 1 addr=7FA00008
      Chunk 7fa00010 sz=    64996    free      "               "
      Chunk 7fa0fdf4 sz=  2097676    freeable  "krfrbAllocate: "
    Dump of memory from 0x7FA0FDF4 to 0x7FC10000
    7FA0FDF0          1020020D 7FA00010 03871E90      [.. .........]
    7FA0FE00 00000000 00000000 00000000 00000000  [................]
      Repeat 131103 times
    EXTENT 2 addr=7F7F0008
      Chunk 7f7f0010 sz=    64996    free      "               "
      Chunk 7f7ffdf4 sz=  2097676    freeable  "krfrbAllocate: "
    Dump of memory from 0x7F7FFDF4 to 0x7FA00000
    7F7FFDF0          1020020D 7F7F0010 03871E90      [.. .........]
    7F7FFE00 00000000 00000000 00000000 00000000  [................]
      Repeat 131103 times
    EXTENT 3 addr=70A50008

    There may be something fixed in the patch that gives the error rather than mysterious hangs.  I would prefer that, myself.  There may be something in the patch that changes how Oracle allocates user, system and program areas.
    At some point you spend more trying to limp things along in a growing environment than simply upgrading.  32 bit environments these days is an indicator that management is figuring some false economies.  But that's their prerogative.
    The PGA can be affected by many things, not least of which is how the application uses it.  Much has been written about it, my own experience has been more is used than most people say.  But that is probably just my app.  Note there are different ways to set it, and a parameter with "target" in it might not be a hard limit.  Different execution plans for the same code may use different amounts of memory - there can even be situations where forcing some code to use a sort area instead, or even forcing more operations to disk, can free up more pga for everyone else.  It depends.  But that's why I look at multi-pass operations in dbconsole.

  • Memory leak in IMAQ Write PNG File

    Hi,
    I have a labview program that I'm using to do Speckle Patter Interferometry - it takes an image, takes a second image after some time, then subtracts the original image from the first and saves the subtraction.  The process reveals fringes on an object deformed on wavelength scales.
    The problem currently is that the program seems to have a memory leak.  When I run the program, the amount of memory being used (according to Windows Task Manager) just keeps going up and up then after about 20 minutes, it crashes with the error:
    Error 1074396159
    Not enough memory for required operation
    The error is normally when the file tries to write the png file - though that is the part of the program that takes the most time so it could just be coincidence that it happens at this point in the loop.
    I've tried using the labview profiler (output attached), but can't see a particular VI that is using an abhorrent amount of memory.
    I'm fairly stuck for ideas - I've attached a library with the VI and its sub VIs - if anyone would be so kind as to give me a hand I'd be very much appreciative.  I realise that my code is quiet messy - this is my first attempt at labview (albeit quite a long way into my first attempt) so any suggestions would be much appreciated also.
    Thanks
    Sam
    Attachments:
    ESPI.llb ‏556 KB
    memory_profile.txt ‏237 KB

    Hi Sam, 
    I'm glad to hear that you managed to fix the problem in your code. I have had a look at the code you posted and I have a few suggestions on how you can improve it.
    In your code you haven't included the error clusters from the VIs. Most sub VI functions included in LabVIEW will have an Error In and Error Out port that will transfer any error information through the VI. If an error does occur in the code, the error will be passed through the rest of the VI. If a sub VI or function receives an error at its error in port the VI will not execute and the error will pass through until it reaches the end of the VI. At the end of a the VI there needs to be an Error Handler function to display the error information. As error information flows through the VI the same as the data, using error clusters is a good way to determine the flow of data through a VI. This is a good way to determine the data flow through the VI as opposed to Sequence Structures which should be used in moderation.  
    I have taken a segment of you code and made some minor modifications to demonstrate how error clusters can be used (see screenshot below).  
    Error clusters can be implemented into any logic for the stop condition of a while loop. The Unbundle by Name using the Status option can be used in conjunction with the error cluster to produce a boolean output depending on if an error has occurred. If an error does occur, the function will produce a true and if an error does not occur it will produce a false. The error cluster can also be expanded by hovering the mouse over the top or bottom of the function and dragging the grey box up or down. This is useful for when you want to produce multiple outputs from the same data, such as the histogram data in your VI.
    Another thing I noticed in you code was some redundant logic. You had set the Stop button default on your front panel to true, which meant that an inverter had to be used to stop the first while loop and the stop condition in the last while loop had been changed to Continue if True. If you had kept the stop button default to False and the stop condition of the last while loop to Stop if True, the inverter on the first while loop would not be needed. This however is only a small issue but its something you could keep in mind when writing other code.
    Hopefully these suggestions will help you to further develop you LabVIEW code. I understand that implementing these suggestions into you current code could be an issue due to the size of it, but they are good features to consider when developing any code in the future. 
    If there is anything you are unsure of please do not hesitate to post any questions. I will be more than happy to assist you.
    Kind Regards 
    Jason W.
    Applications Engineer
    National Instruments UK & Ireland

  • Memory leak in OracleDataReader with UDT in 11g

    Hi,
    Can someone confirm that the following code is leaking (hugely!):
    command = new OracleCommand("select c.polygon from spatial c", connection);
    reader = command.ExecuteReader();
    while (reader.Read())
    reader.Dispose();
    command.Dispose();
    where polygon is SDO_GEOMETRY.
    Memory consumption for this code in Task Manager is +100MB above "normal" and it does not drop after calling Dispose() methods. I've also noticed that this "leak" is proportional to FetchSize. GC.Collect also does not change anything.
    Is it a bug of 11g beta or am I missing something?

    I'm not sure what do you mean by ODAC 2007. I couldn't find anything useful on your website regarding "ODAC 2007". I'm using Oracle 11g ODAC 11.1.0.5.10 Beta and I'm particularly interested in SDO objects. Based on your code samples I created strongly-typed C# classes for SDO objects and everything works like a dream (apart from this memory leak). And the performance is just OUTSTANDING! Keep up the good work!
    BTW: Congratulations regarding ODP.NET API for binding UDT with C# classes. It's very intuitive and easy to use even if you want to create C# classes from the scratch, i.e. without any wizards. Did I mention performance? :-)
    Many thanks Kiminari for your reassurance: it means a lot to me since I can now keep working on my project without any worries (I need a stable version of ODP.NET with UDT before Q2 2008). I was thinking about using OLE DB but the performance was horrible due to marshalling, passing untyped objects, etc. But you've just saved the day, and for development purposes the leaking version is absolutely fine.
    Just small questions: when can we expect "ODAC 2007" or at least another beta? More less? Any estimations?

  • Memory leak in WebView with custom UserAgent

    Hi,
    When I use the method with using NavigateWithHttpRequestMessage to modify my UA, I cannot dispose my webview properly - there seems to be a memory leak when calling this.
    In my code when I comment out the following line:
    myWebView.NavigateWithHttpRequestMessage(httpRequest);
    The memory leak goes away.
    Please note this seems to be a WP8.1 issue only, the memory leak does not appear on Windows.
    Is this a known issue? Is there a work around here?

    Hi Justin,
    Could you share a reproducible sample with us for a test purpose?
    What kind of other information include in your httpRequest, let's say if we exclude the UserAgent information, will the memory not release issue happens again, I'm not sure if the issue happens on setting UserAgent or on NavigateWithHttpRequestMessage
    part.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Memory Leak Java Plugin with Swing Applet

    Hi
    I experience the following problem and desperately need help on this. The Java Plugin (I use Version 1.3.1_02) seems to have a problem in printing Swing Applets.
    The problem can easily be reproduced (at least with NT):
    1) Start Internet Explorer or Netscape (I used 5.5/4.07)
    2) Launch the following demo swing applet
    http://java.sun.com/products/plugin/1.3.1_01a/demos/jfc/SwingSet2/SwingSet2Plugin.html
    3) Print the applet and observe (using task manager) the memory used by the browser process (the memory used by the process will increase every time you hit the print button but never decrease unless you shut down the browser)
    4) Print a couple of times (you may want to pause your print queue) and you will be able to crash your computer
    This seems to be the same bug reported with 4638742. However it says "in progress" for quite some time and I was wondering if some genious might know a work around for this.
    Cheers

    You might want to read an article about memory leaks in Java:
    http://www-106.ibm.com/developerworks/library/j-leaks/

  • Firefox 21.0 on OS X 10.8.4 still has a memory leak that occurs with no Add ons, 1 tab and leads to 3GB of memory usage in 10 minutes.

    While using Firefox 21.0 on OS X 10.8.4 with 4GB RAM, Firefox memory usage marches up and up until at 3GB (on my iMac) Firefox hangs and is 100% non-responsive and must be killed with Force Quit. It takes 10 minutes to occur.
    No Add Ons
    One tab

    John99,
    Unfortunately, the problem was WORSE in FF 22.0. I regressed to FF21.0 and shut off automatic updates. I may even go back to FF3.6, which is the last one where I didn't see this problem.
    Thank you for trying but as a longstanding developer I know that pervasive memory leaks is a sign of a broken development process. Thank you for trying...

  • Open Browser with sound file

    I want to open a sound file from my index page that will
    describe my sight and play while users explore the site. I have
    tried to use behaviors which will open an HTML page but not an MP3
    file - cant see why not. The other opens which were to make a link
    to the file from index means that once the user switches to another
    page the sound file gets lost.
    Any help please
    Robano

    Most people here will tell you that's a horrible idea. To
    understand why
    start here:
    http://groups.google.com/groups?as_q=autoplay+music&num=10&scoring=r&as_epq=&as_oq=&as_eq= &as_ugroup=macromedia.dreamweaver&as_usubject=&as_uauthors=&lr=&as_drrb=q&as_qdr=&as_mind= 1&as_minm=1&as_miny=1981&as_maxd=12&as_maxm=9&as_maxy=2008&safe=off
    Walt
    "Robano Resources" <[email protected]> wrote
    in message
    news:gae7rv$5dn$[email protected]..
    >I want to open a sound file from my index page that will
    describe my sight
    >and
    > play while users explore the site. I have tried to use
    behaviors which
    > will
    > open an HTML page but not an MP3 file - cant see why
    not. The other
    > opens
    > which were to make a link to the file from index means
    that once the user
    > switches to another page the sound file gets lost.
    >
    > Any help please
    > Robano
    >

  • [SOLVED] ffmpeg 1:1.0.1-1 memory leak? it was the file nevermind

    Running devede with ffmpeg and my memory usage with 1:1.0.1-1 went from about 1.29 GB to 18 GB while encoding a film. Thought it may be my setup so I downgraded ffmpeg to try a test and see and sure enough no large memory needed (about 2.19 GB at max). Back to normal. Can anyone else verify this? I searched on the bug tracker and didn't see anything posted. Is there something new ffmpeg does that requires more space?
    Edit: Nope. It was the file I was working on. Should have tried another file I guess. It is a little disturbing that a video encode could do this but nonetheless it was an issue on my end.
    Mod: Please throw this post in the trash if you want.
    Last edited by dodo3773 (2013-01-28 00:56:55)

    hjorthboggild wrote:Sunnemer, one more question for you: Can you have the Subversion package excisting on your system when using Eclipse and SVN (with the JavaSVN option)
    I've installed subversion and eclipse via pacman, the subclipse-plugin via the eclipse-update-manager. I set up an local repository and where able connecting my running svnserve without any problem. If i remember correctly JavaSVN doesn't support accessing the repository with file://path/to/repository/project.
    Set-up steps:
    1. edit /etc/conf.d/svnserve to set the repository root (-r /path/to/repository)
    2a. svnadmin create add /path/to/my/repository/root/project
    2b. edit /path/to/my/repository/root/project/conf/*
    3. svn co svn://localhost/project
    4. create some files and add them to your repository
    svn add filenames
    5. svn commit
    How did you set up your subversion repository? Have you ever tried to checkout an existing project with:
    svn co svn://localhost/my/repository
    Maybe there is something wrong with you server configuration. Have a look at http://svnbook.red-bean.com/ .
    Greets
    Sunnemer

  • Memory leak in dll with an imaq-function

    Hi,
    I am currently writing a dll which uses the imaqImageToArray function.
    Of course this function allocates new memory every time it converts a picture, and as I convert 180 pics a second and the Program shopuld run for hours that is quite a problem for me.
    The solution should of course be the function free(void* MyPointer). And if I use malloc to allocate some random memory, instead of the imaqImageToArray, this works perfectly.
    However when I call free() to release memory allocated by the imaqImageToArray function, the dll/LabView-Program will crash.
    So I wonder what function the imaq-Functions use to allocate memory and how I can get rid of it again. Is there another imaq-function?
    Thanks already!
    Greetings
    Solved!
    Go to Solution.

    Hi,
    sorry for the misunderstanding. I use the imaqImageToArray function inside the .dll. The Code Hence is a c-code.
    #include "extcode.h"
    #include "nivision.h"
    ... some stuff/the dll-function etc....
    uint8_t *Pointer;
    Pointer = (uint8_t)imaqImageToArray(MyImage,MyRect,&Rows,&Columns);
    if(Pointer!= NULL)
         free(Pointer);
    ... other stuff
    Sadly I can't find a detailed description of the function. I assume the void* Pointer returned by imaqImageToArray points to an Array, however I am not sure wether it points to a usual c-array or a LabView Array, meaning:
    typedef struct {
        int32_t dimSize;
        double Element[1];
        } LVArray;
    That would explain why free(); won't work.
    I think I got a step further though, as I found a function in the "extcode.h" called    DSDisposePtr(void *p). That should be the equivalent to free() for LabView Datastructures.
    However even though I have included everything from the cintools directory explicitly to the project, the Linker complains about a not found externic object. Anyone knows which .lib files I need to include where to be able to use that function?
    Thanks

  • Making a basic Video starting with sound files only

    I'm totally new to Premiere and find it quite dauting. Basic tutorials don't really seem to be helping as they presume you start with a working video.
    What I have is several 30-60 second .wav files which I need to be in sequence most of them also have associated GIF images to go with them.
    I'd like to create a video which just plays the wav files and the the associated GIFs in sequence?
    How do I go about doing this? Help much appreciated.

    Before you add any Assets to a Video Track, it will be black, as there is nothing to show. However, that "empty" Video Track can be problematic with many Export options.
    Instead, I would Import the Audio files, and drag each to the Timeline, where you want them. Note: a 1-channel (Mono) Clip will ONLY go on a 1-channel Audio Track, but if you do not have one, and need one, just drag that 1-channel Clip to the Master Audio Track. It will not go there, but PrPro will create the necessary 1-channel Audio Track, and put the Clip onto it. Same for 2-channel (Stereo).
    When you have your Audio Tracks in place, go to the New icon at the bottom of your Project Panel, and click on that. From the drop-down, choose Black Video. When created, just drag that to say Video Track 1. It will probably be only 05 sec. long (the default), but just click+drag on the Tail of that Black Video Clip, to drag its Duration to match the Duration of the entire Audio Track(s).
    Then, Import the graphic Images. Drag each to say Video Track 2, above that Black Video. Adjust each Image's Duration, as needed. If required, you can adjust the Fixed Effects>Motion>Scale, and Motion>Position, if needed. You can also Keyframe those Fixed Effects, if you wish to animate them over time, i.e. Pan, and/or Zoom.
    Done.
    Good luck,
    Hunt

  • Memory leak and problem with polymorh vi when calling vi from dll

    Two problems appear for me when using the setup below.
    First, I have a vi for opening a secondary vi:
    Then I have a vi for calling the opened, secondary vi:
    These two are compiled to a dll. The first one is called once, calling a function "open(char *)". The second one is called over and over, calling a function nextevent(double *, int). A simple example of an opened, secondary vi looks like this:
    The code used to send data looks approximately like this:
    dataout = malloc(dx->numelems * sizeof(double));
    datain = (COMPLEX *) dx->cont;
    for (i = 0; i < dx->numelems; ++i)
        dataout[cnt][i] = sqrt(datain[i].re * datain[i].re + datain[i].im * datain[i].im);
    nextevent(dataout, dx->numelems);
    free(dataout);
    This code is called in a loop. dataout is a double array to be sent to the secondary vi, datain is the source data.
    The problem now is that there is something eating up memory, and I fail to see why.
    My second question is this:
     I want to insert a Hamming window, or some other form of windowing function. It doesn't work however, and the help tells me it is because a vi opened this way cannot contain any polymorphic vi. Is there a convenient way around this problem?
    Lars Melander
    Uppsala Database Laboratory, Uppsala University

    Regarding your second question:
    As you say not possible to use a polymorphic vi in a DLL and in your case it is the windowing VI that is polymorphic. What you can do is to use only one instance of the windowing VI in the short cut menu. 
    Here is a link to a report about this error in the knowledgeBase:
    http://digital.ni.com/public.nsf/allkb/755CE99505A1C9FF8625693C00508DDE?OpenDocument

  • Need to play and stop sound file with 1 ms resolution

    Hi,
    I'm trying to open a .wav file then later play it at a time when another parallel loop activates a boolean local variable which controls playback in my "sound" loop. I need high time resolution in stopping the playing of the .wav file, ~1ms. From what I've gathered, I can't use the "sound output write.vi" because it locks the loop until it finishes outputting a set number of samples. Because of this, "sound output stop.vi" has to wait until the next iteration, which is more than ~1 ms.
    In the help menu of the Sound Ouput VIs it says you can set the task ID for the "sound output start.vi" using the "sound output configure.vi." Unfortunately I've only been able to use the "sound output start.vi" following "play sound file.vi", and I don't really know why this is the case.
    I can't start my sound with the "play sound file.vi" because it locks the loop its in until it finishes playing the sound. Oddly this only happens when there is a parallel loop running, if I run it by itself, with no other loops, it doesn't lock the loop. I thought it might have something to do with the local variable, but the loop doesn't lock when the loop restarts the sound using the "sound output start.vi." 
    After opening a .wav file, can i use the "sound output configure.vi" to create a task ID for the "sound output start.vi" to work? Or do I have to use the "sound output write.vi" after calling the "sound output configure.vi." The help menu makes it seem like the prior suggestion is possible.
    Thanks a lot!

    Since it sounds like the problem you're running into is getting the data loaded from the file before you're ready to play it, look at the Files sub-palette, specifically the Sound File Read Simple VI.  You can use this VI to load the data into a waveform and have it ready for use later in the program.
    So in your overall program, read the file with Sound File Read Simple and configure the output with Sound Output Configure and call Sound Output Write when you're ready to play the waveform.
    Alex Person
    NI-RIO Product Support Engineer
    National Instruments

  • Mountain Lion problem with CAF sound files

    I have various sound files in a Cocoa game under OSX with OpenAL and now with Mountain Lion all the small CAF files (5kb or less) do not play.  Al the other larger CAF files play as normal.  All the files load with no errors.
    Does anyone have any thoughts on what might be causing this?  Anyone else seen problems with sound files?

    This is how it looks like for me. This accours on every Boot Up.

Maybe you are looking for

  • Printing 4x6 photos on HP Laserjet 4630. photo paper tray not working?

    I am trying to print 4x6 photos on glossy paper.  My printer has a photo paper tray in addition to a standard letter tray.  When I specify 4x6 borderless glossy paper in the print parameters, the printer keeps pulling from the standard paper tray ins

  • HT4623 why is the original iPad no longer able to update

    I have the original ipad & it says it is no longer eligible to update.  It is has plenty of memory so that isn't the problem

  • How to use variant in Query broadcasting?

    Hi,gurus here,we need to distribute report based on query daily to users. We hope the required-entry variable of query can be filled according logic such as curren day,curren month,etc. automatically. In General Precaculation tab of Setting new setti

  • CProjects to IO, IO to RPM - costs not showing up

    Hi, Having created an internal order from cProjects, I can see the costs in IO. To start with, costs from cProjects Role-Task assignment is all I am trying with (using role rates). Simultaneously, I have created the Finance Categories, Groups, and Vi

  • Is it possible to cut jpgs to the duration of 1 frame

    Hi everyone... I would like to have stills in the format of .jpg to appear like a movie. Is it possible to cut them down to one frame duration. I was only able to cut them down to 0.04 sec.!!!! That does not appear very satisfiying... bobcurl