Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Nexster

[java] Accessing the sound card

This topic is 5855 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is it possible to access the soundcard in a Java application or is this out of Java''s scope?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Do you mean just to play some sounds or to write data into SRAM. You won''t be able to actually write into SRAM because the JVM will not let ya.

Share this post


Link to post
Share on other sites

Well, I''ve looked around for the same thing a while ago, and I found this:
http://www.nuel.ca/downloads/synth/zrs-synth-0.95/
It''s a java synthesizer, capable of doing just what you stated you wanted to do. The source code is available, also. But from the short look I had at it, I do not believe it works by directly accessing your sound card. Instead, I think it actually assembles a wav file and plays it via the standard java sound methods. Have a look at it anyway and see if it could be of help to you.

Share this post


Link to post
Share on other sites
Well you can use the sun.audio class for creating 8-bit 8k a second samples for jvm1.0 - jvm1.1 compliant browsers.

This class has been depricated in 1.2 onwards I think so it does depend on your platform....

There have posts on creating sound from arrays b4, even one I started so searching for sun.audio in the java forum should bring them up as the topics have example code in them....

:-)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!