Comments (6)
I just hit this bug as well on 8.3 CS...
For now I symlinked a cs
folder to the existing 3m
, but it still doesn't work.
Test program is the very trivial:
#lang racket
(require rsound)
(diagnose-sound-playing)
Assertion #<procedure:negative?> failed on 0.0
from rsound.
In addition to what @Metaxal said, it doesn't seem that the file https://github.com/jbclements/RSound/tree/master/rsound/private/x86_64-linux/3m/buffer-ad.so should be committed to the repo. It should instead be compiled locally as part of raco setup
.
from rsound.
If I manually run the makefile locally I am getting:
✗ make -f makefile-linux all
raco ctool --cc buffer-add.c
raco ctool --ld buffer-add.so buffer-add.o
link-extension:
/usr/bin/ld: cannot find /home/pmatos/installs/racket-8.3/lib/mzdyn.o: No such file or directory
collect2: error: ld returned 1 exit status
context...:
/home/pmatos/installs/racket-8.3/share/pkgs/dynext-lib/dynext/link-unit.rkt:336:8: unix/windows-link
/home/pmatos/installs/racket-8.3/share/pkgs/cext-lib/compiler/commands/ctool.rkt:252:0
body of "/home/pmatos/installs/racket-8.3/share/pkgs/cext-lib/compiler/commands/ctool.rkt"
/home/pmatos/installs/racket-8.3/collects/raco/raco.rkt:41:0
body of "/home/pmatos/installs/racket-8.3/collects/raco/raco.rkt"
body of "/home/pmatos/installs/racket-8.3/collects/raco/main.rkt"
make: *** [makefile-linux:4: buffer-add.so] Error 1
from rsound.
The linux makefile was old, there's no need to use ctool to compile this teeny tiny file. I abstracted the makefile generator a tiny bit to generate a makefile for linux as well as mac.
With this updated makefile, I can successfully build the libraries for linux. (Really, if you read the source code for buffer-add, you'll laugh. It's tiny tiny tiny.)
I've tested it as far as
raco test -m ./test-s16vector-add.rkt
raco test: (submod "./test-s16vector-add.rkt" test)
10 success(es) 0 failure(s) 0 error(s) 10 test(s) run
0
10 tests passed
... which suggests that the library is compiled correctly at least on that (x86-64, debian 10, cs) platform.
I can't run all tests, because my machine is a VPS with no actual sound hardware.
However, I wouldn't expect this to solve your (@pmatos ) issue with negative numbers, that sounds like a separate issue?
from rsound.
However, I wouldn't expect this to solve your (@pmatos ) issue with negative numbers, that sounds like a separate issue?
Yep - you're right. I still get the negative number abort.
from rsound.
Oh, I see I also didn't address your comment about compiling it as part of installation; unless I'm missing something obvious, that would prevent its being used on systems without a C compiler, which I think is pretty common among students & teachers.
from rsound.
Related Issues (20)
- Request to implement pstream-stop and pstream-pause HOT 4
- Build issue on HEAD HOT 6
- make-harm3tone not exposed?
- note to self; make rs-overlay variable-arity
- Example program from docs fails HOT 1
- No sound when using bluetooth on macOS HOT 1
- rsound/draw: enabling drawing on user provided frame% HOT 2
- Weird interaction with racket-chipmunk HOT 5
- Question: mixing to avoid clicks
- cursor on the text HOT 5
- Return value of `pstream-play` doesn't match documentation HOT 1
- Unwanted noisy output on instantiation
- Cannot install rsound because of portaudio version specification HOT 4
- Raco exe does not work. HOT 1
- Assertion #<procedure:negative?> failed on 0.0 HOT 11
- Don't hear any sound HOT 5
- Issue with portaudio dependency HOT 4
- katy-sliders example does not compile on Racket 8.8
- identifier `beginner-<=' not included in nested require spec in: lang/private/teachprims HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsound.