Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet won't play compressed audio clips

 
Ken Buxton
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that it won't play certain WAV files. I have deducted that it is because of compression. The only file that I can play is not compressed. What do you think?

//this is part of the code where I load the clip...
//-------------------------
final String strPath = "RESOURCE\\WAV\\";
this.showStatus("Loading sound file :" + strFile);
return this.getAudioClip(this.getCodeBase(),strPath + strFile);
//
//this is part of the code where it plays
//--------------------------
if (txtPaneTypeThis.getText(intCurrentTextPos,1).equals(String.valueOf(keyBoard[y][x].chrLetter)))
{
keyBoard[y][x].audioLetter.play();
System.out.println(txtPaneTypeThis.getText(intCurrentTextPos,1));
System.out.println(String.valueOf(keyBoard[y][x].chrLetter));
//
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic