Audio dev Alpha C Cup using OpenAL

Hello

I have some problem with the audio on my device Dev Alpha C and I was wondering if anyone else has had or similar problems or that he might be able to offer a solution.

The problem

When you run our game on a device Dev Alpha C, after a short period the sound effects cut. After that no sound effects are played once again, apart from very occasional snippets of sounds, as the device is trying to play them but quickly to cut again.

The strange thing is that the same code works fine on the Alpha of A Dev.

Implementation

The sound effects are implemented using OpenAL and OpenALUT.  Our music is played using the multimedia rendering engine (and works very well).  I checked for errors from OpenAL, but it is not everything.

Our installation of OpenAL is quite simple and in fact is the following (note that I cut an error handling form all my code samples for brevity):

if(alutInitWithoutContext(NULL, NULL))
{
    device = alcOpenDevice(NULL);
    if(device != NULL)
    {
        context = alcCreateContext(device, 0);
        if(context != NULL)
        {
            alcMakeContextCurrent(context);
            alGenBuffers(MAX_SOUND_BUFFERS, buffers);
            alGenSources(MAX_SOUND_CHANNELS, sources);
        }
    }
}

Sounds are then loaded by:

void *data=alutLoadMemoryFromFile(filepath.c_str(), &format, &size, &freq);
alBufferData(buffers[bufferIndex], format, data, size, freq);

(There are some parameters of sound parameters that I haven't posted because I don't think that is where the error but I can add it if it could be relevant to reprogramming).

Finally the sounds are played using

alSourcePlay(sourceNum);

I use SDK 10.1.0.1020 and Dev Alpha C is on the firmware 10.1.0.138.

If anyone has any suggestions, they would be welcome!

On the problem of origin, was published a new firmware which seems to fix the problem. You can find it here: https://developer.blackberry.com/blackberry10devalpha/devalpha_update.html.  I tested it on our Dev C Alpha and it seems to work very well - I'm always test so will update if I have problems, but it seems OK so far.

@beemaster - you might want to consider posting this question as a separate topic, as there is a good chance of people won't find it in this thread.  For what it's worth, we use MP3s in our game very well, even if we don't use of stunts and use the multimedia rendering engine to play, which could explain the observed differences.

Tags: BlackBerry Developers

