Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!