Is there a way to output multiple waves to soundboard

Working on two projects that could benefit from multiple sounds being played at once.
1st is a C64 SID emulator. The SID has 3 voices Each with there own ADSR and waveform. I can generate a single waveform with attack and decay and get decent sounds out. But mixing has Been problematic. I want to have almost 3 loops running together. Each sending waveforms to The soundboard. I've done this before in VB...hmm...im thinking maybe I used directx.Been awhile. Guess I could import an activex object that handles playing sounds? Ill search on that idea. Any others would be helpful
2nd is a game_API. I see boring games done for labview. Like checkers or chess. Using 2d array of images. Been there done that (reversi). So I started out on a basic game_API loading sprites and displaying on a picture. What I Need is music and sound effects. Need to play one music in The background and then during jump or fire play those sounds. Kind of along The same lines as my other project.
Side question: Load and play MP3 files in labview? So far I can get The frame header..Then What do you do? I can't find The decompress info anywhere only frame header information. Not that important I just was searching music playing and saw no one has done mp3 So I tried it but got stuck.
-pRoFiT
- A minute saved is a Minute earned!
Solved!
Go to Solution.

In case someone is searching like I was. Searching around Some more I found someone that used the winmm.dll mcisendmessage to open a CD drive back in 2005. Using that dll call you can also play sounds. In my example attached I used a wav file but I think mp3 files should work too. Not sure if a memory leak will happen with this example. As I don't know how to clear the alias I created. Some more code to watch the sound process and clear the alias setup once the sound is done may help or be needed. But this example should get someone moving in the right direction.
p.s. im still in search of a good way to play 3 waves created in labview at the same time. In fact more control over the labview soundplay vi would be nice.
edit: hmm I took the snippet of the default failed to open side. The Only difference is instead of close I use play to play the sound after an alias has been created.
Not the alias part allows you to play multiple sounds at once. Only using [play "filename"] will result in waiting for it to end before you can send the next sound. Alias is the key to making this work.
edit: Used labview 2011.
- A minute saved is a Minute earned!
Attachments:
playsound.png ‏44 KB
winmmtesting.vi ‏15 KB

