Giter Site home page Giter Site logo

Comments (9)

sqshq avatar sqshq commented on April 28, 2024 4

Was able do reproduce. Can be fixed with apt-get install libasound2, but it better work without it. I'll see what I can do.

The libasound is needed to play a beep sound (NASA quindar tone) on conditional action (trigger): https://github.com/sqshq/sampler#triggers

from sampler.

sqshq avatar sqshq commented on April 28, 2024

1.0.1 was released, the fix for this issue included. Could you please update Sampler and try again?

sudo wget https://github.com/sqshq/sampler/releases/download/v1.0.1/sampler-1.0.1-linux-amd64 -O /usr/local/bin/sampler

from sampler.

baget avatar baget commented on April 28, 2024

didn't work
why does the sampler need libasound?

from sampler.

baget avatar baget commented on April 28, 2024

I'm using it on my personal Windows 10 (1903) computer, you can use VM to test it
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

from sampler.

baget avatar baget commented on April 28, 2024

Was able do reproduce. Can be fixed with apt-get install libasound2, but it better work without it. I'll see what I can do.

The libasound is needed to play a beep sound (NASA quindar tone) on conditional action (trigger): https://github.com/sqshq/sampler#triggers

that solved the issue, maybe you should add it to the README?

from sampler.

sqshq avatar sqshq commented on April 28, 2024

Done.

from sampler.

rowco avatar rowco commented on April 28, 2024

Struggling to solve this dependency on RedHat. Is it possible to make it optional?

from sampler.

sqshq avatar sqshq commented on April 28, 2024

Yes, that's the plan. I'll try to figure out how to do that without removing sound tone functionality completely. Right now the binary needs to dynamically load libasound at runtime, that's why we are failing on startup.

Any ideas are welcome.

Oto player also causes me troubles with cross-compilation for ARM.
Need to do something with it.

from sampler.

bartoque avatar bartoque commented on April 28, 2024

I ran into the same issue on a system I am not the admin of. To have an option to disable the sound feature altogether would be handy.

Wrote a small wrapper script that sets the LD_LIBRARY_PATH to include the directory that the sampler binary is located in and copied over the libasound.so.2 from another linux system. Then at least I can run sampler.

Didn't test using a trigger to get a sound, I assume it would break as the lib file by itself might not be enough for it to work...

sampler.sh :

#!/bin/sh

if [ -n "$LD_LIBRARY_PATH" ]; then
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
else
  LD_LIBRARY_PATH=./
fi
export LD_LIBRARY_PATH
exec ./sampler-1.0.2-linux-amd64 "$@"

from sampler.

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.