Quantcast
Channel: 質問!ITmedia 新着質問(Java/253)
Viewing all articles
Browse latest Browse all 2439

javax.sound.sampledに関して

$
0
0
こんにちは いつもお世話になっております。 今回もよろしくお願いします。 私は下記のサイトのソースを実行しました。 http://ohwhsmm7.blog28.fc2.com/blog-entry-22.html すると、下記のエラーが発生しました。 【今回の質問】 このエラーの回避方法 そして、回避した状態での音声入出力の方法を教えて下さい。 【エラー】 Exception in thread "main" java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian is supported. at javax.sound.sampled.AudioSystem.getLine(Unknown Source) at Player.(Player.java:35) at Voice.main(Voice.java:5) 【エラー発生箇所】 Playerjava:35 source = (SourceDataLine)AudioSystem.getLine( info ); Voice.java:5 Player m_CPlay = new Player(); 【実行環境】 ・Windows7 ・eclipse luna 【インストールしているJava関係のソフト】 ・Java 7 Update67 ・Java 8 Update 11(64-bit) ・Java SE Development Kit 7 Update 55(64-bit) ・Java SE Development Kit 8 Update 11(64-bit) それではよろしくお願いします。(m´・ω・`)m

Viewing all articles
Browse latest Browse all 2439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>