You are not logged in.

#1 2004-08-03 19:12:28

DigitalSin
Member
Registered: 2004-08-03
Posts: 12

Alsa sequencer init for awe/sblive (awesfx incl.)

Here are init scripts and pkgbuild for awesfx. I did this, then noticed someone had already posted a build - sorry I don't mean to step on your toes! Since I already went to the work of creating the init-scripts, and being the latest version with some changes here they are.
------

/etc/rc.d/alsa-sequencer:

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/alsa/aseq.conf

case "$1" in

  start)
    stat_busy "Loading ALSA Sequencer"

# SFXLoad requires /dev/sequencer to already exist, but devfs
# creates it when the sequencer device itself is actually created.
# Catch22! Work-around this by removing nodes if they exist
# (sending improper data to these exhibits VERY bad behaviour),
# then create the nodes in the proper locations.
    if [ -e /dev/sequencer ]; then

        rm -f /dev/sequencer

    fi

    if [ -e /dev/sound/sequencer ]; then

        rm -f /dev/sound/sequencer

    fi

    mknod -m 666 /dev/sound/sequencer c 14 1

    ln -s /dev/sound/sequencer /dev/sequencer

    ln -s /proc/asound/oss/sndstat /dev/sndstat

# Last we load the soundbank into the hardware, passing all arguments...
    $aseq_load $aseq_opt $aseq_target

    stat_done
    ;;

  stop)
    stat_busy "Stopping ALSA Sequencer"
# Do nothing actually...
    stat_done
    ;;

  restart)
# The nodes already exist, so all we need is a rerun
    $aseq_load $aseq_opt $aseq_target
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac
exit 0

------

/etc/alsa/aseq.conf:

##. /etc/alsa/aseq.conf
# Configuration file for initializing the sequencer on Awe32/64
# and Emux audio devices.

# Specify the loader to use:
# sfxload for AWE32/64 cards
#         OR
# asfxload for Emux devices
aseq_load=""

# Pass additional arguments here.
#Example:
#-c 35 -r 50 -V 75
aseq_opt=""

# Specify the soundfont/soundbank to load into the device's sequencer.
# NOTE: If target is a symlink, symlink must *not* be relative.
# Example:
# /usr/share/sounds/sf2/default.sf2
aseq_target=""

-----

and as long as I went to the trouble of pasting the rest of it....

PKGBUILD:

# Contributor: My Name <handle@myhost.foo>

pkgname=awesfx
pkgver=0.5.0c
pkgrel=1
pkgdesc="Sequencer support files for Awe32/64 and EMUx (SBLive!) audio cards."
license=GPL
url="http://www.alsa-project.org/~iwai/awedrv.html#Utils"
depends=('alsa-lib')
source=(http://www.alsa-project.org/~iwai/$pkgname-$pkgver.tar.gz)
md5sums=('b4f9192dc6357014215a3d06a99d40f2')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --disable-debug
  make || return 1
  make prefix=$startdir/pkg/usr install
  mkdir -p $startdir/pkg/etc/alsa
  mkdir -p $startdir/pkg/etc/rc.d
  cp ../../aseq.conf $startdir/pkg/etc/alsa
  cp ../../alsa-sequencer $startdir/pkg/etc/rc.d
}

-----

Yes, I remove my email here, but it's in the full tarball that is now in incoming if anyone wants the binaries etc.

Offline

#2 2004-08-04 18:17:23

DigitalSin
Member
Registered: 2004-08-03
Posts: 12

Re: Alsa sequencer init for awe/sblive (awesfx incl.)

:shock: Just realized, it doesn't work properly with udev. If you use udev and patch it please submit the changes to me, so I can include them.

I don't use udev, because I have problems with it (i.e. kdm won't even load) so apologize for not seeing this sooner.

I say again

UDEV does not work

DEVFS works!!!

Offline

#3 2005-02-15 09:58:44

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: Alsa sequencer init for awe/sblive (awesfx incl.)

this is for making midi sound

Offline

Board footer

Powered by FluxBB