小编Jus*_*tin的帖子

如何在Java中播放Opus编码音频?

在播放解码后的音频时,我设法制作了各种各样的声音,从潺潺到尖锐的恶魔吟唱.最接近的声音类似于在快进和播放中播放仅持续约15秒.我已尝试使用解码和AudioSystem API方法的大量参数组合,似乎没有任何工作.

那么,导致这种音频失真的原因是什么?

此文件的Opusinfo显示以下内容:

Processing file "test.opus"...

New logical stream (#1, serial: 00002c88): type opus
Encoded with libopus 1.1
User comments section follows...
     ENCODER=opusenc from opus-tools 0.1.9
Opus stream 1:
    Pre-skip: 356
    Playback gain: 0 dB
    Channels: 1
    Original sample rate: 44100Hz
    Packet duration:   20.0ms (max),   20.0ms (avg),   20.0ms (min)
    Page duration:   1000.0ms (max),  996.8ms (avg),  200.0ms (min)
    Total data length: 1930655 bytes (overhead: 1.04%)
    Playback length: 4m:09.173s
    Average bitrate: 61.99 kb/s, w/o overhead: 61.34 kb/s
Logical stream 1 ended …
Run Code Online (Sandbox Code Playgroud)

java audio ogg opus jitsi

9
推荐指数
1
解决办法
4784
查看次数

Java Generics E extends Comparable <E>留下警告

我正在尝试创建一个Generic类,E extends Comparable E但我在Eclipse中收到一条警告说:

LinkedList.Node是原始类型.应该参数化对泛型类型LinkedList E .Node E的引用

这是代码:

public class LinkedList<E extends Comparable<E>>



{
    // reference to the head node.
    private Node head;
    private int listCount;

    // LinkedList constructor
 public void add(E data)
    // post: appends the specified element to the end of this list.
    {
        Node temp = new Node(data);
        Node current = head;
        // starting at the head node, crawl to the end of the list
        while(current.getNext() != null)
        {
            current = current.getNext();
        }
        // …
Run Code Online (Sandbox Code Playgroud)

java generics

3
推荐指数
1
解决办法
1031
查看次数

标签 统计

java ×2

audio ×1

generics ×1

jitsi ×1

ogg ×1

opus ×1