Git Product home page Git Product logo

Comments (6)

pmatos avatar pmatos commented on July 26, 2024

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.

pmatos avatar pmatos commented on July 26, 2024

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.

pmatos avatar pmatos commented on July 26, 2024

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.

jbclements avatar jbclements commented on July 26, 2024

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.

pmatos avatar pmatos commented on July 26, 2024

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.

jbclements avatar jbclements commented on July 26, 2024

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)

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.