activate the speaker by programming

Hello

I'm working on the platform bb10. I need activate speaker through programmatic functionality. I'm developing voip application. in the audio library to talk about something like that.

unsigned int audioman_handle;

Acquire a handful audioman. Start it without "sursi", which means that its

dodging and routing rules are effective immediately.

If (audio_manager_get_handle (AUDIO_TYPE_DEFAULT, / / default Type))

0, / / this pid

false, / / Start 'closed '.

(& audioman_handle) == EOK) {}

Use audio_manager_set_handle_type to also replace the routing paths

If (audio_manager_set_handle_type (audioman_handle, / / handle audioman))

AUDIO_TYPE_DEFAULT, / / use the same type

AUDIO_DEVICE_SPEAKER, / / Force routing to the speakers for output

(AUDIO_DEVICE_DEFAULT) == EOK) {/ / no preference for the routing entry.}

Do what you would normally do here with libasound...

// ...

}

}

I will insert in this code or any other way need to implement features of speaker. Please somebody guide me.

Kind regards

Marsault Reddy. G

Hi all

put the first argument as AUDIO_TYPE_VOICE instead of AUDIO_DEVICE_DEFAULT

audio_manager_set_handle_type (audioman_handle, / / handle audioman)

AUDIO_TYPE_VOICE, / / use the same type

AUDIO_DEVICE_SPEAKER, / / Force routing to the speakers for output

AUDIO_DEVICE_DEFAULT);

Tags: BlackBerry Developers

Similar Questions

  • Cannot save via the speaker through programs such as Audacity. Solvable?

    Cannot save via the speaker through programs like Audacity without horrible sound quality. Solvable?

    Hello

    • What happens when you try to save through the loudspeaker?
    • You receive an error message?
    • If it works well before?
    • What were the changes made before the issue started?
    • You are able to register normally?
    As you can not record with audacity, the problem seems to be related to the audacity.
    I suggest you to contact the support of Audacity for assistance on the issue. See the help link - below

    http://Audacity.sourceforge.NET/contact/

  • How to activate the start up programs that have been disabled?

    Can I activate the start up programs that I disabled before?

    I'm sorry. I thought since you disabled you knew them how. In addition to what Walter provided, if a program is not listed in msconfig, you can drag a shortcut to: start | All programs | Startup folder.

  • How to activate the speaker during calls?

    I can't press it on the body is even black as the bluetooth button when the bravo will not connect to the device

    I can turn on the silent, hang up, dialpad and add call (there is gray buttons)

    As shirleya1 has posted in another thread, it may be a mode of the TTY is on your phone that is making this happen. In any case, to verify, fo "menu", "Settings" + "Call settings" and check if TTY mode is enabled or disabled. Apparently, if it is enabled, it disables the speaker option. No guarantee that it will work, but it's worth a try.

  • How to activate the face recognition program

    * Original title: HOW can I turn ON

    HOW TO ACTIVATE FACIAL TOSHIBA FOR HP C6556 SATELITE WIN 7

    Hello

    Please follow the steps below and check if that helps.

    How to use facial recognition to a Toshiba laptop:

    a. click "Start", "facial recognition" in the search field located at the bottom of the men and press "OK" to launch the tool of management of Toshiba face recognition.

    b. click "save face." Before you begin, make sure that your environment is lit so that the image used for facial recognition is clear and easy to identify.

    c. click 'Next' to start the configuration of Toshiba face recognition.

    d. align the image of your face with the circle displayed on the configuration of Toshiba Face Recognition tool, then click on 'Next' to break the image.

    e. examine the image and click on "Finish" If the image is sufficient. Click 'Previous' to take the photo, if you find any issues with the photo.

    f. connect to your computer using facial recognition by click "Face Recognition", the log on screen. The webcam of Toshiba lights to verify that your face image and connect to your laptop.

    If you are having problems, I suggest you to contact Toshiba support for assistance.

    http://forums.Toshiba.com/

    Let us know if it helps!

  • Hello.  Despite having an active account, I have connection on the site etc... when I activate the creative cloud program and enter my data, activate the hourglass but crashes, do me.

    cc_block.jpg

    Ernesto in this case I would advice you to Contact Customer Services where the agent can remotely on your machine and solve the problem for you.

  • How to disable the speaker during the phone call IOS9

    Several times I made a call on my iP6 (IOS9) and tour on the speaker so that others might listen/talk.  Unfortunately, the sound quality was so bad that we could not understand the other person, so I decided to turn the speaker off. and continue with the phone to my ear.

    Never could understand how do.  I've been preoccupied to kill the phone call if I did too.

    Press the button that you used to activate the speaker during the call, if necessary

    It will bring up a menu of all the devices, you can send the call at that time - bluetooth, car, iPhone

    You can choose whoever you want and call hovers over seamlessly

    (1189)

  • HP emvy 15 core i5 laptop with speaker internal beats. Bat the speaker does not?

    Hello

    I'm usign hp envy 15-j039tx core 15 windows 8.1...

    This laptop came with the internal speaker of beats.

    I searched internet thorugh but I find canoe and pilot realted to that.

    What should I do to activate the speaker beats NSB.

    looking forward for your help.

    Hello

    Beats Audio interface is provided by the IDT HD Audio software - version latest for your laptop can be found on the following link.

    http://ftp.HP.com/pub/SoftPaq/sp63501-64000/sp63555.exe

    Kind regards

    DP - K

  • Making a telephone call through the speaker

    I'm making a call from a Java application via the speaker place the helmet.  Here is my code:

    try {}
    Player p = Manager.createPlayer ("file://src/www/blank.wav");
    p.Realize ();
    p.prefetch ();
    Check [] c = p.getControls ();
    for (int i = c.length - 1; i > = 0; i--) {}
    If {(c [i] instanceof AudioPathControl)
    APC AudioPathControl = c (AudioPathControl) [i];
    apc.setAudioPath (AudioPathControl.AUDIO_PATH_HANDSFREE);
    }
    }
    p.Start ();
    } catch (Exception e) {}
    Log ("ERROR:" + e);
    }
    Call of PhoneArguments = new PhoneArguments)

    PhoneArguments.ARG_CALL, "8005551212");

    Invoke.invokeApplication (Invoke.APP_TYPE_PHONE, call);

    But the call still goes through the handset instead of the speaker.  I'm doing something wrong?  Is this really possible? I find it strange that I need to go through the process of playing a media file just to tell the phone to activate the speaker.

    -Jeff

    Turn on the speakerphone of the execution of the menu item in the phone app.

  • ERROR: Apple iPhone upgrade program-Apple store do not activate the phone or sell me IUP

    So I went on the launch day after waiting inline for more than 90 minutes for a booking of IUP.

    I booked an iPhone ATT 7 because there is no available T Mobile phone because I really wanted to participate in the program of upgrade.

    This forum said I could just swap the ATT with TMO, when I arrived at the store - BAD!

    The representative of the store Apple says if I booked a phone ATT should I start or use an existing att.

    He could just let me no Exchange TMO SIM I had...

    Bank of IUP and the citizen requires the carrier be activated in order to get their hands on the IUP program, he said.

    Suppose that there is little money 'trunk' back-end that Apple and the Bank are paid by the carrier?

    I ended up buying the phone outright without AppleCare and came out with a pay phone.  Sold the next day to a friend who wanted a 7 +.

    So now I'm waiting for Apple to repopulate the TMO phones...

    So beware that you can't just swap SIM cards as previously reported by other members of the forum!

    I thought that the FAQ made quite clearly. - http://www.apple.com/shop/iphone/iphone-upgrade-program. If you wish to register by using the payment plan (my emphasis added):

    When I buy with the iPhone Upgrade Program, is my iPhone 'unlocked '?

    Yes. You can select a new mobile provider or stick to one you have. , We activate your iPhone on your choice of AT & T, Sprint, T-Mobile and Verizon. Once your iPhone is activated, it remains unlocked.

    If you pay in full in and out of the phone (and not enroll in the program to upgrade at all), so no activation is required as part of this process, and you can then throw the SIM included and exposed to one of your choice.

    Since it was announced, the program of upgrading the range always said that you can not leave the store without activation of the service with a participating carrier. However, you are not under any contract and can cancel this service, as you wish. Your device is not locked to the holder of the SIM card, it came with.

  • How to activate the icon of speaker on the CONNECTED screen selection?

    How to activate the icon of speaker on the CONNECTED screen selection?

    Hi leross,.

    I don't know what app you ask on the sound settings for your Apple Watch.  But, in general, you choose your Apple Watch as a source for your music.  Once you pair your Apple Watch with a bluetooth headset, you will be able to adjust the volume.

    Listen to music on your Apple Watch

    Play music from your Apple Watch

    You can also enjoy the music on your Apple Watch without your iPhone when you pair with a Bluetooth headset. Open the music application, scroll up, then on your Apple Watch to choose it as a source. Then scroll down and tap one of these options:

    • Playback in progress. Play / pause what is currently playing on your Apple Watch.
    • My music. After a sync a playlist to your Apple Watch, you can browse your music by Albums, artists and songs.
    • Playlists. Follow the steps below to sync a playlist to your Apple Watch.

    Take care

  • XP Pro SP3 programs fax everything works except will not activate the modem.

    All the routines of fax machine worked correctly in the past, BUT without warning (which was checked and working properly) the modem is more will not activate when the fax software is responsible for sending the message.  I was not able to find hardware problems and even after removing and reinstalling the MS fax routines the modem will not activate.  Would appreciate any ideas about the solution.  Thank you.

    It is probably not the modem firmware, although it could be that the modem driver is corrupted.  In both cases, however, a visit to the site of the manufacturer of the modem is in order.

    Exactly how did you determine that the modem is working properly?
    Have you looked in the Device Manager?
    Have you used the 'button interrogate modem' tab of the property sheet for the modem ' Diagnostic'?
    Have you tested a data connection using HyperTerminal?  If you do not know the phone number of a "Bulletin Board" (apparently some of these still exist) or the IP address of a server telnet, just to open HyperTerminal and see if you can dial any phone other than the line number to which your modem is connected.

    Thank you for your understanding, PML.  I had used all of the tools you mentioned EXCEPT try another modem program!  HyperTerminal doesn't activate the modem, the feature has been confirmed.  I also had a problem with the new creation of file and folder (program installs, etc) setting not permissions to a level of total control of my identifying specifically used (Admin level) which, of course, can cause certain issused orders either by keyboard or input to fail (often with no indication of the cause of failure) program.  Realizing that this situation might be involved with the problem of the fax modem that I started to study the folders and files that are used by the routines of MS Fax.  A lot of the files/folders did not the permissions defined by giving total control of my ID so I adjusted the.  The modem is now triggered by the routine of fax!  Thanks for making me think a bit out of the box (at least my usual box) and providing the index (another modem using program to test the feature running) problems.

    Now if I can only figure out why (or what has changed in my system) which causes the folder/file creation process in Blons class "Admin" from my user and privileges not setting high enough!  GG

  • Error message: this action cannot be completed because the other program is busy. Choose ' switch to ' to activate the busy program and correct the problem

    Original title: server busy

    I get a popup server busy with the message: "this action cannot be completed because the other program is busy.  ' Choose ' switch to ' to activate the busy program and correct the problem.  There are two buttons"'Switch To' and 'Retry '.  Neither fixes the problem and I do not understand what they are talking about.

    Hi adarb,

    1. when exactly you get this message?

    2. what applications do you use when you get this message?

    Method 1:

    You can restart the computer and check if it helps.

    Method 2:

    You try to perform a clean boot. A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After you have used the boot is a way to solve your problem, you can follow the steps to configure Windows XP to start normally.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to activate the Sleep function to put the computer to sleep if a program is open?

    I have Windows Vista basic on a desktop Dell 530.  I found that if I have a program or application running (such as I-tunes or windows media player) then the Sleep function will not put the computer to sleep.  How to activate the Sleep function to replace these programs and put the computer to sleep?

    Note: This is how it was with windows XP, the Sleep function would put the computer to sleep no matter what was running, he was reliable, if you left the computer and I forgot that you had something running.

    Thanks for your help.

    Hi kevino4130,

    If you disable sharing on your computer (not only the power settings) of media, it should allow him to enter the mode 'sleep'.

    See if that does not solve your problem and let us know.

    Dave D

    Dave D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I bought an annual subscription, the invoice is paid, but I can still only download programs demo versions. Why? and I have to do to activate the software?

    I bought an annual subscription, the invoice is paid, but I can still only download programs demo versions. Why? and I have to do to activate the software?

    I contacted Adobe support and they helped to solve my problem:

    My problem was with the "hosts" file using Adobe. Because of the way he wrote Adobe couldn't see my subscription and only saw me as a trial license.

    I was instructed to download the Adobe Creative Cloud Cleaner Tool for Mac and by accepting the agreement, once

    Click on the chosen "Difficulty Host File" tab.

    Click on "selected cleaning."

    -This should fix the errors with your hosts file and allow your membership to be recognized!

    Hope this helps

Maybe you are looking for

  • File format Consortium and 3mf 3MF

    Can anyone give me some information on the consortium 3MF and how to participate.

  • The update installs several times

    No matter who managed to het this KB to repeat update. its driving me crazy. just installed his back.

  • Need a tool to identify the most cpu consuming thread.

    I have the database Oracle running on Windows 2008 server edition. Recently the oracle process has begun to consume 100% cpu it is not the particular moment where it happens. This is why I need a tool to check the particular thread in oracle.exe proc

  • I have a HP xw4100 workstation who died in the world.

    The only thing it does is an error code on the power button LED blink.  It's 3 Red blinks followed by a two second pause.  This error message is not found anywhere in the HP manuals.  There is an error code for two, and a red flashing which is either

  • Query with large elapsed time

    Hi I use version 11.2.0.3.0 of oracle.We have an executed query last night for around ~ 21hrs and then finished. I check sql execution history in OEM section monitored sql and and I saw the DB time is around 27 ~ dry only, while the elapsed time is ~