Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sound from WAVE-IN and immediately back to WAV-OUT

 
Sven Mo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello World!
I'd like to write a program that runs in background, continously reads sound values from my sound card (2 channels, 16 bit, 44.100 values per channel per second), calculates 44.100 times per sec. the difference between the left and the right value and IMMEDIATELY plays that difference. My sound card supplies full duplex.
So my question is, is there a class or whatever which does not record or play a full WAV-File or WAV-'line', but gives me IMMEDIATELY the actual sound values? And how can I play sound that I 'create' just in time?
Thanks a lot for any helpful answers!
Sven.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!