Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 - do nothing smart - all in/all out #21

Draft
wants to merge 30 commits into
base: 5.0.0-spinoco
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Decoder implements Codec {

private final int OPUS_SAMPLE_RATE = 8000;
private final int MAX_FRAME_SIZE = 160;
private final int SAMPLE_LENGTH = 1000000 / OPUS_SAMPLE_RATE; // 1s / 8Khz ~ 125000ns / sample
private final int SAMPLE_LENGTH = 1000 / OPUS_SAMPLE_RATE; // 1s / 8Khz ~ 125000ns / sample


private short[] decodedBuff = new short[MAX_FRAME_SIZE];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,15 @@ public long perform() {
readCount++;
frame = evolve(timestamp);
if (frame == null) {
if(readCount==1)
{
//stop if frame was not generated
isSynchronized = false;
return 0;
}
else
// if(readCount==1)
// {
// //stop if frame was not generated
// isSynchronized = false;
// return 0;
// }
// else
{
timestamp += 20000000;
//frame was generated so continue
scheduler.submit(this,queueNumber);
return 0;
Expand Down

This file was deleted.

Loading