本文整理了Java中javax.sound.sampled.Clip.getFormat()
方法的一些代码示例,展示了Clip.getFormat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Clip.getFormat()
方法的具体详情如下:
包路径:javax.sound.sampled.Clip
类名称:Clip
方法名:getFormat
暂无
代码示例来源:origin: ddf/Minim
public AudioFormat getFormat()
{
return c.getFormat();
}
代码示例来源:origin: playn/playn
/**
* There are a number of AudioSystem methods that will return a configured Clip. This
* convenience constructor allows us to obtain a SourceDataLine for the BigClip that uses the
* same AudioFormat as the original Clip.
* @param clip Clip The Clip used to configure the BigClip.
*/
public BigClip (Clip clip)
throws LineUnavailableException
{
dataLine = AudioSystem.getSourceDataLine(clip.getFormat());
}
代码示例来源:origin: threerings/playn
/**
* There are a number of AudioSystem methods that will return a configured Clip. This
* convenience constructor allows us to obtain a SourceDataLine for the BigClip that uses the
* same AudioFormat as the original Clip.
* @param clip Clip The Clip used to configure the BigClip.
*/
public BigClip (Clip clip)
throws LineUnavailableException
{
dataLine = AudioSystem.getSourceDataLine(clip.getFormat());
}
代码示例来源:origin: com.googlecode.playn/playn-java
/**
* There are a number of AudioSystem methods that will return a configured Clip. This
* convenience constructor allows us to obtain a SourceDataLine for the BigClip that uses the
* same AudioFormat as the original Clip.
* @param clip Clip The Clip used to configure the BigClip.
*/
public BigClip (Clip clip)
throws LineUnavailableException
{
dataLine = AudioSystem.getSourceDataLine(clip.getFormat());
}
代码示例来源:origin: io.playn/playn-java-base
/**
* There are a number of AudioSystem methods that will return a configured Clip. This
* convenience constructor allows us to obtain a SourceDataLine for the BigClip that uses the
* same AudioFormat as the original Clip.
* @param clip Clip The Clip used to configure the BigClip.
*/
public BigClip (Clip clip)
throws LineUnavailableException
{
dataLine = AudioSystem.getSourceDataLine(clip.getFormat());
}
代码示例来源:origin: stackoverflow.com
try {
final Clip clip = AudioSystem.getClip();
AudioFormat af = clip.getFormat();
代码示例来源:origin: com.github.bloodshura/ignitium-core
try {
final Clip clip = AudioSystem.getClip();
AudioFormat format = clip.getFormat();
代码示例来源:origin: com.github.bloodshura/shurax
try {
final Clip clip = AudioSystem.getClip();
AudioFormat format = clip.getFormat();
内容来源于网络,如有侵权,请联系作者删除!