This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ContinuousAudioDataStream not working  RSS feed

 
sam onikosi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone

I am trying to make my audio loop and i tried the code below



but is not working.
i was thinking may be API is not work with java 7 because i got the following warning (AudioStream is internal proprietary API and may be removed in a future release);

please help or if you have another way of loop audio please let me know.

Thanks
 
Campbell Ritchie
Sheriff
Posts: 55292
156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case don't use AudioStream; it is obviously in a com.sun. package.
Have a look in the Java Tutorials.
 
sam onikosi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ritchie
Thanks i got the link but i didnt really get what is wrong

what should i use instead of that
 
Campbell Ritchie
Sheriff
Posts: 55292
156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know. What do the tutorials suggest?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"is not working" gives us nothing to work with: TellTheDetails

Personally I wouldn't expect any code to work that completely ignores I/O exceptions. You should never do this:
catch (IOException ex) {}

At least print out the stack trace so that you will see it.
 
sam onikosi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All i needed to is what Ulf Dittmer said, with that i got an error and i was able to make proper corrects, although i later use Clip


and it works well.
Thank you very much good people.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!