Re: DPortAudio

2011-07-21 Thread Andrej Mitrovic
Oh I completely neglected that libsndfile automatically loads any filetype it supports. You can open FLAC's as well as wave's and other filetypes in the waveplayer example. But it loads the file all at once and doesn't use any buffering, so you can't load really big files because the memory allocat

Re: DPortAudio

2011-07-20 Thread Andrej Mitrovic
I've fixed the performance issue with the wave player example. Instead of constantly redrawing a large amount of data (it would max out my single core), I've employed a caching technique. Basically, the waveform only needs to be redrawn when the window size changes. So I hold two buffers, one for

Re: DPortAudio

2011-07-20 Thread Andrej Mitrovic
On 7/20/11, Johannes Pfau wrote: > You have to compile like this: > dmd pa_devs.d ../portaudio/portaudio.a -I.. -L-L/usr/local/lib > -L-lportaudio > > The -L-L/usr/local/lib is maybe not necessary, depends on > if /usr/local/lib is in your standard link path. > If you then run the program and it c

Re: DPortAudio

2011-07-20 Thread Johannes Pfau
t; >LD_LIBRARY_PATH=/usr/local/lib >export LD_LIBRARY_PATH > >I've also tried manually copying the two (I don't know why there's >two) shared libraries to the local folder, the libportaudio.so and >libportaudio.so.2 files. > >Command was: >andrej@andre

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
Before you ask, it was a new DLL. I never had it in my repo before, not even in an earlier changeset, or in any of my other repos.

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
Btw, I've noticed something very interesting. I've pushed a 2.2 megabyte DLL in less than 2 seconds to the repo. That's impossible with my limited ~20Kb upload speed. I wonder if github does some kind of caching, if it does it probably did a hash check on my file, got a match, and just copied an ex

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
I've just added a brand new GUI example! This time it's a wave player that draws the waveforms of the left and right channels of the wave file, and also draws the playback position as a typical sequencer would do. It also allows you to change the playback position, just point and click! Here's a

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
The C examples compile and run fine, so I must be doing something wrong on the D side.

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
Ok this does the trick: nm -D libportaudio.so It does list all of those functions though.

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
IOW is there a utility I can use on Linux to list .so exports?

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
LD_LIBRARY_PATH I've also tried manually copying the two (I don't know why there's two) shared libraries to the local folder, the libportaudio.so and libportaudio.so.2 files. Command was: andrej@andrej-VirtualBox:~/Desktop/dev/DPortAudio/tests$ dmd pa_devs.d ../portaudio/portaudio.a -

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
On 7/20/11, Jonas Kivi wrote: > Great stuff. I hope you get it to work on Linux as well, as I don't want > to start messing with it until somebody else has gotten it working. Sure, I'll test it on Ubuntu sometime soon and see how it works there.

Re: DPortAudio

2011-07-19 Thread Andrej Mitrovic
On 7/20/11, Jonas Kivi wrote: > That would be nice. I've been meaning to test PortMidi to get some midi > controls for my app (the Pihlaja video viewer thing). There's bindings for that too (although only Windows was tested): https://github.com/AndrejMitrovic/DPortMidi You might be interested in

Re: DPortAudio

2011-07-19 Thread Jonas Kivi
PortAudio. Currently it's only built on Win32 platforms, but I'll see about getting it to work on Linux as well. Project link: https://github.com/AndrejMitrovic/DPortAudio It has about 15 ported tests, with a few dozen more to do. Great stuff. I hope you get it to work on Linux as well, a

Re: DPortAudio

2011-07-15 Thread Andrej Mitrovic
PortAudio is really just a uniform layer over APIs which already exist on the platform, so any synchronization problems those APIs have will be reflected in PortAudio. I did some reading about this in the portaudio newsgroups, and synchronization seems to be a difficult issue to solve. I'll resear

Re: DPortAudio

2011-07-15 Thread ponce
the above reasons (and because I've worked on PortMidi as well), > I've started my own bindings to PortAudio. Currently it's only built > on Win32 platforms, but I'll see about getting it to work on Linux as > well. > > Project link: https://github.com/AndrejMitrovic/D

DPortAudio

2011-07-14 Thread Andrej Mitrovic
I'll see about getting it to work on Linux as well. Project link: https://github.com/AndrejMitrovic/DPortAudio It has about 15 ported tests, with a few dozen more to do. It also has one standalone example, in which you can play your qwerty keyboard and the app will play a sinewave at a cer