Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:24:39+00:00 2026-06-06T23:24:39+00:00

Right, well. First time I’m actually using Java to fix a problem. I bought

  • 0

Right, well. First time I’m actually using Java to fix a problem. I bought a new headphone set called Sennheiser 120 HD; but there’s an issue.
If there isn’t a constant emission of audio then the base for the headphones will eventually time out and turn off. The headphones are spammed with static, which is horrible on the ears. The solution to this for me currently is playing music 24/7 to prevent the static of death. Maybe I’m weird, but I don’t want to listen to music 24/7.

I believe a workable solution for this would be to constantly emit a sound that the base can detect but I can’t hear. The application would need to be efficient since it’s running 24/7.

I’ve been doing some research, but I’m not that experienced with Java. I’m unable to find any library for emitting a certain frequency. Does anyone know of any?

It would be best to get the solution for this within 4 days, before my return policy at the store is no longer valid. Incase if this doesn’t work.

Email from Sennheiser

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:24:40+00:00Added an answer on June 6, 2026 at 11:24 pm

    I think you’ll find that listening to a constant-frequency sound is painful on the ears. However, you could do it something like this, just using standard Java libraries:

    AudioFormat format = new AudioFormat(44000f, 16, 1, true, false);
    SourceDataLine line = (SourceDataLine)AudioSystem.getLine(new DataLine.Info(SourceDataLine.class, format));
    
    line.open(format);
    line.start();
    
    double f = 440; // Hz
    double t = 3; // seconds
    
    byte[] buffer = new byte[(int)(format.getSampleRate() * t * 2 + .5)];
    
    f *= Math.PI / format.getSampleRate();
    
    for(int i = 0; i < buffer.length; i += 2) {
        int value = (int)(32767 * Math.sin(i * f));
        buffer[i + 1] = (byte)((value >> 8) & 0xFF);
        buffer[i] = (byte)(value & 0xFF);
    }
    
    line.write(buffer, 0, buffer.length);
    
    line.drain();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the course of toying with SVG for the first time (using the Raphael
This is my first time using recursion in actionscript so I'm sure that there
This is my first time using JQuery in any of my projects. I have
This is my first time building a UI in Access (using Access 2007), and
We just set up TFS 11 for the first time. Running a gated check
I am building a CRM using a framework (codeigniter) for the first time and
I am using servlets for the first time but I made a lot of
The code below works well right now; however, it's serially executed. I'd like to
Right, Good afternoon all (well, it is afternoon here in the UK!) I am
There are well-known algorithms for cryptography to compute modular exponentiation (a^b)%c (like Right-to-left binary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.