Best practices to play multiple sounds - a MediaPlayer or many?

Hello!

I use the MediaPlayer in QML object.

Problem: If I have 10 items, and when you touch an object sound... then plays with a MediaPlayer, the sound that plays must finish before its different can begin. (Or you can write the code for "stop the existing sound and plays another"). Whatever it is, you can have a musical whirl when you click each object.

Current solution: Add a MediaPlayer component to each object, so when you type this object, he plays his own MediaPlayer. Sounds amazing because sounds overlap. In a game, if you hit the fastest objects that their noise can play, it sounds good as the boops/dings/pings are nicely stacked as they sound.

However, I think that this could be taken memory useless? For example if I had 100 items, I don't think I would 100 elements of MediaPlayer set?

Is there a better way to make its competitor in QML?

Select this check box.   They used several simultaneous sounds with a single soundmanger.

https://github.com/BlackBerry/presentations/tree/master/2012-BlackBerryJam-Americas/JAM09/BaDumTss

Tags: BlackBerry Developers

Similar Questions

  • Play multiple sounds

    Hello!

    How can I play multiple sounds at once please?

    I tried with 2 separate soundChannel vars but they always substitute eachother.

    Thank you

    play two sounds through the same channel sound? for example:

    
    
    
        
            
        
    
        
        
    
    
  • Sometimes sound does not play when you play multiple sounds simultaneously

    It is also a matter of best practices, too.

    I built a game that uses many different sounds (about 48 I think). Many are short, less than a second and a few are longer, of the music cues, etc..

    Example problem: sometimes when there are a lot of play sounds and a music signal is supposed to fire, the sound of the music does not play. I did a trace on the function that plays the sound music and performs this function. Are there limits to how sounds can play at the same time? (It does not only happen to a particular sound, could be any noise)

    Also, regarding best practices, if there is a sound that could be played several times at the same time, a new instance of the noise must be created each time as its played? If there is that a single instance of this noise, will be the previous reading of this noise cancelled when it is called for replay?

    Thank you

    Adam

    There is a soundchannel 32 limit (which may exist at a given time) imposed by the flash player.  all two identical sounds may not play in a number of ms on the other.  There is no perceptible advantage and refusing the deductions that you may be able to play the sounds that are noticeable.

  • How to play multiple sounds in PHONEGAP DESKTOP?

    I created a phonegap Office (no Cordoba) game he background music and special sounds (event based), it works fine on the PC browser, but when played in mobile (after compiling using the application mobile phonegap) two sounds do not play at the same time... like when the effect of his kick , the background music stops forever and is not time... does anyone has an idea?

    PS: I am developing for android, but also work for ios later

    As with my response to your other question, we are kind to discuss Orange potatoes vs here.

    The Developer PhoneGap app does not support any other than the basic plugins and a few third-party plugins plugin. You cannot add a plugin it unless you build your own version of the application of the developer.

    For example, if you want to use a third-party plugin, you two (and only two) options:

    1 PhoneGap CLI (or CLI Cordova)

    2 PhoneGap Build

    When you use the CLI, you can add a plugin as follows:

    PhoneGap plugin add cordova-plugin-name - register

    When you use Build (or CLI) you can add a plugin as follows (in your config.xml file):

    It may or may not be true that your problem will be solved during the conversion in an APK. You can not count on PhoneGap Developer to prove that your application works or does not work. Well, there are some edge cases developer has expected also (unless you are very familiar with the internal architecture of PhoneGap). Therefore, do not expect it to tell you one thing or the other. (It's great for quick iteration, Yes, but not not for the final test.)

    So to be sure of anything, or build an application using the CLI or build.

    Note: If you're using a plugin, then it would be a way to solve your problem without worrying. But again, you have to build the application using the CLI or PhoneGap Build because it's a third party plugin.

  • Best practices: multiple partitions on a single vmdk or partition by vmdk

    Hello all-

    I would like to get your opinions on the best practices for the vmdk file server installation program.

    The drive C partition would be allotted for the operating system, while E, F... to store the data of the partitions.

    configuration 1:

    vmdk1 = thick disk of provisioned by a partition of drive c.

    vmdk2 = thickness accommodation provisioned disk partitions E, f...

    Installer 2

    vmdk1 = thick disk of provisioned by a C partition

    vmdk2 = thick disk of provisioned by a partition E

    vmdk3 = thick disk of provisioned by a partition F

    .......

    Also the partitions of multiple data configured as independent + permanent virtual disks due to snapshots. My logic is that OS (C drive) is used for snapshots in test of new software for example while the data partitions act as the storage disks that need to keep the most recent files regardless of the return to an older snapshot. BTW data partitions regularly are Word, excel, photos and so on.

    also, I realize that I could have a single example, E: data with several shared folders partition, but given that each folder is for another Department could cause more trouble when space more and more in the future. Great VMDK could take more time to develop. Not sure again.

    Thank you

    Hello

    in general, virtualization does not change much on the disk IO.

    You can use the same rules that you would use to size a physical server.

    Multiple vmdk mean multiple targets for your I/o load.

    Best solution if IO load/troughput high or low response time should be reached, you create multiple VMDK and spread over several data stores.

    HtH

  • TDMS & Diadem best practices: what happens if my mark has breaks/cuts?

    I created a LV2011 datalogging application that stores a lot of data to TDMS files.  The basic architecture is like this:

    Each channel has these properties:

    To = start time

    DT = sampling interval

    Channel values:

    Table 1 d of the DBL values

    After the start of datalogging, I still just by adding the string values.  And if the size of the file the PDM goes beyond 1 GB, I create a new file and try again.  The application runs continuously for days/weeks, so I get a lot of TDMS files.

    It works very well.  But now I need to change my system to allow the acquisition of data for pause/resume.  In other words, there will be breaks in the signal (probably from 30 seconds to 10 minutes).  I had originally considered two values for each point of registration as a XY Chart (value & timestamp) data.  But I am opposed to this principal in because according to me, it fills your hard drive unnecessarily (twice us much disk footprint for the same data?).

    Also, I've never used a tiara, but I want to ensure that my data can be easily opened and analyzed using DIAdem.

    My question: are there some best practices for the storage of signals that break/break like that?  I would just start a new record with a new time of departure (To) and tiara somehow "bind" these signals... for example, I know that it is a continuation of the same signal.

    Of course, I should install Diadem and play with him.  But I thought I would ask the experts on best practices, first of all, as I have no knowledge of DIAdem.

    Hi josborne;

    Do you plan to create a new PDM file whenever the acquisition stops and starts, or you were missing fewer sections store multiple power the same TDMS file?  The best way to manage the shift of date / time is to store a waveform per channel per section of power and use the channel property who hails from waveform TDMS data - if you are wiring table of orange floating point or a waveform Brown to the TDMS Write.vi "wf_start_time".  Tiara 2011 has the ability to easily access the time offset when it is stored in this property of channel (assuming that it is stored as a date/time and not as a DBL or a string).  If you have only one section of power by PDM file, I would certainly also add a 'DateTime' property at the file level.  If you want to store several sections of power in a single file, PDM, I would recommend using a separate group for each section of power.  Make sure that you store the following properties of the string in the TDMS file if you want information to flow naturally to DIAdem:

    'wf_xname '.
    'wf_xunit_string '.
    'wf_start_time '.
    'wf_start_offset '.
    'wf_increment '.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Best practices for concocting scenes in a Flash project?

    Hi, I am currently working on a flash project with the following characteristics:

    1. using a PC
    2. 2048 x 1080 pixels
    3. 30 images/s
    4. An audio file playing (once) continuously throughout the project
    5. There are actions that pertain to audio, so timing is important
    6. at least 10 scenes
    7. length total about 7 minutes
    8. current intention is so that it can be played in a theater as a surprise modern

    What is the best practice to work on this project and then compile together?

    Do it all in a project file?

    Split the work in different projects (xfl) records for each scene, and then put together when all the scenes are finalized?

    Use a project file, but create different "scenes" for each respective stage?  I think this is the 'classic' (?) way.

    Make the scenes "clips" and then insert them into the timeline with audio as its own layer?

    Others?

    I am currently working on him by all in the file of a project.  But I noticed that there is some lag (or it is jerky) portions during playback and the SWF story watch 3.1 MB with a yellow triangle with an exclamation mark symbol.  Thanks in advance.

    you who would do only if it makes your job easier.  in General, it would not be.

    When you try to synchronize sound and animation, I think that most of the authors find it easier to use graphic symbols, because you can see their animation when the main timeline scrubbing.  with movieclips, you see only their animation during the test.

    However, if you use actionscript to control some of your symbols, these symbols must be movieclips.

  • Best practices for the .ini file, reading

    Hello LabViewers

    I have a pretty big application that uses a lot of communication material of various devices. I created an executable file, because the software runs on multiple sites. Some settings are currently hardcoded, others I put in a file .ini, such as the focus of the camera. The thought process was that this kind of parameters may vary from one place to another and can be defined by a user in the .ini file.

    I would now like to extend the application of the possibility of using two different versions of the device hardware key (an atomic Force Microscope). I think it makes sense to do so using two versions of the .ini file. I intend to create two different .ini files and a trained user there could still adjust settings, such as the focus of the camera, if necessary. The other settings, it can not touch. I also EMI to force the user to select an .ini to start the executable file using a dialog box file, unlike now where the ini (only) file is automatically read in. If no .ini file is specified, then the application would stop. This use of the .ini file has a meaning?

    My real question now solves on how to manage playback in the sector of .ini file. My estimate is that between 20-30 settings will be stored in the .ini file, I see two possibilities, but I don't know what the best choice or if im missing a third

    (1) (current solution) I created a vi in reading where I write all the .ini values to the global variables of the project. All other read only VI the value of global variables (no other writing) ommit competitive situations

    (2) I have pass the path to the .ini file in the subVIs and read the values in the .ini file if necessary. I can open them read-only.

    What is the best practice? What is more scalable? Advantages/disadvantages?

    Thank you very much

    1. I recommend just using a configuration file.  You have just a key to say what type of device is actually used.  This will make things easier on the user, because they will not have to keep selecting the right file.

    2. I use the globals.  There is no need to constantly open, get values and close a file when it is the same everywhere.  And since it's just a moment read at first, globals are perfect for this.

  • encoding issue "best practices."

    I'm about to add several command objects to my plan, and the source code will increase accordingly. I would be interested in advice on good ways to break the code into multiple files.

    I thought I had a source file (and a header file) for each command object. Does this cause problems when editing and saving the file .uir? When I run the Code-> target... file command, it seems that it changes the file target for all objects, not only that I am currently working on.

    At least, I would like to have all my routines of recall in one file other than the file that contains the main(). Is it a good/bad idea / is not serious? Is there something special I need to know this?

    I guess what I'm asking, what, how much freedom should I when it comes to code in locations other than what the editor of .uir seems to impose? Before I go down, I want to assure you that I'm not going to open a can of worms here.

    Thank you.

    I'm not so comfortable coming to "best practices", maybe because I am partially a self-taught programmer.

    Nevertheless, some concepts are clear to me: you are not limited in any way in how divide you your code in separate files. Personally, I have the habit of grouping panels that are used for a consistent set of functions (e.g. all the panels for layout tests, all the panels for execution of / follow-up... testing) in a single file UIR and related reminders in a single source file, but is not a rigid rule.

    I have a few common callback functions that are in a separate source file, some of them very commonly used in all of my programs are included in my own instrument driver and installed controls in code or in the editor of the IUR.

    When you use the IUR Editor, you can use the Code > target file Set... feature in menu to set the source file where generated code will go. This option can be changed at any time while developing, so ideally, you could place a button on a Panel, set a routine reminder for him, set the target file and then generate the code for this control only (Ctrl + G or Code > Generate > menu control reminders function). Until you change the target file, all code generated will go to the original target file, but you can move it to another source after that time.

  • Material LV real-time Ethernet com best practices

    Hello

    I just started to learn the LV in real-time, and until I get a new cRIO I just played with a former PSC-2220.

    Everything works, I am reading the tutorals nice about RT and deployment/running example to this target applications.

    However, I don't know what is the best practice, the IP address of this device handling. For easy installation, after a device reset (and install the new RT runtimes, etc) I put just the HW to obtain the dynamic IP address of my router (DHCP). My laptop connects to the same router via wifi.

    However, since after a few resets the target Gets a new IP (192.168.0.102, previous IP was... (104), I have to manually change the IP address in my project. Is it possible that the LV auto detects the target in my project? In addition, it seems that MAX retains the old information and creates a new line for the same target... so I guess that if the problem persists, MAX is going to fill? See screenshots below.

    As a solution, I'll try to use static IP for the target, so it must always use the same IP address.

    What is the common procedure to avoid this kind of problems? Just using static IP? Or miss me him too something else here?

    Thank you!

    I just always use static IP addresses.  It avoids just all kinds of questions, especially if you have several systems on the same network.

  • Best Practice Guide for stacked N3024 switches

    Is there a guide to BP for the configuration of the 2 N3024s stacked for the connections to the server, or is the same eql iscsi configuration guide.

    I'm trying to:

    1) reduce to a single point of failure for rack.

    (2) make good use of LACP for 2 and 4 nic server connections

    (3) use a 5224 with it's 1 lacp-> n3024s for devices of unique connection point (ie: internet router)

    TIA

    Jim...

    Barrett pointed out many of the common practices suggested for stacking. The best practice is to use a loop for stacking and distributing your LAG on multiple switches in the stack, are not specific to any brand or model of the switch. The steps described in the guides of the user or the white papers generally what is the recommended configuration.
    http://Dell.to/20sLnnc

    Many of the best practices scenarios will change of network-to-network based around what is currently plugged into the switch, and the independent networks needs / requirements of business. This has created a scenario where the default settings on a switch are pre-programmed for what is optimal for a fresh switch. Then recommended are described in detail in white papers for specific and not centralized scenarios in a single document of best practices that attempts to cover all scenarios.

    Express.ypH N-series switches are:
    -RSTP is enabled by default.
    -Green eee-mode is disabled by default.
    -Frother is enabled by default.
    -Storm control is disabled by default.

    Then these things can change based on the towed gear and needs/desires of the whole of society.

    For example, Equallogic has several guides that recommendations of configuration detail to different switches.
    http://Dell.to/1ICQhFX

    Then on the side server, you would like to look more like the OS/server role. For example a whitepaper VMware that has some network settings proposed when running VMware in an iSCSI environment.
    http://bit.LY/2ach2I7

    I suggest making a list of the technology/hardware/software, which is used on the network. Then use this list to acquire white papers for specific areas. Then use these white papers best practices in order to ensure the switch configuration is optimal for the task required by the network.

  • Portable speakers won't play all sounds

    I have a Dell Inspiron 1420, and somehow the built-in Laptop speakers won't play any sound at all, even when Windows starts. I run on a Windows Vista.

    In any case, I tried to go to Device Manager to uninstall my sound thing called "High definition Audio Device", but this still does not work. Then I tried updating the driver, still not working.

    The audio works when I plug headphones to one of the thing taken, but only on one, I have two of these good output jacks.

    Can someone guide me please how I can solve this problem? Thank you.

    Try to run the Dell Diagnostics audio tests. These interactive audio tests are designed to limit the problem software or hardware. The tests are independent of Windows and drivers, meaning that it is not serious if those who are working properly or not. To run Dell Diagnostics

    1 restart the computer and press the f12 key as soon as it begins to initialize.
    2. Select 'Diagnostic' in the start menu. The computer will run its evaluation of pre-boot (PSA) tests before the start of the Dell Diagnostics. In the PSA, you will hear some tones in the speaker system but it does not adequately test the audio hardware. Dell Diagnostics plays an instrumental piece of music complete with battery, so if you hear only a few tones then you have run only the PSA.
    3 Dell Diagnostics should open after the PSA tests, or you should see an option to open it. If you've never reformatted your entire hard drive then Dell Diagnostics will be gone as an option. In this case run it from the CD Drivers and Utilities (resource) If you have a.
    4. Select 'Custom', then the audio tests. (At this point - after you open Dell Diagnostic custom - if you can't find the option to select the audio test is a symptom of an audio chip faulty.)
    5. the tests will run. Alternatively using headphones and listen to the speakers in case a signal path works.
    The tests will play some audio and ask you if you heard.
    6 If you do not hear the music during the test, it certainly means that there is somewhere a hardware failure in the system. In this case Dell will repair the computer if it is still under warranty.
    7. If you hear the audio during the test, but not when you start in Windows, that almost always means the material is correct, but there is a problem with the audio driver or Windows.
    8. error codes: If you answer "no" to any question that the test ask, test generates an error code which can indicate a Dell technician that you answered 'no' to this question. The test does not know the exact component that went wrong. Before you answer "no" to a question, take note of the circumstances at that time here so that you know in general what is the error code.

    *****************************************************************************************************

    If the terst passes then try reinstalling the Sigmatel HD audio driver. You can find it in the Audio category of 1420 downloads page. I suggest that for best results you do not use the Dell Download Manager, simply download the normal way you would be using your browser.

    *********************************************************************************************************

    If the problem persists after installing the driver, you might have a problem with one of the headphone jacks when a computer has this combination of symptoms:

    * Speakers do not work and are not active or deselected
    * Headphone Jack works
    * Reinstall audio driver does not help
    * Audio test Dell Diagnostics passes
    * On models with 2 headphone jacks, you can be "verified" in the dashboard as if in use

    Laptops from Dell with 92HD audio using universal sockets of IDT, which is a bit complicated. In addition to the usual mechanical parts, making also uses current technology & detection of impedance to software configuration of trigger and switching (to send the audio signal to the speakers). There are three areas of potential failure: mechanical, electronic and software. Sometimes a little gentle wiggle of a plug in the plug will get to resume normal operation, at least temporarily. There is a safety edge stem into the socket (pin Sense_A) that is used to detect the presence of plugs, and it may be the cause of the failure to trigger the ignition of the software. Failure of the sense pin usually results in the computer behaves as if there is always a plug into the socket.

    Normally the audio test of Dell Diagnostics would confirm that there is a hardware problem, but universal Sockets can cause a false result Diagnostics. This is because diagnoses running BACK, outside of Windows, so a software configuration problem Windows is not relevant to test even if in this case it is caused by the material. If the audio test can spend in Diagnostics, signaling correctly that the configuration of the software is the immediate cause of the problem, but it lacks a hardware, the Jack or safety edge Rod problem, what the root cause. In these cases the reliable diagnostic procedures are only to try a new motherboard or use PC Restore (called Factory Image Restore in Vista) to restore the computer to its original as in factory configuration. If the speakers do not always work after PC/Factory Image Restore, then it is definitely a hardware issue even if it passes the audio test Dell Diagnostics normally infallible.

  • Best practices for the restart of the nodes of the ISE?

    Hello community,

    I administer an ISE installation with two nodes (I'm not a specialist of the ISE, my job is simply to manage the user/mac-addresses... but now I have to move my ISE a VMWare Cluster nodes to another VMWare Cluster.

    (Both VMWare environments are connected to our network of the company, but are different environments. vMotion is not possible)

    I want to stop ISE02, move it to our new VMWare environment and start it again.

    That I could do this with our ISE01 node...

    Are there best practices to achieve this? (Stop request first, stopl replikation etc.) ?

    Can I really just reboot a node ISE - or I have consider something before I do this? After I did this?

    All tasks after reboot?

    Thanks for any answer!

    ISE01
    Administration, monitoring, Service policy
    PRI (A), DRY (M)

    ISE02
    Administration, monitoring, Service policy
    SEC (A), PRI (M)

    There is a lot to consider here.  If changing environments involves a change of IP address and IP extended, then your policies, profiles and DACL would also change among other things.  If this is the case, create a new VM ISE in the new environment in evaluation license using the and recreate the old environment deployment by using the address of the new environment scheme.  Then a new secondary node set rotation and enter it on the primary.  Once this is done, you can re - host license from your old environment on your new environment.  You can use this tool to re - host:

    https://Tools.Cisco.com/swift/LicensingUI/loadDemoLicensee?formid=3999

    If IP addressing is to stay the same, it becomes simpler.

    First and always, perform an operational backup and configuration.

    If the downtime is not a problem, or if you have a window of maintenance of an hour or so: just to close the two nodes.  Transfer to the new environment and light them, head node first, of course.

    If the downtime is a problem, stop the secondary node and transfer it to the new environment.  Start the secondary node and when he comes back, stop the main node.  Once that stopped services on the head node, promote the secondary node to the primary node.

    Transfer of the FORMER primary node to the new environment and turn it on.  She should play the role of secondary node.  If it is not the case, assign this role through the GUI.

    Remember, the proper way to shut down a node of ISE is:

    request stop ise

    Halt

    By using these commands, the risk of database corruption decreases by 90% (remember to always backup).

    Please rate useful messages and mark this question as answered if, in fact, does that answer your question.  Otherwise, feel free to post additional questions.

    Charles Moreton

  • Best practices for building an infrastructure of APEX for 12 c

    Hi all

    Have we not the docs on best practices for building an infrastructure of APEX?

    Which means, for the production, it is acceptable to use Embedded PL as the listener, or we stick with the Listenr tested on Weblogic?

    Thank you

    Hi JCGO,.

    JCGO wrote:

    Hi all

    Have we not the docs on best practices for building an infrastructure of APEX?

    Which means, for the production, it is acceptable to use Embedded PL as the listener, or we stick with the Listenr tested on Weblogic?

    Thank you

    I agree with Scott's response '' it depends. '' It starts with the appropriate choice of a web listening port.

    You should discourage use EPG facility based in Production environments in accordance with the recommendation of the Oracle.

    Reference: See security considerations when you use the Embedded PL/SQL Gateway section.

    ADR (APEX Listener) + Oracle Weblogic Server sounds good, if you already have tried and have appropriate expertise to manage it.

    Also, you might consider what other facilities ADR based ADR + Apache Tomcat with Apache HTTP Server reverse proxy as described here:

    Dimitri Gielis Blog (Oracle Application Express - APEX): Prepare the architecture for the APEX 5.0 upgrade

    But it depends on Apache skills, you have within your organization.

    I hope this helps!

    Kind regards

    Kiran

  • Best practices for the webinar Landing Pages

    We are developing a landing page that hosts several seminars online and want to get an idea of how others have done it.  Here's our scenario:

    PLAN:

    We push an email highlighting a webinar.  Clients fill out the form for this specific webinar and for sending the email with the link, the landing page is redirected to a list of other webinars to choose (previously registered or not).

    QUESTIONS RELATING TO THE:

    Did anyone done this before? How to follow Webinars a person clicks - through? There must be a better way than to have a person to submit a form to watch/attend each webinar.

    Also, can you do activity driven or landing page upside DOWN so that it lists only webinars which it has not already chosen or read?

    Can't wait to hear your best practices! Thanks for sharing.

    Hi Julia,

    You have at least two options for the capture of submission of form to your visitors without them knowingly send a form:

    1. If your confirmation page is hosted in Eloqua, you can use the links send blind form to these other Webinars. There is an article on Topliners here on how to install this feature to write links, but it's actually the same with regard to links to landing pages: trigger actions multiple with a click-through email (via 'send blind form').

    2. use "gated forms. You can apply this technique on all the forms on your site - the visitor will have to submit the form to get the first active, but each subsequent active form is hidden (a concept similar to sending blind form, they just see a link). Generally speaking, customers chose to have a consultant Eloqua build the frame (you can easily maintain over time when you add new assets), or you can build it yourself by following the related step by step guide to this post Eloqua Artisan.

    With the help of a form submission to capture these clicks gives you the opportunity to enjoy all of these smart actions of processing steps and get a tracking more than just using a regular.

    For your second question regarding conditionalizing links so that only those that have not been visited show - I recommend you really against that. What happens if your visitor wants to go back to the link, how can they access it? Leave it to the browser and use different colors for non visited compared to visited links.

    Gaia

Maybe you are looking for