Play a continuous tone

Hello

I am writing an application that requires to produce long and steady tone. The playTone() function seems to be exactly what I was looking for, but when I tried it on the Tower Simulator (and on my tour too), I was disappointed to find that this function does not behave as described in the documentation of the API rather than the production of constant electronic notes, it produces a piano note that sounds wrong that quickly breaks down and turns off after a maximum of three seconds. Is there a way to work around this behavior, or another approach that works?

I have it. I used the NCH tone generator to make the tone I needed, converted into an mp3 file, then did:

InputStream stream = (InputStream)this.getClass().getResourceAsStream("A440.mp3");
Player tonePlayer = javax.microedition.media.Manager.createPlayer(stream, "audio/mpeg");
tonePlayer.start();

Tags: BlackBerry Developers

Similar Questions

  • Pitch bend wheel on my pc - 300 midi keyboard Roland. The Modulation part works but when I try to pitch bend a note using the same logic of wheel just plays a continuous note. Can someone give me some advice please? Thank you

    Hi, I have a problem with my pitch bend wheel on my pc - 300 midi keyboard Roland. The Modulation part works but when I try to pitch bend a note using the same logic of wheel just plays a continuous note. Can someone give me some advice please? Thank you

    It's a delicate issue... like some patches cannot stipulate pitchbend...

    But to quickly test your pitchbend wheel actually works properly...

    Download the free lunch monitor...

    Snoize: MIDI Monitor

    Run and see if it sees pitchbend data sent by your keyboard... and therefore by logic.

  • Vista/No Sound / could not play the test tone

    I recently upgraded to vista and found out that I have no sound. the driver (vista version) for my advice on sound card seems fine, but when I try to play a song in windows Media Player, I get a msg "Windows Media Player has encountered a problem reading the file. For any additional help, click Help on the Web. "and I also get a"Could not play the test tone"msg when I try to test my speakers. I thought it was because of vista dosent support my shit on board sound card, so I got a new.

    I just installed a Creative Audigy SE and downloaded the driver for windows vista. again, in the Device Manager, everything looks fine, the driver is end, the device works. but I still get the "Windows Media Player encountered a problem while playing the file. For additional assistance, click Web Help. "When I try to play a song, as well as the msg"cannot play the test tone"when I click on the Test button. Please help me, I'm tired of using a computer with no sound.

    the solution is at the end of this thread:

    http://forums.Microsoft.com/MSDN/ShowPost.aspx?PostID=2155198&SiteID=1

    Basically, vista is...

  • you tube videos won't play no continuous buffering?

    videos won't play without continuous buffering?

    Hello markfisher,.

    As well as the information provided by Vinod, you should also be aware that your internet connection speed will also affect how you receive your video. If your internet speed is 8 MB per second or less, chances are that the internet connection is the cause of the problem, especially, if like most of the ISP, you ISP limits the speed of the internet at certain times of the day. For example, the problem happen only between the hours of, let's say 18:00 and 21:30. If this is the case then the ISP is limiting the speed on your line.  The only option, if that is the case, is to upgrade your internet package at a higher speed, i.e. 30MBps.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • No HDMI Audio, could not play the test tone, cannot change the default playback device

    Hello, I have real trouble with my HP Pavilion dv6-2160us experience (with the i3 - 330 M, no dedicated graphics card) Windows 7-64 bit, SP1 PC and I would be happy to help.

    I created a new thread because, despite the fact that many other people have experienced a problem similar to this and have posted what has worked for them, nothing has worked for me.

    The problem (s):

    My main problem is that I can not any audio to play from my PC to my HDTV HDMI.

    When I plug my HDMI cable on my PC and the TV, the TV is recognized in the playback devices, but nothing he can play.

    When I try to test the TV in playback devices, I get an error "could not play the test tone.

    In addition, I want to mention a few other odd behavior that I think can be a part of the main problem.

    In playback devices, I can't change anything. I can't disable or enable a device, I can not set as default playback or communication devices, and I can't save changes to the properties of the device. Whenever I try to change something, as the default playback device, nothing happens, or the changes are immediately reversed.

    The Question:

    How can I get audio to play through HDMI on my PC (is not a problem with the TV, my other machines HP audio playback over HDMI it is fine)?

    What I tried:

    I tried:

    • Change the default playback devices, which I am unable to do
    • The utilities of reading Audio de Windows 7 running in a clean boot state
    • Uninstall and reinstall the driver Intel(r) Audio display
    • Uninstallation and reinstallation of the IDT High Definition Audio CODEC
    • Uninstall the IDT Audio PC program under programs and features
    • Disable the IDT High Definition Audio CODEC

    Nothing has worked.

    The drivers I have are the latest issued by HP

    How can I get this to work? I would appreciate help.

    I'm at the point where I'm willing to try solutions quite technically involved, so feel free to post those.

    Your expertise is greatly appreciated.

    Thank you.

    OK, I finally have the answer for that.

    If you experience this problem even and you want to fix it, you'll need a PC running the same version of Windows 7 that your PC works lot of work but it works without problems, with regard to this point.

    Here's what I did to solve the problem:

    1. Create a system restore point.
    2. Run regedit.exe as administrator.
    3. Go to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices \Audio .
    4. Compare the permissions and attributes of ownership of this key and all subkeys to your work PC.
    5. Change all permissions and property attributes for interest on the defective PC keys as they are the same as those on the operation of the PC.
    6. Restart your faulty computer.

    I hope this helps. It worked for me.

  • ASUS V550C speakers stopped working and receive the message: can not play the test tone.

    Original title: I have an Asus V550C Windows 8 touch screen laptop and all of a sudden my speakers stopped working.

    I have an Asus V550C Windows 8 touch screen laptop and all of a sudden my speakers stopped working.  I've tried everything.  Driver updates: no need, Sound Devices check everything.  It's as if she will not accept the action of the play.  If you hit play on anything he blinks, then take a break again...  It says my device is not functioning...  He just telling me when I test: could not play the test tone.

    Speakers are Realtek High Definition Audio
    Intel(r) Audio display

    I wanted you to know what it was.  GoTo meeting.  I had turned off the microphone for him and he turned it off for my computer everything.  It took me a while to understand it, but I did.  :)

  • Sat Pro L10 - its two continuous tone unusual

    My L10 Pro Sat has begun to emit a two-tone sound. This continues when the speakers are turned off, and even when all sources of energy are removed (sector and battery). Any ideas what is cuasing that and how can I stop it.

    Hello

    I am very interested about your case, but I really don t understand you not at all. Two tone without feeding sounds. It's very strange. I guess that your unit is fairly new and the warranty is still valid.

    On this path, it is really not easy to give you some explanations. In my opinion, you should contact Asp and they should check the device.

  • My 5s viberates but Iphone don't play no not tones

    My 5s I phone vibrates, but does not play the tones, as I put in place.  This seemed to happen almost a week ago.

    Any advice will be appreciated!

    Thank you

    bjdf

    Have you checked the Mute switch along the edge, close the external volume controls. Orange = muted.

  • How is it when videos play my computer don't know the songs or videos. It produces noise weird then plays and continues until the song or video is more

    It sounds like a voice of an alien on the part of the video and then the regular voice will play and then it continues at this rate and I can't get the videos work properly without the charger which sucks.

    Hello

    1. What is the operating system installed on your computer

    2. don't you make changes before the show?

    3. this happens with all or specific files?

    4. have you tried to play these files in another software?

    5. What is the file extension of the file that you are playing?

    6. using windows media player?

    Please provide more information about the problem you are experiencing in order to help you better.

    Please see the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-stop-my-music-from-skipping-or-breaking-up-when-I-play-it

  • I do not mean teamspeak, and when I test my device, I get "could not play the test tone".

    But I still hear sounds. I do not only teamspeak. I tried to change playback teamspeak, but it does not work. Another thing I play, I can hear very well. Anyone know the solution?

    Hello

    1. If it works much earlier?

    2 has there been recent changes made on the computer before the show?

    Please follow the steps below and we update with the results.

    Method 1: I suggest you run the audio Troubleshooter and check.

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

    Method 2: Turn on all audio sources and control.

    a. go to control panel.
    b. sounds and Audio devices.
    c. 'Volume' tab, click on "Advanced" in the section "the Unit Volume."
    d. try without inhibition, all audio sources, if none of them are dumb.

     

     

    Method 3: You can check that the listener is set as the Default Communication device and then check the issue.

    To do this, do a right-click the sound icon in the system tray and select playback devices. Then, right click on the headset on the reading tab and then click set as default Communication device.

    Alternatively, you can try to uninstall and reinstall the audio device driver and check the status.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    For more information, see the article and check.

    Tips for solving common audio problems

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

    Let us know if it helps!

  • BlackBerry Smartphones Blackberry torch plays ringtones ring tones or message

    My blackberry will not ring or notify me of the messages. I continue to miss calls because I get no sound. I checked the settings of profile etc. I know my problems vodafone, then they sent me another handset (I backed up my old camera using the desktop software. My new hadset arived today and I have restored all my data. I still have the same problem. Please help because it makes me crazy.

    Why not try the following:

    Do a security wipe, but does not restore the data. Try a few test calls.

    Once you have completed these tests, SELECTIVELY restore your data (contacts, calendars, messages)

  • Spade continues to play after having reached 500 points

    Why asset stings on Microsoft Internet sometimes allows the play to continue when you reach 500 points?  I have had several games which were apparently won only whether continue to play.  I had a waiting game until my partner and I had almost 700 points.

    Hello
    There are several forums that specifically deal with Windows games and or the Pike and hearts.
    Here are some links that should help you to solve these problems:
    http://windows7forums.com/Windows-7-games/
    http://forums.windowsforum.org/index.php?showtopic=22789
    http://www.Microsoft.com/games/en-us/community/pages/forums.aspx

    Also, here is a link for ideas on how to improve Microsoft products:
    https://connect.Microsoft.com/site831/feedback
    hope this helps
    Eddie B.

  • Notification tone plays do not?

    OK, I have a bit of a problem. After the update to android 3.1 my Xoom no longer plays the notification tone when I receive by e-mail, calendar notifications, Twitter messages etc etc. But it plays well in the system settings menu. Is anyone else having the same problem?

    -MajorPoncy

    Had the same problem after the 3.1 update. Just had to go back and reset the notification parameter.

  • Playlist of YouTube videos will not play always more

    I have Win 7 and FF 18.0.1 the problem I have is recent because it used to work very well.

    When I go on Youtube and want to play a playlist of streaming videos, it plays not always more. When the video page appears that it appears with a red circle "BOLD" and a backslash in it and as soon as I move my mouse over the video portion of the page the red circle goes away then I have to click on the play button in the center of the video page to play. He then played this video and stop. So I go through the same thing again to get the next video to play when all the videos should play without interruption until all are played and this is how it used to work until very recently. I'm guessing that I added a FF add on that is causing this problem. This has happened for a few weeks and I thought nothing about it until today when I tried to play a continuous loop of videos and now I don't know what to add ons that I recently added. Of course, on that I do not know that a FF throw causes this problem. I can play the same playlist of videos with Internet Explorer and they play the way they are supposed to play continuously.

    Thanks for the ideas of all. Some time has passed since I had this problem so I don't know what was the cause. However I think that it ended up being Flashblock. In any case, I noticed that I uninstalled Flashblock. I'm not sure but it seems that it's the first thing I uninstalled and it does not solve the problem. There heck of 81 and I remember even back a month ago and a half what has been done to solve this problem. Sorry about all the...

    Thanks to all those who had suggestions.

    Jim

    =

  • alarm of the iPhone 5 won't play music

    I have an iPhone 5, iOS with 8.

    I set my alarm to play a ring tone instead of a healthy normal alarm, and until very recently, the song plays when my alarm goes off. However, it began to not play the piece and will only play the alarm sound. When I change my alarm, it shows that the song has been set, and it plays when I click on it in the settings. I tried to create new alarms and set it to play the song, but that has not worked.

    I would be grateful for any help or suggestion.

    Thank you!

    Hello pookielala,

    As I understand it, there is a problem of playing a song as a ringtone for your iPhone alarm 5. Try to flip the ring/silent switch on your iPhone to ring, as shown here:

    Ring/silent switch - iPhone

    If the problem persists, try restarting your iPhone as described in the article below.

    Restart your iPhone, iPad or iPod touch - Apple Support

    So long.

Maybe you are looking for

  • Inability to connect to the online store - blank page 70.jt1.ca

    Hello I was unable to connect to the virtual store. It makes me a blank page and 70.jt1.ca-My personal account 33495

  • How can I convert PDF files to text EPUB?

    I want to files ePub simple, legible, without excess of formatting and especially bad formatting such as erratic font size changes, additional line breaks, etc. I want to be able to sideload these of my ebook reader and check these without eye strain

  • view vi as the value of the integer reference number

    Hi all I am trying to create a 'Watch' vi to use for debugging a problem that I have with reference numbers Vi.   When I create a probe for a refnum on the block diagram, it displays an integer that you can understand.  When I try to create an indica

  • Windows upates

    I get the 80070242 error code when I try to update windows, y at - it a fix for this problem?

  • Management podcast

    Hello! I mainly bought the Clip + for its characteristics of podcast, I listen to a lot of podcasts... I used an iPod Touch, but the battery is crap and not reliable (after almost 3 years of good service however...), so I had to find an alternative a