Package Details: sbagen 1.4.5-7

Git Clone URL: (read-only, click to copy)
Package Base: sbagen
Description: A binural brainwave generator
Upstream URL:
Licenses: GPL
Submitter: prurigro
Maintainer: prurigro
Last Packager: prurigro
Votes: 23
Popularity: 0.000000
First Submitted: 2008-04-27 23:34
Last Updated: 2020-07-31 04:44

Latest Comments

1 2 Next › Last »

prurigro commented on 2020-07-31 04:43

Awesome, your patch did the trick, thanks!

I've pushed an updated package and added you to the credits in the PKGBUILD

c4t0 commented on 2020-07-31 03:16

I'm getting a linking error on calcNow. That might be due to -O3 optimizations.

Maybe there are some linker flags to make it work, but a workaround is the patch the sbagen.c:

-inline int calcNow() ;
+inline static int calcNow() ;

in three places, do the trick.

mindsystem commented on 2014-07-21 17:32

Simply adding 'gcc-multilib' and 'lib32-glibc' to the PKGBUILD breaks things for 32bit users. See for details on adding 64bit specific dependencies.
What should be done is something like this:
depends=('bash' 'perl')
makedepends=('libmad' 'libvorbis')
if test "$CARCH" == x86_64; then

prurigro commented on 2014-07-20 16:39

@The-Compiler: Thanks for the feedback! I think the issue is that you need gcc-multilib (and not simply gcc) to properly build it, and I'm guessing it's the binaural-analysis tools if this wasn't the case before (if you didn't want to have 32bit on your system). In any case, let me know if you still aren't able to build sbagen after satisfying the new dependencies. Cheers

The-Compiler commented on 2014-07-20 14:36

This doesn't build anymore (on 64bit) after the last upgrade:

prurigro commented on 2014-07-17 12:22

This latest release:
* updates the PKGBUILD to the current standards (complies with namcap)
* fixes dependency issues
* fixes ogg support
* patches the examples that use river*.ogg so you don't need to be in the same directory as the ogg files to play them
* fixes an issue with the default build leaves sbagen with an executable stack
* removes the dependency on aoss and instead expects the "snd-pcm-oss" module to be loaded and any users running sbagen in the "audio" group
* adds the binaural analysis tools pack
* adds the arm architectures (though I've only tested on armv7h)

prurigro commented on 2013-09-27 07:21

The package has been updated! Changes include:
1. libmad and libvorbis have been added to the deps thanks to @fergie for pointing out the problem and @The-Compiler for the answer!
2. Since 99% of Arch users are now using Alsa (or something like Pulse on top of Alsa), and not OSS, I've included alsa-oss as a dep, and the package now installs three commands:
sbagen-oss: The unaltered program using OSS, previously installed as 'sbagen'
sbagen-alsa: A new script that works just like sbagen-oss except using Alsa
sbagen: A symbolic link to sbagen-alsa
3. The PKGBUILD has been updated to the new standards (I've been slowly making my way through the packages I maintain and am finally getting close to complete!)
4. The sbagen.install file now runs on installs like before as well as upgrades now too, and it's been updated to reflect the changes as well as hopefully make things a bit more clear

Let me know if there are any issues or ideological complaints concerning the changes and I'll do my best to find a resolution- Cheers! :)

The-Compiler commented on 2013-08-15 18:57

This should have libmad and libvorbis added to it's dependecies:

/usr/bin/ld: cannot find -lmad
/usr/bin/ld: cannot find -lvorbis
collect2: error: ld returned 1 exit status

Also, the packaging stuff should be split to a package() function, not in build():

==> WARNING: Using a PKGBUILD without a package() function is deprecated.

Anonymous comment on 2013-07-09 02:34

I had trouble getting soundfile support working.

Changing "gcc -DT_LINUX -Wall -O3 -s -lm -lpthread -lmad -lvorbis sbagen.c -o sbagen" to "gcc -DT_LINUX -DMP3_DECODE -Wall -O3 -s -lm -lpthread -lmad -lvorbis sbagen.c -o sbagen" gets MP3 support working, but defining OGG_DECODE leads to compilation errors

prurigro commented on 2010-10-18 12:08

Revision 5 has been released to include the rhybag utility ->