Erreur de compilation sur Eclipse
Salut tous
j'ai cette erreur quand j'execute mon code java :
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian not supported.
Et voici le code : je sais pas pourquoi le bigEndian et littleEndian ne sont pas supporté :
Code:
1 2 3 4 5 6 7 8
| private AudioFormat getAudioFormat(){
float sampleRate = 44100;
int sampleSizeInBits = 16;
int channels = 2;
boolean signed = true;
boolean bigEndian = true;
return new AudioFormat( sampleRate,sampleSizeInBits, channels, signed, bigEndian);
}//end getAudioFormat |