Guillaume Ballet wrote:
On Mon, Mar 23, 2009 at 5:36 PM, Hugh Sasse <[email protected]> wrote:
AAARGH! Sorry, that was no way to treat this code.
Hadn't realised that bloopsaphone was the work of the "6 impossible
projects before breakfast" _Why. So he is entitled to rough code,
since his rough code is much more inspired than I've produced, in a
long time, and he's clearly got k projects on the go at the moment..
Sorry.
I die. My body remains undiscovered for months, and spreads ghastliness through
the entire land.[...] All die. Oh the embarrassment!
[http://www.google.com/search?q="!Tang+apology"]
Hugh.seppuku!
On Mon, 23 Mar 2009, Hugh Sasse wrote:
When I looked in more detail I thought "who would write code like this
// if (B->play == BLOOPS_PLAY)
// else
// for(i = 0; i < framesPerBuffer; i++)
// *out++ = 0.0f;
and not even comment why it is removed?" What's wrong with
if (B->play != BLOOPS_PLAY)
for(i = 0; i < framesPerBuffer; i++)
*out++ = 0.0f;
for one thing? And although style quibbles are easy, I always put {}
in if and for statements now, so adding code is less error prone.
Are there refs to a previous stable version that is worth trying in the
meantime? If you can show us the section around 331 the error may be
clear.
And it might be instructive to turn the warning levels "up to 11" on GCC
so anything a bit wobbly earlier shows up. -Wall, I think.
Thanks for the help. I'll wait a bit and see if it gets updated.
Eric
Hugh
I might be talking about a completely different problem, but back when
I had a simila problem (circa. 2 weeks ago), it's simply that I was
using the wrong library. BSD had the regular portaudio, and shoes
requires portaudio2. I don't have Ubuntu here at home, but you should
try to see if a more recent distribution of portaudio is available for
your system. It seems to me that the compiler complains because it
can't find PaStreamCallbackTimeInfo, which is not defined in
portaudio, but in portaudio2 (once again, I'm talking about BSD
ports).
What does apt-cache search portaudio tells you?
Guillaume
e...@lappy:~$ apt-cache search portaudio
libportaudio-dev - Portable audio I/O - development files
libportaudio-doc - Portable audio I/O - documentation
libportaudio0 - Portable audio I/O - shared library
libportaudio-ocaml - OCaml bindings for the portaudio library
libportaudio-ocaml-dev - OCaml bindings for the portaudio library
libportaudio2 - Portable audio I/O - shared library
libportaudiocpp0 - Portable audio I/O C++ bindings - shared library
portaudio19-dev - Portable audio I/O - development files
portaudio19-doc - Portable audio I/O - documentation