[LAD] mixing music and sound effects using libao

2015-04-30 Thread dave
I've been playing around with libsndfile, libvorbisfile, libmodplug, and libao to provide background music and sound effects for a game engine. I have a solid handle on making one noise at a time, but I don't understand mixing. At first I thought I would have to write my own mixer and handle

Re: [LAD] mixing music and sound effects using libao

2015-04-30 Thread Hermann Meyer
Am 30.04.2015 um 10:41 schrieb d...@661.org: I've been playing around with libsndfile, libvorbisfile, libmodplug, and libao to provide background music and sound effects for a game engine. I have a solid handle on making one noise at a time, but I don't understand mixing. At first I thoug

Re: [LAD] mixing music and sound effects using libao

2015-04-30 Thread dave
On Thu, 30 Apr 2015, Hermann Meyer wrote: Am 30.04.2015 um 10:41 schrieb d...@661.org: I've been playing around with libsndfile, libvorbisfile, libmodplug, and libao to provide background music and sound effects for a game engine. I have a solid handle on making one noise at a time, but I d

Re: [LAD] mixing music and sound effects using libao

2015-04-30 Thread Hermann Meyer
Am 01.05.2015 um 00:17 schrieb d...@661.org: On Thu, 30 Apr 2015, Hermann Meyer wrote: Am 30.04.2015 um 10:41 schrieb d...@661.org: I've been playing around with libsndfile, libvorbisfile, libmodplug, and libao to provide background music and sound effects for a game engine. I have a sol

Re: [LAD] mixing music and sound effects using libao

2015-05-01 Thread dave
On Fri, 1 May 2015, Hermann Meyer wrote: Am 01.05.2015 um 00:17 schrieb d...@661.org: On Thu, 30 Apr 2015, Hermann Meyer wrote: Hi It seems libao is able to do this. Attached is the example code from the libao side, roughly hacked in a second thread to play to signals simultaneous. Works sta

Re: [LAD] mixing music and sound effects using libao

2015-05-01 Thread Christopher Arndt
> Am 01.05.2015 um 10:34 schrieb d...@661.org: > The premise: There are two buffers of audio which must be mixed. Maybe have a look at SDL_mixer? http://hg.libsdl.org/SDL_mixer/ Chris ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.o

Re: [LAD] mixing music and sound effects using libao

2015-05-01 Thread Cedric Roux
On 05/01/2015 07:49 AM, Hermann Meyer wrote: Am 01.05.2015 um 00:17 schrieb d...@661.org: I'm using Debian Wheezy amd64 without Pulseaudio. Maybe Debian's default setup for ALSA is wrong? There are no /etc/asound.conf or ~/.asoundrc files. Well, here is debian/sid with pulse/jack running.

Re: [LAD] mixing music and sound effects using libao

2015-05-01 Thread Christopher Arndt
Am 01.05.2015 um 11:49 schrieb David Griffith: > I really don't want to do that. My application has a curses interface and I > don't want to pull in lots of GUI dependencies. Maybe Gorilla Audio then? I don't know it, I just found it searching for "audio mixing library". https://code.google.com

Re: [LAD] mixing music and sound effects using libao

2015-05-01 Thread dave
On Fri, 1 May 2015, Christopher Arndt wrote: Am 01.05.2015 um 11:49 schrieb David Griffith: I really don't want to do that. My application has a curses interface and I don't want to pull in lots of GUI dependencies. Maybe Gorilla Audio then? I don't know it, I just found it searching for "a