Similar Messages

  • Is there a way to create multiple BQY output to one of the Job File ?

    Hello,
    I am using EPM11.1.2.3.501 version.
    BQY report due to the large amount of data, it is difficult to use a WebClient.
    So will share on a quarterly basis.
    However,
    If modifications are to occur,There are difficulties must modify each file.
    For example,
    Register 2014 1Q, 2014 2Q, 2014 3Q, 2014 4Q BQY Job file.
    When you run the job, the output of the job file is created.
    If the job file is changed, you must modify all four files.
    This will be only grow ations.
    Is there a way to create multiple BQY output to one of the Job File ??
    Please help me.
    Thanks

    It is not possible to have multiple BQY outpu into a job file.
    Thanks,
    KK

  • HT202000 Is there a way to have multiple audio sources sent to multiple outputs (i.e. communications with skype sent to headset, music sent to speakers )

    Is there a way to have multiple audio sources sent to multiple outputs (i.e. communications with skype sent to headset, music sent to speakers ) I do this on my Windows but cannot find for mac.  I am transitioning from Windows brain to Mac brain and having a little difficulty
    OS Yosemite

    Is there a way to have multiple audio sources sent to multiple outputs (i.e. communications with skype sent to headset, music sent to speakers ) I do this on my Windows but cannot find for mac.  I am transitioning from Windows brain to Mac brain and having a little difficulty
    OS Yosemite

  • Is there a way to open multiple childs of Accordian at a same time

    Hi,
    Is there a way to open multiple childs of Accordain at a same time.
    My requiremnets is something like this:--
    Thanks for any help on this in Advance.
    Regards
    Munira

    You can have multiple nodes open on a tree, so I guess you could open them all up on a button click.
    Another option that might be possible is to use individual Accordians for each section and then use the click function to close the others.

  • Is there a way to delete multiple pictures at the same time from the iphone4s?

    Is there a way to deleter multiple pictures at the same time, from my iphone4s? I know how to delete one at a time. Thanks

    Open your Photos App > Camera Roll > At the top right corner you will see a rectangle with a right arrow, select that. Now you can select as many photos as you want and you can hit the red Delete button on the bottom right.

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • Is there a way to get multiple email accounts on the front page of my Iphone?  Also I would like to have different sounds when I receive mail in the different accounts. Is this possible?

    Is there a way to get multiple email accounts on the front page of my iphone instead of just the generic mail icon?  Also is there a way to get a different alert sound for each email?

    No.
    You need to review this (WYSISWG):
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • HT1918 Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    No. Unfortunately, you can't combine Apple IDs togetehr, even if you own them all.

  • Is there a way to send multiple pdf's in one email from iBooks?  I have several that I've saved that I need to send to one person. If it can't be done directly, is there a work around?

    Is there a way to send multiple PDF documents from iBooks in one email?  I have several that need to be sent to one person and can't figure out how to send more than one at a time. If you can't, is there a workaround?

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Is there a way to create multiple map tile layers at once?

    Hello experts,
    I have a small problem. It's mainly a matter of saving some time. I need to create 51 map tile layers in mapviewer, and I would like to this this at one time. I can go to the admin console-->Management-->Manage Map Tile Layers-->Create, and then I can create one at a time. But it really would be nice to create them all at once!
    I tried using the XML mode interface, and I can use the following code to create one map tile layer:
    <?xml version="1.0" standalone="yes"?>
    <map_tile_server_admin_request>
      <create_map_tile_layer data_source="xxxx">
        <map_tile_layer
            name="FOUNDATION"
            http_header_expires="168"
            image_format="PNG">
          <internal_map_source base_map="FOUNDATION"/>
          <tile_storage root_path="/scratch/tilecache" />
          <coordinate_system
              srid="8265"
              minX="-180" maxX="180" minY="-90" maxY="90"/>
          <tile_image width="250" height="250" />
          <zoom_levels levels="10" min_scale="5000" max_scale="10000000">
          </zoom_levels>
        </map_tile_layer>
      </create_map_tile_layer>
    </map_tile_server_admin_request> And it creates one layer. But when I try this:
    <?xml version="1.0" standalone="yes"?>
    <map_tile_server_admin_request>
      <create_map_tile_layer data_source="xxxx">
        <map_tile_layer
            name="FOUNDATION"
            http_header_expires="168"
            image_format="PNG">
          <internal_map_source base_map="FOUNDATION"/>
          <tile_storage root_path="/scratch/tilecache" />
          <coordinate_system
              srid="8265"
              minX="-180" maxX="180" minY="-90" maxY="90"/>
          <tile_image width="250" height="250" />
          <zoom_levels levels="10" min_scale="5000" max_scale="10000000">
          </zoom_levels>
        </map_tile_layer>
      </create_map_tile_layer>
      <create_map_tile_layer data_source="xxxx">
        <map_tile_layer
            name="FOUNDATION_WY"
            http_header_expires="168"
            image_format="PNG">
          <internal_map_source base_map="FOUNDATION_WY"/>
          <tile_storage root_path="/scratch/tilecache" />
          <coordinate_system
              srid="8265"
              minX="-180" maxX="180" minY="-90" maxY="90"/>
          <tile_image width="250" height="250" />
          <zoom_levels levels="10" min_scale="5000" max_scale="10000000">
          </zoom_levels>
        </map_tile_layer>
      </create_map_tile_layer>
    </map_tile_server_admin_request>...it creates only the first map tile layer in my xml request.
    Is there any way to create multiple map tile layers at once?
    Thank you!
    John

    Michael,
    It looks like you are right! Thank you for your help.
    I still have a small concern. I looked at the documentation and it reads,
    "The configuration settings for a cache instance are stored in the USER_SDO_CACHED_MAPS metadata view. You should normally not manipulate this view directly, but should instead use the MapViewer administration tool, which uses this view to configure map cache instances."
    But, I tried inserting records into USER_SDO_CACHED_MAPS and it works, and I can't really see any reason not to directly insert records into this table, so...
    Perhaps that warning is there simply because potentially you could screw things up tinkering with the table directly.
    Cheers!
    John

  • Is there a way to display multiple iPad screens on the same television screen simultaneously?

    Is there a way to display multiple iPad screens on the same television set concurrently?  The idea is to let multiple individuals do something on their iPads in a timed window and then display the results of each iPad users answer concurrently on te same television.

    Devices that display two, four, or even eight video signals on a single monitor are available in the video security market. Maybe you could find something there that would do what you want. A quick search on "security tv screen multiplexor" (without the quotes) yielded millions of pages; several on the first page looked promising if you don't mind composite video.

  • Is there any way to create multiple users in a single shot in oracle db

    Can Any one tell me, is there any way to create multiple users in a single shot in oracle database.

    Hello Nunhum,
    I guess this was not my question.. This is not what I m asking.. I know there is not a single sql statement in oracle ,which could create multiusers alike UNIX/LINUX(OS LEVEL), Whatever you have written..is simple creating them one by one.
    What I am expecting is to have PL/SQL statement which could help us in this regard.

  • Is there a way to move multiple Calendar items from one date to another?

    Hello. I have far too many Calendar items every day in my iCal. Until I finally pare them down to a reasonable level, I need to "reschedule" all of my unfinished ToDo items and reminders, to another day, later in the week.
    There doesn't seem to be any "Select All" feature available.
    Is there a way to move multiple Calendar items from one date to another?
    Thanks in advance!

    Still no ideas? Apple, please come up with a fix. Thanks.

  • Is there a way to format multiple images at once? Change colour mode or resolution?

    Is there a way to format multiple images at once? Change colour mode or resolution?

    It's very easy to make an action.
    Go to window > actions
    In the actions panel, simply click the 'create a new action' button, it starts recording as soon as you've created it (when you've given it a name).
    Now you can apply the changes you want to make to the images on the file you have opened.
    After you've done all you need to do. You click the 'stop' button. The action is now ready to use. And you can apply the changes you made on all the other files.
    Then you can continue how gener7 explained.
    I usually include a save and close command, so that the whole batch doesn't end up opened after running the script.
    But if you do that you have to create a new file, and save it to your computer before you start recording the action, otherwise the save command will be replaced by each file. And you'll end up with one edited file in the end. At least for as far as I know!

  • Is there any way to delete multiple spams at once, right now I go through each individually and delete it, but it's time consuming, thanks

    Is there any way to delete multiple spam messages at once. Right now I go through each individual spam and delete one at a time. This is very time consuming. Any tricks out there.
    Thank you

    Hi LRagsdale517,
    You should definitely be able to upload multiple files by Shift-clicking or Ctrl-clicking the files you want to upload. Just to make sure you don't have an old version of the service cached, please clear the browser cache and then log in to https://cloud.acrobat.com/files. After clicking the File Upload icon in the upper-right corner, you should be able so select multiple files for upload.
    Please let us know how it goes.
    Best,
    Sara

Maybe you are looking for

  • Dynamic increasing the no of row in MD form

    I would like to dynamically increment the no. of rows in a MD form by using a button on the form or any other method. Any ideas ???

  • Report Painter Select Screen Character Issue

    I have a report make from report painter. In the select screen, it supposed to show in ficical year, accounting periond, controllong area, for selection, but the character could not be shown correctly, it show as "#####". Question: How can I fix the

  • Java hangs

    Hi all, I am facing an issue in java. Problem, The sever stop responding to anything, it just hangs, cannot be restarted unless killing java process through task manager. does not respond to hprof, jstacktrace, jvisio, console, anything. the problem

  • Shared object help

    The game I am making is going to have a visually edited item.  Is it possible to save whole objects? The way I see it now I either have to database every possible item edit and save which one it is, or save every property of the item in a way where i

  • Trouble opening photoshop doc in CS5

    hello there, I am having trouble opening my older files (CS4) in my new CS5. Is there normal? I can preview the file when i 'space bar' it on the desktop but thats about it. When i go to open the file it says 'Could not complete your request because