Coder Social home page Coder Social logo

umjammer / vavi-sound-sandbox Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 9.01 MB

๐ŸŽต Sound sandbox (JSyn synth, CoreAudio synth, opl3 synth, OPUS Java soud SPI, etc...)

Java 98.61% HTML 0.43% C 0.97%
java sound spi opus audiounit opl3 synthesizer jsyn midi jitpack

vavi-sound-sandbox's Introduction

vavi-sound-sandbox's People

Contributors

umjammer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vavi-sound-sandbox's Issues

SSRC implementation in java

Dear Naohide Sano,

I've found the bug:
in line 977 of SSRC2.java there should be some change

rawoutbuf.limit(dbps * nch * (nsmplwrt2 - delay)); >>>
rawoutbuf.limit(dbps * nch * (nsmplwrt2));

The same issue is for downsample() method.

Now after this correction the output is similar to the C version of SSRC
(number of output samples is the same).

-------- Original Message --------
Subject: SSRC implementation in java
Date: Wed, 14 Jul 2010 01:02:01 +0200
From: Maksim Khadkevich [email protected]
Organisation: FBK
To: [email protected]

Dear Naohide Sano,

First of all, thank you very much for the developing vavi-sound
open-source project! There are a lot of useful tools for audio signal
processing.

Recently I've tried to use your port of SSRC resampler to java. It works
nice, except for one thing: the output audio file is cut for a number of
samples that depends on the input and output sampling rates.

delay = (int) ((double) n1 / 2 / ((double) fs1 / dfrq) + (double) n2
/ 2 / ((double) fs2 / dfrq));

The delay in samples calculated in this line is missing from the
beginning of the output file. At the same time C implementation of SSRC
does not have this shortcoming.

If you have some time, please, could you investigate this issue and let
me know, if it can be fixed.

Thanks in advance for the answer! And again, thanks a lot for your
amazing tools!

--
Best regards,

Maksim Khadkevich

on macos-13 some tests using rococoa fails

macos-13 rococa

java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
	at com.sun.jna.Function.invoke(Function.java:345)
	at com.sun.jna.Function.invoke(Function.java:318)
	at org.rococoa.internal.MsgSendHandler.invoke(MsgSendHandler.java:192)
	at com.sun.jna.Library$Handler.invoke(Library.java:268)
	at jdk.proxy2/jdk.proxy2.$Proxy16.syntheticSendMessage(Unknown Source)
	at org.rococoa.Foundation.send(Foundation.java:240)
	at org.rococoa.Foundation.send(Foundation.java:216)
	at org.rococoa.Foundation.send(Foundation.java:212)
	at org.rococoa.internal.ObjCObjectInvocationHandler.sendOnThisOrMainThread(ObjCObjectInvocationHandler.java:251)
	at org.rococoa.internal.ObjCObjectInvocationHandler.invokeCocoa(ObjCObjectInvocationHandler.java:218)
	at org.rococoa.internal.ObjCObjectInvocationHandler.intercept(ObjCObjectInvocationHandler.java:175)
	at vavix.rococoa.avfoundation.AVAudioFormat$$ByRococoa.initWithStreamDescription(Unknown Source)
	at vavix.rococoa.avfoundation.AVAudioFormat.init(AVAudioFormat.java:45)
	at vavix.rococoa.avfoundation.AVFoundationTest.test01(AVFoundationTest.java:62)

github workflow doesn't work

macos-14 wtf?

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.klab.packetcast.audio.AmplitudeAudioInputStreamTest
2024-02-12 06:29:35,421 [FINE] enter available: 1764044
	at vavi.sound.sampled.alac.AlacAudioFileReader.getAudioFileFormat(AlacAudioFileReader.java:74)
2024-02-12 06:29:35,425 [FINE] error exit available: 1764044
	at vavi.sound.sampled.alac.AlacAudioFileReader.getAudioFileFormat(AlacAudioFileReader.java:79)
2024-02-12 06:29:38,115 [FINE] enter available: 1764044
	at vavi.sound.sampled.alac.AlacAudioFileReader.getAudioFileFormat(AlacAudioFileReader.java:74)
2024-02-12 06:29:38,117 [FINE] error exit available: 1764044
	at vavi.sound.sampled.alac.AlacAudioFileReader.getAudioFileFormat(AlacAudioFileReader.java:79)
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.009 s -- in org.klab.packetcast.audio.AmplitudeAudioInputStreamTest
[INFO] Running MmlTest
Warning:  Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 s -- in MmlTest
[INFO] Running vavi.sound.sampled.opus.OpusTest
2024-02-12 06:29:40,144 [INFO] Time was 103ms
	at vavi.sound.sampled.opus.OpusTest.test(OpusTest.java:117)
2024-02-12 06:29:40,144 [INFO] Done!
	at vavi.sound.sampled.opus.OpusTest.test(OpusTest.java:[120](https://github.com/umjammer/vavi-sound-sandbox/actions/runs/7868088543/job/21464741612?pr=16#step:5:121))
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.168 s -- in vavi.sound.sampled.opus.OpusTest
[INFO] Running vavi.sound.sampled.opus.OpusFormatConversionProviderTest
2024-02-12 06:29:40,469 [FINE] enter available: [127](https://github.com/umjammer/vavi-sound-sandbox/actions/runs/7868088543/job/21464741612?pr=16#step:5:128)120
	at vavi.sound.sampled.opus.OpusAudioFileReader.getAudioFileFormat(OpusAudioFileReader.java:72)
2024-02-12 06:29:40,474 [FINE] finally available: 127120
	at vavi.sound.sampled.opus.OpusAudioFileReader.getAudioFileFormat(OpusAudioFileReader.java:93)
2024-02-12 06:29:40,476 [INFO] IN: OPUS 48000.0 Hz, unknown bits per sample, stereo, unknown frame size, unknown frame rate
	at vavi.sound.sampled.opus.OpusFormatConversionProviderTest.test0(OpusFormatConversionProviderTest.java:49)
2024-02-12 06:29:40,477 [INFO] OUT: PCM_SIGNED 48000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
	at vavi.sound.sampled.opus.OpusFormatConversionProviderTest.test0(OpusFormatConversionProviderTest.java:56)
2024-02-12 06:29:40,610 [FINE] โ˜…1 info: Rococoa Mixer, version 0.0.1
	at vavi.sound.sampled.rococoa.RococoaMixerProvider.getMixer(RococoaMixerProvider.java:34)
Skipping non audio packet org.gagravarr.opus.OpusInfo@1b45c0e mid audio stream
Skipping non audio packet org.gagravarr.opus.OpusTags@11f0a5a1 mid audio stream
2024-02-12 06:36:41,806 [INFO] Start
	at vavi.sound.sampled.opus.OpusFormatConversionProviderTest.lambda$test0$0(OpusFormatConversionProviderTest.java:64)
Error: The operation was canceled.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.