Moderators: roger, 99jonathan, imaqine
byte[] audio = new byte[255];
while (true)
{
byte mode = input.readByte();
if (mode == 0)
{
input.readFully(byti, 0, 700);
LCD.bitBlt(byti, 100, 56, 0, 0, 0, 0, 100, 56, LCD.ROP_COPY);
LCD.refresh();
}
else if (mode == 1)
{
input.readFully(audio, 0, 255);
Sound.playSample(audio, 0, 255, 8000, 50);
}
}audioS = AudioSystem.getAudioInputStream(fileName);
System.out.println(audioS.getFormat().getFrameRate());Sound.playSample(audio, 0, 255, 8000, 50);matejdro wrote:That number actually goes under 255 rarely. However, it does not seem to be causing popping (value is less than 255 like once every 10 seconds, but it always pops).
Users browsing this forum: No registered users and 0 guests