Audio playback within an application

So I try to get streaming audio working within my request - and I use the Simulator to make my tests.

I am following the guidelines provided by a number of Web sites - including a Blackberry document and try to play a wav file, hosted on a site.

In principle, this sounds simple.  In practice it won't work for me.  Specifically, I'm tryin to play the wav file http://java.sun.com/products/java-media/mma/media/test-wav.wav and I do this by using the following code snippet:

try {}
String wav = "http://java.sun.com/products/java"+ "
'media/mma/media/test-wav.wav ';
Player p = Manager.createPlayer (wav);
p.Realize ();
p.prefetch ();
p.Start ();
} catch (IOException x) {}
x.printStackTrace ();
} catch (MediaException x) {}
x.printStackTrace ();
}

Well, the good news is that he plays.  The bad news is that it is just a bunch of stuttering cracked that is read.  And here's a little audio snippet end easily playable in the browser (for example)

Any ideas as to what is happening here?

Thanks in advance!

Jim

This problem has been resolved.  The codec used for this audio file was not supported by the Simulator (odd really - seen it's just PCM 11,025 kHZ 16 bit mono.)

It was only a sample for the test... It would simply play in any old J2ME environment, I guess.

My real data are in MP3 format - and I managed to get this working.

Although you might wish to consider why audio PCM fails

BTW the Simulator was in JDE 3.5 8 BB 8330

Jim

Tags: BlackBerry Developers

Similar Questions

  • HP Envy stop my Audio playback

    My HP Envy seems to interrupt my audio playback sound and to hear my music, that I have to restart my computer.  In addition, in Services, I tried 'restart' Audio, but it will not respond.

    If anyone knows how to solve this problem, I'd appreciate it.

    Thank you

    Only happens with headphones? Your sound works normally on the other speakers?

    In addition, what is your PC model number and what operating system are you using?

  • ATL-TAB within the APPLICATION does not work

    I'm a convert from windows and love the mac but Alt - Tab within the application does not work - very annoying. I often have multiple windows in the same application, and if the only way to go is to use 4 fingers Mission control, it's terrible because Mission control lists all windows in a small size and pain to know that you want to go. While with alt - tab, I can quickly cycle or just go to the last which is often I want to go to.

    It is one of the major issues Mac usability for me.

    Any tips? or addons?

    Thank you.

    Cmd -'

    Curiously, this document has the wrong shortcut. Keyboard shortcuts in Mac - Apple Support

    They have to move to the next application window is to go to the previous application window.

  • ThinkPad L420 8 64-bit Audio Playback jitter/Battery/Charging distorting Windows - Help -.

    It's so on the only issue that I have with Windows8 on my laptop, I tried different audio provided OEM drivers

    drivers directly from the Realtek site and I can't address the issue

    Only during the loading of my laptop, or when the notebook is on battery occurs blurred or distorted audio playback. Occurs during playback Flash or the local media using tell VLC playback, sometimes the deformation may freeze or block system

    I tried the drivers Audio, video and my BIOS is the last

    Does anyone else know this problem, also the problem of reading is moved under Windows7 when I had it installed

    It seems my Audio problem and a problem of suspension have been corrected in an update provided Lenovo as

    updated a BIOS linked here

  • Random popping / ticking during audio playback

    Hey,.

    W500 4058-CTO running x 64 Vista Ult using drivers latest 5th Jan.

    I feel random noises clicking / popping during audio playback MP3 of WMP11 on speakers/headphones.

    If I use my headset Bluetooth AD2P no questions, yes mp3 and WMP is fine.

    Someone knows the similar problem?


  • The external speakers with bluetooth audio playback stops working after 20 minutes

    I have a weird problem with bluetooth audio on my Acer Aspire 7600U. I have a bar of his JBL SB200 with support bluetooth and when I'm playing audio to it from my laptop (Sony Vaio) or my phone (Nokia Lumia) it works fine. But during audio playback of the IOA, the soundbar goes off after about 20 minutes in the middle of a song with such as Spotify. I suspect it's something different with the Aspire AIO bluetooth adapter which does not sound bar to stay on. No idea why? Does anyone else have this problem?

    I have now solved. It's another computer, I had who took control of bluetooth speakers every now and then...

  • my driver audio realtak is installing application... How can I install it?

    my driver audio realtak is installing application... How can I install it?

    "Device Manager" allows you to delete the current sound driver and then install the Realtek driver.

    J W Stuart: http://www.pagestart.com

  • No audio playback for hp pavilion m7 running Windows 7

    Following a Saturday night automatic update I lost all audio playback on my laptop. I tried to do a system restore and download and reinstall the audio driver. A bit of a loss here, suggestions?

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp57501-58000/sp57966.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you're done, shut down the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key esc that you start the computer to launch the Start Menu, and then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once this done, do a right-click the speaker icon in the taskbar and select playback devices.  'Speakers and headphones' left click once to highlight, and then click the Set Default button - check if you now audio.

    Kind regards

    DP - K

  • No audio device is installed in the audio playback option

    Hi, I use windows7 family basic computer laptop vaio sony, I started recently in the face of the question with my his laptop. The system is not identify internal speakers and the sound icon is to have a sign of X.

    I tried to update the drivers and all also reinstalled windows again but the problem persists. When I go to the sound icon reading devices it says no audio devices are installed. realtek high definition audio is not visible in the Device Manager section.

    Have tried to reset the default BIOS settings as well.

    Please help what needs to be done now.

    If your computer has problems play a sound, try using the Audio playback problems resolution to solve the problem. For measures and additional information, see o ink below.

    Open the troubleshooting of Audio playback

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-troubleshooterOpen

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx?type=hardware

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    You have a fluorescent lamp next to your computer which could be emitting a rf? This could interfere with the microphone.

    In Windows 7

    Click Start > Control Panel

    Click on hardware and sound

    Under sound, click on manage audio devices

    Under playback (tab)

    Choose speakers you have in your output device

    Click Properties >

    Click levels (tab)

    check if the value is 100% >

    GoTo Enhancments > select Loudness balancing

    Apply and OK

    Should be much stronger now...

    For enhancment bit,.

    and if you have HD realtek soundmanager (R2.37) in your control panel

    Try a classic Equalizer setting

  • Audio playback through headphones and speakers

    Headphones or speakers in windows 7, it cannot have them both?

    Looked at other issues, nothing seemed close.

    My machine has dual boot, Windows 7, XP and Vista ultimate and now XP. In XP and Vista I have the speakers and headphones plugged together, playerd noise, so I could use one or the other by plugging them in front and back taken audio.

    This allows me to play during the day with speakers, and then at night with headphones and no round reaching under my desk to remove the cables.

    Now I use windows 7 and many other issues I have with it, I can't play with speakers or headset until I went through a lot stupid click on deactivate one or choose the other as a default value. Why this has been changed in windows 7 after Vista, it seems totally useless logic. I can turn off my speakers with the power button and get the helmet works. Now, I'm either or. So my new IR headphones are wasted. Please, someone tell me there is a work around?

    It's little interference silliness like this that give me want to stay under XP.

    Much thanks in the meantime someone has found a work around.

    I have my Jabra GN9350 both my speakers for computer, audio playback at the same time. :)

    Here's the trick (and it is verified on 3 other systems Win 7):

    (1) R click on your speaker icon, select "Recording Devices" (if you have the sounds dialog box to the top, it's the 2nd 'Recording' tab)

    (2) click on R in the white space, make sure that the TWO "show disabled devices" AND "show disconnected devices" is checked.

    (3) * now, this step will take some thought for each computer used: on my laptop (HP Elitebook) I get a "Stereo mix" device, ACTIVATE this device.

    4) click on properties, click on the "Listen" tab

    (5) check the box 'Listen to this device', also change the drop-down list below 'read through this device' to be your second audio device

    -To check that you have done this correctly, go back to the tab of the dialog box sound reading, you should now see two of your audio devices showing green graphics small displacement.

    Here are the specific parameters that I have on my laptop, maybe this will help you with your settings:

    Speakers - GN9350 (by default the communications device)

    Speakers - SoundMAX Integrated Digital HD Audio (default device)

    Feature 'Listen' stereo Mix - point this device on my GN9350 headset.

    Paul

  • Auto volume leveling audio playback

    It's really annoying:

    His sound is amplified to sound at a reasonable level. When a strong part of the song comes automatically to the grave level then produce audio quiet parts annoyingly loud & the annoyingly quiet strong part... Sorry it's the best way I can describe this... once again:

    Only happens when its had seconds on silence (eg. break) - at this time the system begins to 'think' base volumes creeping upward for himself. Then when the song begins again you are treated volume which is quiet quickly when the system realizes, there is a higher level of sound through the...

    It's very frustrating because I use my computer to record & thus need to have audio playback to its correct level - not to the level of the computer think it should play to...

    I've raked by looking for an "auto off" option arrangements and have spent a lot of time looking for an answer online.

    Any help you could offer would be greatly appreciated.

    Thank you!

    Hi pablo647,
     
    Welcome to Microsoft Windows 7 answers Forum!

    We would like to get some more information from you to help solve your problem.

    You use any sound card on the computer?

    You can try to play the song even to a differnet headphones or speakers.

    I think it might be a problem with the sound card drivers.

    You can update the drivers for audio devices and try after that.
    1. click on start and then click Control Panel.
    2. click on system and Maintenance, click System, and then click Device Manager.
    Note that if control panel is in Classic view, double-click System and then click on Device Manager.
    3. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.
    4. in the device, expland 'sound, video and game controllers' Manager, the "sound, video and game controllers" right click and go to properties.
    5. navigate to the tab Update and then click on set to update driver.
     
    You can also check on the website of the manufacturer of the sound card and check if they have any updated drivers for Windows 7 and you are trying to install it.

    It will be useful.
     
    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum

  • Cannot change the default audio playback device

    Hello

    I tried to get a sound via HDMI, but after hours of trying, each solution is to change the audio playback device by default (in the volume mixer). My PC allow me to do so! It just won't change current default device (digital output Realtech). Can anyone help? It's driving me crazy.

    PC is HP Pavilion Slimline model s5395a. Using Windows 7.

    Thank you, Bill.

    > I don't know much about computers
    Then, it is the question, if you want to change things in the bios.
    You can make changes so that the pc will not start, so be careful. If you don't change anything else, save.

    It is described here:
    http://support.HP.com/us-en/document/c01884922

    You can try some of the other steps first, access to the bios is described before step 10.
    You can 'onboard audio' the value 'Auto', or just turn it off.

    HTH
    C.

  • Logging within the Application in Release Mode

    Hello world!

    I'm trying to implement logging for one of my applications. So what I did is to follow the directions of this blog

    Logging within your Application. The blackBerry developer blog

    "

    QString file = QString("path/to/mylogfile.txt");

    FILE * file = fopen (theFile.toStdString () .c_str (), 'w');
    slog2_dump_logs_to_file (file, SLOG2_DUMP_LOGS_ALL);
    fclose (file);

    "

    What I need is to save logs to a file and send it by e-mail to the support team.

    The feature described in the blackberry blog post works ONLY in debug / test mode. When running the application in release mode, it seems, the logfile created, contains only platform related messages and all my messages created via the functions of qDebug() of C++ and javascript "console.log ()" are absent...

    Any thoughts anyone?

    Thank you in advance.

    Another problem with the help of slogger, is there a very small buffer. According to what you sign, you can't get all the information you need.

    our solution is probably improved, but so far I have found nothing better.

    We use qInstallMsgHandler to get our own class to handle debugging messages:

    qInstallMsgHandler(LoggerService::logMessage);
    
    void LoggerService::logMessage(QtMsgType type, const char *msg)
    

    in this static method, we check the content of the message and use QtConcurrent::run to write the message to a database sqlite modality.

    To view the log, we use a listview with a db query.

    To share the newspaper read us the db entries in a file, and then share via invocation framework.

  • Audio playback USB and device names record - the enumeration of devices, device INF file or required device driver?

    My gadget usb audio has two "playback devices" and a "recording device".

    It works with the usbaudio.sys driver, but I want to give each channel separate namespaces.

    I found a way in windows 7 to rename the audio device using UI actions (right click, properties, etc.), but I want to do it via usb enumeration, instead of requiring the user to do.

    USB enumeration has a "output terminal device", which has different categories of devices, but these don't map with different names.

    1. is there a a way to change the name of an audio playback and the recording device using the usb enumeration data?

    2. can I do this automatically on a usb hotplug?

    3. an INF file help?

    4. or I have to write my own driver to rename playback and recording devices?

    Thank you

    b\375

    Hi Brett,

    Thanks for posting your query in the Microsoft Community Forums.

    The problem you are having is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.
    Please post your question in the TechNet Forum.

    You can follow this link to ask your question:

    https://TechNet.Microsoft.com/en-us/Windows/dd361745.aspx?f=255&MSPPError=-2147217396

    For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Buzz audio playback from any computer in the House

    In the last day or two, suddenly my laptop Dell XPS Windows 7 had this weird behavior: when playing audio or video, on youtube or other sites, or locally the MP3 files on my computer with Windows Media Player, every once in a while, there's a hum, kind of like when the judges love not something on one of these talent shows and they ring the buzzer.  It's as if Simon Cowell is right there inside my computer, buzzing just once in awhile, at random moments.  It continues for about half a second, and then the video or the audio continues.

    Then when my wife got home, she was complaining about the same thing on his laptop, which has just begun to happen in the past day also.  She had the same problem that watching videos online, or talking to someone on Skype.  She usually use Chrome or Firefox to watch videos, while I was using IE.  It seems that any software or computer is used, and if the file is local or online, happens as long as there is audio playback.

    Doing some research, I notice that someone described a similar problem happening after a Windows Update 4 years ago, and this person had to update some other driver to be compatible with the Windows Update.  I noticed that there was some very critical updates in the last days, and I wonder if they are responsible.  If it is a driver incompatibility problem, I don't know yet how to solve it.  Any help is very appreciated.  Thank you!

    YES!  I was wondering if it was a question of Dell and would make troubleshooting more tonight.  (I needed to understand why Dell DataSafe kept fails, too).  I had noticed the pop-up blue Dell SupportAssist a couple of days, but don't connect it might have caused a problem.  It seems that it is the culprit, because I've been without buzz since I dropped it and restarted.

    Thanks for the help!

Maybe you are looking for