Similar Questions

  • HOWTO debug Webworks on VMWare Dev Alpha Simulator?

    Hello

    I'm developing an application Webworks. I can't use training Simulator because it does not implement 'cards' and does not implement the API pim.contacts.

    I have no device Dev Alpha, so I use the VMWare of the Q10 Simulator.

    My question is:

    -can I somehow debug the webworks app?

    -I can at least see the console.log output somewhere? How?

    -Is taken in charge for BB10? : http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-debug-BlackBerry-web-appl...

    -can I change my javascript and HTML without repackaging in ripple or command line. I'm changing code, repackaging, hoping for the best. It is not productive, and feels like the glacial period.

    Thank you

    Hi escay,.

    1. "I can somehow debug the application of webworks. Yes, wrap it with the - d option. Your Simulator will have an IP address in the lower corner. You should be able to connect to the Web Inspector via : 1337 and see your pages.

    2. "I can at least see the output somewhere console.log? «»» How? "Yes, you can see the console Web Inspector . After following the steps above.

    3. Yes, you can use web Inspector. Your device must be in debug mode and your application packed with - d.

    4. Yes, you can. Direct your config.xml to your local Web server. This will pull the content of the server application and allow you to be updated on the fly. All you have to do is to hit refresh, .

    Hope this information helps.

  • Script to change the element using screen orientation does not not on Dev Alpha in Portrait mode

    OK, so I wanted to update my application WebWorks Testing (https://github.com/SCrid2000/WebWorks-Testing) to make it easier to test webworks apps for the difference in screen resolution between the Alpha of Dev and the 10 next of BlackBerry.

    Basically, instead of opening your html, js and css files directly in the test application, the update would be to open your files in an iframe in the app. The iframe will resize itself based on the orientation of the device.

    The javascript function looks like this:

    function displayCurrentOrientation() {
    
        if (window.orientation === 0) {
            document.getElementById("currentOrientation").width = '1280px';
            document.getElementById("currentOrientation").height = '720px';
            return false;
        }
        if (window.orientation === 90) {
            document.getElementById("currentOrientation").width = '720px';
            document.getElementById("currentOrientation").height = '1280px';
            return false;
        }
        if (window.orientation === 180) {
            document.getElementById("currentOrientation").width = '1280px';
            document.getElementById("currentOrientation").height = '720px';
            return false;
        }
        if (window.orientation === -90) {
            document.getElementById("currentOrientation").width = '720px';
            document.getElementById("currentOrientation").height = '1280px';
            return false;
        }
    }
    

    Now it works just perfect on the PlayBook (but of course, this isn't much help for the screening of the BB10)

    However, on the Dev Alpha it ONLY works in the LANDSCAPE; in other words, if the application is launched in the landscape, the iframe rezises and everything is just perfect. If the test application is started in portrait mode, the iframe is still resized to the size of portrait.

    Anyone have any suggestions for what I'm doing wrong? I am quite at a loss here (and since this is a free application and open source, I'm not too motivated to spend another couple hours trying to fix lol).

    Thank you.

    Shane

    Nevermind, turns out it only is not yet supported by BB10.

  • How to find the IP address assigned to Dev Alpha for use with blackberry-deploy?

    The Playbook, I use blackberry - deploy to install the .bar file. It requires the IP address assigned to the Playbook, which is available by clicking on an icon in the status bar in development mode.

    However, I don't see such an icon on the alpha of dev. Is it possible to find the IP address assigned to Alpha of Dev that I can use with blackberry-deploy?

    Answered my own question. Its network connects-> advanced-> Internet connection.

  • Strange behavior of audio subsystem after update Dev Alpha 10 to 10.0.9.388

    Hello world!

    Has anyone noticed a strange behavior of the behavior of 10.0.9.388 audio subsystem firmware. Recently, after firmware update Dev Alpha 10 to 10.0.9.388 subsystem audio misbehavies in the following way:

    (1) if the external headphones/speakers connected to the audio line-out looks to be preprocessed by low-pass filter and surround effect. The device reported by AudioManager is/dev/snd/pcmPrefferedp. Would it be a bug in formware and re-routing audio internal speaker to the line-out socket did not exclude specific pre-treatment?

    (2) on the previous firmwares if audio goes out of the internal speaker and then the helmet is connected to Jack line out change of itinerary was seemlesly happening and he kept playing with headphones without additional measures in the application. Now, peripheral audio is not consume audio samples and so crashes until it is closed and reopened.

    On the previous firmwares were not all the problems of this kind. Would be - what a few unlucky flashing firmware try (if it is still possible) or bug of 10.0.9.388.

    It will be good to hear comments & thoughts about these questions.

    Best regards

    Dmitry.

    I suggest to create two entries Issue Tracker: https://www.blackberry.com/jira

  • WebWorks app no longer works after update of Dev Alpha

    So I tried to transfer my playbook to the BB DevAlpha application and it worked very well mostly on the alpha of dev, but since the update, I can't open up my application. It will open to a blank black screen just and do nothing at all. In closing, I get an error: "application does not handle the message 'Quit' and was slayed. It seems that the app is the gel, but it could also simply not start at all.

    Nothing appears in the web Inspector, so I think that it is not starting.

    The app was developed originally on the playbook in which she worked well, he also worked for the most part very well (with the exception of a question of content layout) on the BB Dev Alpha of the original OS. But after the update of the OS. It doesn't seem to work at all.

    So I am really confused as to why it suddenly stopped working.

    What is wrong with him?

    Read this:

    https://developer.BlackBerry.com/HTML5/documentation/getting_started_with_bb10_ww_sdk_2007056_11.htm...

    For each web page in your application, you must include a script tag that links the webworks - version > .js file:

    
    

    You must copy the webworks - version > file .js in your application. Make sure that your application uses the version of this file that corresponds to the current version. You can find thewebworks - version > .js file in one of the following locations, depending on your platform:

    • Windows XP: C:\Program Search SDK WebWorks Motion\BlackBerry 10 version > \Framework\clientFiles
    • Windows 7: C:\Program Files (x 86) \Research Motion\BlackBerry 10 Development Kit SDK WebWorks version > \Framework\clientFiles
    • Mac OS: Developer/SDK/Research In Motion / BlackBerry WebWorks SDK 10 version > / framework/clientFiles
  • Not able to read the BB10 Dev Alpha contacts (door Android app)

    Hi friends,

    I wore my Android app that exports the contacts into a CSV file that is stored on the SD card.

    When I run this app on my device BB10 Dev Alpha B, it creates an empty file.

    I guess that the BB10 Android runtime does not support the access contacts in BB10.

    Is someone can shine some light on this issue?

    Thank you

    Hemant

    Hello world

    I hope I can clarify what is supported in the BlackBerry Runtime for BlackBerry 10 Android applications when it comes to support of Contacts.

    Currently, support is in place to add an entry in the Contacts list to either contact existing, or by adding a new contact to the list. This can be understood as write-only access. We do not query the list of contacts or save existing contacts. There was some security issues behind the decision to only allow this access level, but as always, we are open to discussion of different use cases.

  • BBM on BB10 Dev alpha B problem

    Hey guys.

    I'm pretty new to this Blackberry thing (got my Dev Alpha on a Jam Session, it was great), this is my first Blackberry device (frankly, I don't like Blackberry pre-10) and I tried to integrate my BBM app, but I have not been able to access all the BBM. I tried re-flashing the unit and using a different BBID unsuccessfully, BBM opens with a "Temporary server error" screen, and the only option I get is to exit the application.

    Friends (who also have been on the Jam session and got their devices) tell me they didn't need anything else that WiFi for that BBM works, so I was really puzzled. If I have in some way did do something wrong?, Blackberry icon is displayed next to the WiFi, is it not enough for BBM work on the Dev Alpha?

    Thanks in advance.

    This problem has been resolved.  You may need to reset your BlackBerry 10 Dev Alpha if you continue to receive this error.

  • navigator_invoke and Dev Alpha

    Hey,.
    so, I'm working with Dev Alpha and try to do simple things like composing email or tweet a message using navigator_invoke, but it seems that Twitter and FB is not available on Dev Alpha? as mailto: and messages: / / doesn't seem to work (error message is "notfound"), is because of Alpha A Dev and this kind of things will work only with Z10 or am I missing something?

    Device is updated, latest sdk, everything is up-to-date.
    Browser and BB world works in collaboration with navigator_invoke
    sample of what I was trying to do:

    navigator_invoke ("mailto:[email protected]?subject=Message&body=Blabla", &err);)

    and

    navigator_invoke ("messages: / /", &err);)
    It should open messages, right? but I just get notfound

    Thank you.

    EDIT:
    I found some similar topics (somehow missed before - sorry), it is possible that the documentation is up to date, I'll try to use it:
    https://developer.BlackBerry.com/native/reference/BB10/com.QNX.doc.bps.lib_ref/com.QNX.doc.bps.lib_r...

    kanaksony wrote:

    Hello

    It works in Dev Alpha.

    void EmailDemo::composeEmailAndInvoke() {
        bb::system::InvokeManager* m_invokeManager = new bb::system::InvokeManager(this);
        bb::system::InvokeRequest request;
    
        request.setTarget(QString("sys.pim.uib.email.hybridcomposer"));
        request.setAction(QString("bb.action.SENDEMAIL"));
        request.setMimeType(QString("message/rfc822"));
        request.setUri("mailto:[email protected][email protected]&subject=A%20Subject&body=That%20body");
        m_invokeManager->invoke(request);
    }
    

    Thanks, but I don't use of stunts, however I tried the equivalent of this natively:

    navigator_invoke_invocation_t *iRequest = NULL;
        navigator_invoke_invocation_create(&iRequest);
        navigator_invoke_invocation_set_action(iRequest, "bb.action.SENDEMAIL");
        navigator_invoke_invocation_set_target(iRequest,"sys.pim.uib.email.hybridcomposer");
        navigator_invoke_invocation_set_type(iRequest,"message/rfc822");
        std::string URI = "mailto:[email protected][email protected]&subject=A%20Subject&body=That%20body";
        navigator_invoke_invocation_set_uri(iRequest,URI.c_str());
        navigator_invoke_invocation_send(iRequest);
    

    now the composer opens, but the fields are empty, but at least something happened!
    But what of FB and Twitter?

    EDIT: fixed code, now fields are filled!

  • Dev Alpha B - stuck with wifi configuration

    I don't know if this is the right forum to do this, so if not, apologies in advance.

    I got my Alpha B, which I think will be helpful because I have apps to fix, and it will be nice to see on a real device instead of the Simulator. Everything was good until I tried to actually use the thing.

    During installation, it seems to require a wifi connection, or it gets stuck. The screen indicates that this step can be skipped, but on mine it will not allow him. And for some reason, it will not collect my wifi. I even tried connections wifi opened two neighbors... but no, nothing.

    Is there a way to bypass the wifi connection? I just want the thing to test my own apps (assume using a usb key will suffice for this)... I could care to use it as a device real w/wifi. And no idea why he knows a wifi problem? Mine (not sure if all this) will not appear what signals wifi is still present.

    Try to update the operating system as described on the Web site, you can search on the flyer that you have with your dev alpha.

    I tried 4 Wifi networks manually, with the new version, there is also the option to scan networks...

  • installation bar on Dev Alpha: 810/var/tmp/bar_665560 failure: cannot access the Member "META-INF/MANIFEST. MF'

    Can someone tell me what in the world does that mean? Get this error when trying to install my application signed my BB10 Dev Alpha device. This error is new to me.

    I troubleshoot-made with Marco a little offline time. Here were the issues being not package and deploy properly, I hope this will help others as well in the future.

    The problem was just a few things.

    Config.Xml

    -Lack of ownership application in the widget element ID

    http://www.w3.org/ns/widgets"
          xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="2.0.0.0" id="your_app_id_goes_here">
    

    Index.html

    -Lack a script include.  I always use the Web Inspector Network tab to make sure all my includes load.  It's amazing to see how many times I did it personally

    -Lack of script include the WebWorks JavaScript BB10.  Don't forget with BB10, we include this

    -Missing "webworksready" event listener.  In the case of Marco, that didn't alter his app, but we must wait for this event before calling WebWorks API now.

    Practical links

    Example of file config.xml blackBerry 10

    https://developer.BlackBerry.com/HTML5/documentation/code_sample_creating_a_bb_widget_config_documen...

    Examples of 10 blackBerry applications

    https://github.com/BlackBerry/BB10-WebWorks-samples

  • Dev Alpha Red LED flashing (10111011) after update 10.0.6.545

    I upgraded my Dev Alpha 10.0.6.545 today and after the update has been done the WiFi is connected but when I tried to browse it wasn't working, so I decided to restart the device to see if, after this, it would work. When I tried to turn on the red light started flashing on the next in the sequence 10111011. I tried to repair the unit by using the Software Desktop 2.4.0 (version 16), which is the same one I used to update the Dev Alpha.

    He began to download the firmware to fix the device, but when it finished and started to install it collapsed it and wasn't moving forward for ~ 1, then I removed the unit and tried again (3 times) and it's the same thing.

    Any ideas?

    Seriously guys, 10 is my new lucky number. On the 10th try to repair it it fixed within 10 minutes.

    You must be persistent for Dev Alpha updated to work as much as I've seen it here by searching on the forums... haha

  • .swf continues to play (Dev Alpha)

    Hey guys,.

    I am a web developer and this is my first Blackberry + AIR experiment.

    I used to implement the .swf into an html file and compile it by webworks, but I discovered that there is another way using the AIR SDK.

    So, I followed the guides online, downloaded the SDK and created 2 .xml files.

    Then I put my .swf in the folder of my project as well.

    Then, I used the GraphicalAid to generate the .bar file.

    During installation I got ' the result::failure 881 application author does not debug author token "which is not the case. However I just sign and then test it in my Dev Alpha camera.

    Here is the new issue:

    The .swf appears as it should, but he continues to play and repeat so as there is no stop() in my actionscript.

    This does not happen in Chrome and it is not yet using the WebWorks method and the older generation of Blackberry 10.

    Maybe there is something wrong with my xml? Here are the parts of my project.xml:

    1. Game.swf
    2. GPU
    3. fake
    4. true
    5. true
    6. fake
    7. fake
    8. fake
    9. standard
    10. fake

    Help me please guys, I don't know what to do.

    Best regards

    Flo

    Yes, it works only for AS3. I'll look into if this is the expected behavior.

  • Remove the SIM Tray Dev Alpha A

    Hello

    I bought a SIM card to check the data on my Dev Alpha A. I'm trying to remove the tray now. I have lost the small tool somewhere. How to remove the SIM tray?

    Figured it out. Just use a paperclip.

  • BlackBerry 10 Dev Alpha is not updated to 10.1 to 10.2

    I'm trying to update my device BlackBerry 10 Dev Alpha OS 10.1 to 10.2. I'm refernce documentation for it. I downloaded Autoload-DevAlphaC - 10.2.0.1157.exe try to update. But the command line stops without updating. Then I tried with loading auto-DevAlphaA_B - 10.2.0.1157.exe. Here he updates without any error in the command line. But the device does not start after that.

    Then, I go down to the previous version of the OS using the load auto-DevAlphaA_B - 10.1.0.1485.exe. Now the unit start with OS 10.1

    Why is this happening?

    I don't think that Dev Alpha (A) could be upgraded to version 10.2. I have tried both official and leaked OS but neither can start the device again. So currently my Dev Alpha holds only still 10.1.1485.

    If you really want to try 10.2, try using Dev Alpha B/C or official Z10/Q10.

Maybe you are looking for