English 中文(简体)
为什么音频文件不同?
原标题:Why audio files sound different?
  • 时间:2011-10-28 11:34:43
  •  标签:
  • java
  • audio

I recorded some audio files that must be played from java. I did it about half-year ago. Now, when I add files, they sound as if being sped-up with higher pitch. Old files sound normally, new ones don t. I suppose there is something that has to be changed in audio parameters. What could it be?

这套法典是Im, 用来操作.wav文档:

AudioInputStream result1 = AudioSystem.getAudioInputStream(new File("/home/nikkka/Desktop/alphabet/result.wav")); 
DataLine.Info info = new DataLine.Info(Clip.class, result1.getFormat());
Clip clip = (Clip) AudioSystem.getLine(info);
clip.open(result1);
clip.start();
最佳回答

有可能说明显而易见的......

如果旧档案仍然被罚款,而且新档案没有价值,那么,对于你被记录<>的方式,它必须有所不同。 新档案。

它与真正的问题一样,与方案规划毫无关系,更不用说是 Java。


当然。 但事实是,一把旧的档案记录在环境中,实际上不记得。

我的建议是,在你能够再次记录适当发挥作用的档案之前,不要 settings。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...