Re: [Sndobj-devel] SndCoreAudio fixes
Status: Abandoned
Brought to you by:
veplaini
From: Victor L. <vic...@nu...> - 2007-01-27 23:45:15
|
Great. OK, so I need to fix the 2.6.4 release. It always happens that the right code does not get there. Will do so on Monday. Many thanks to the two of you for checking this one out. Victor > > Well it may not be the problem - but it IS the solution - > YES!!!!!!! (pumps fist and dances around the room.) > Oh the glorious sound of a sine! > > Thanks muchly, > D. > (need to get some sleep: It's been an all-nighter!) > On 28/01/2007, at 8:01 AM, todd ingalls wrote: > > > well, it is probably not the problem, but there is a > > delay between code being checkedin on sourceforge and > > it migrating to anon cvs. anyway - here is the code i > have > > > > > On Jan 27, 2007, at 1:41 PM, sonify wrote: > > > >> > >> On 28/01/2007, at 7:27 AM, sonify wrote: > >> > >>> My build is from CVS code. > >>> D. > >>> > >> Todd, > >> I just figured out that perhaps you meant "the code > from >> developer CVS access" > >> is different from anon. CVS access. My access is of > course anon. >> <SndCoreAudio.cpp> > >> <SndCoreAudio.h> > >> If so, access to your copy of the code (even just > >> SndCoreAudio.cpp) might prove > >> enlightening. > >> > >> Anyway, something comforting about not being the only > soul on the >> planet w. the problem :-) > >> > >> D. > >> > >>> On 28/01/2007, at 7:23 AM, todd ingalls wrote: > >>> > >>>> victor > >>>> one of our students (copied on this email) is having > the same >>>> problem as dave. > >>>> > >>>> i downloaded the 2.6.4 release and also checked out > the code from >>>> developer CVS access. i did a diff on > SndCoreAudio.cpp and noticed >>>> that there are some > differences - so i guess the 2.6.4 release may >>>> still > have the problem that is fixed in the cvs code. this may > >>>> explain why it is working for me and not others who > downloaded the >>>> new release. > >>>> > >>>> > >>>> On Jan 27, 2007, at 12:33 PM, Victor Lazzarini wrote: > >>>> > >>>>> Well, you really did a thorough check. > >>>>> I really can't work out what the problem > >>>>> might be. I can't see that it is a Python > >>>>> version issue, because on other systems I have > >>>>> it on 2.4 and 2.5. > >>>>> > >>>>> I'll try to think of something. Of course you can > >>>>> always try the C++ examples in ./bin. For instance > >>>>> rtschroeder (reverb) and streson(resonator) would > >>>>> work of everything is OK. That'll give us some > indication. >>>>> > >>>>> regards > >>>>> Victor > >>>>> > >>>>>> > >>>>>> Of course one must admit that possibility! > >>>>>> I didn't mention it but I did a _very_ thorough > check of >>>>>> the entire file system using: > >>>>>> > >>>>>> cd / ; $ sudo ls -liR | grep -i libsndobj > >>>>>> > >>>>>> and there is not a single i-node outside > >>>>>> /usr/local/sndobj/ which does not refer to an email > , >>>>>> manual etc file. (I ran the test twice) > >>>>>> > >>>>>> Furthermore when I move the libsndobj etc files > from where >>>>>> scons creates them, > >>>>>> python (import sndobj) fails, so I know I'm dealing > w. >>>>>> the(recently) created builds and not some > >>>>>> obscure reference via $PYTHONPATH or whatever. > >>>>>> > >>>>>> Possible conclusions? > >>>>>> (a) HW error > >>>>>> - other SW works, so unlikely > >>>>>> (b) code error - possibly, but Tony says it works > for him >>>>>> - need to > >>>>>> - test Todd's build on my machine...... > >>>>>> - determine exact SW version combinations > >>>>>> (c) some weird incompatibility problem w. > >>>>>> scons/swig/python > >>>>>> - have returned to sys python 2.3, > >>>>>> - have installed latest scons under 2.3 > >>>>>> - have built pysndobj under 2.3 using > >>>>>> $ cd /usr/local/sndobj ; sudo scons > >>>>>> pythonmodule=yes > >>>>>> > >>>>>> Given the above, would you still put money on it > being a >>>>>> lazy SndObj or relative? > >>>>>> Personally, I doubt it. > >>>>>> D. > >>>>>> > >>>>>> On 28/01/2007, at 12:22 AM, Victor Lazzarini wrote: > >>>>>> > >>>>>>> I reckon you might have an old SndObj lib > >>>>>>> or _sndobj.so lying around in your machine. > >>>>>>> > >>>>>>>> > >>>>>>>> I've checked that out to no effect. In fact I've > even >>>>>> gone >> back and rebuilt scons with python > 2.3, rebuilt >>>>>> sndobj >> under python2.3 and used > the same python to >>>>>> execute the >> test. The ball.py > example also bombs on >>>>>> ProcOn() >> > >>>>>>>> I tried to test with Jack as Victor suggested but > >>>>>> couldn't >> find any manual reference to it. > >>>>>>>> From the code I worked out that it should be > something >>>>>>>> like > >>>>>>>> > >>>>>>>> outp = sndobj.SndJackIO("whatgoeshere", 1, > >>>>>>>> sndobj.SND_OUTPUT) > >>>>>>>> > >>>>>>>> perhaps a simple example of use would help and > I'll >>>>>> work >> it into the manual as well. > >>>>>>>> > >>>>>>>> for the record, I am instantiating python from > >>>>>>>> /usr/local/sndobj/ python under su permissions > to >>>>>> ensure >> that it's not a file permissions > block. >>>>>>>> How frustrating.... > >>>>>>>> > >>>>>>>> Tony - what version of python and is it MacPython > or >>>>>> the >> standard issue? > >>>>>>>> > >>>>>>>> David > >>>>>>>> > >>>>>>>> On 27/01/2007, at 7:35 AM, todd ingalls wrote: > >>>>>>>> > >>>>>>>>> Hi everyone, > >>>>>>>>> I grabbed a fresh copy of the source from cvs > this >>>>>>>>> morning and built SndObj and PySndObj on > an intel >>>>>> mac. >>> SndCoreAudio seems to be > working properly from >>>>>> me and >>> i tried the exact > same example as below in >>>>>> python and >> it worked > properly. > >>>>>>>>> david, is it possible you have some > outdated builds of >>>>>>>>> libsndobj or _sndobj.so > somewhere that are being >>>>>>>> loaded? > > >>>>>>>>> > >>>>>>>>> On Jan 25, 2007, at 9:28 AM, Victor Lazzarini > wrote: >>>>>>>>> > >>>>>>>>>> hmmm. I really can't debug it without a > machine. Have >>>>>>>> to get >> one urgently. > >>>>>>>>>> > >>>>>>>>>> Victor > >>>>>>>>>> > >>>>>>>>>> At 13:17 25/01/2007, sonify wrote: > >>>>>>>>>>> New CVS compiled OK on OSX10.4.8 > >>>>>>>>>>> With this in mind: > >>>>>>>>>>>> import time > >>>>>>>>>>>> import sndobj > >>>>>>>>>>>> tab = sndobj.HarmTable() > >>>>>>>>>>>> osc = sndobj.Oscili(tab, 440, 16000) > >>>>>>>>>>>> #outp = sndobj.SndRTIO > >>>>>>>>>>>> outp = sndobj.SndCoreAudio() > >>>>>>>>>>>> outp.SetOutput(1,osc) > >>>>>>>>>>>> > >>>>>>>>>>>> thread = sndobj.SndThread() > >>>>>>>>>>>> thread.AddObj(outp, sndobj.SNDIO_OUT) > >>>>>>>>>>>> thread.AddObj(osc) > >>>>>>>>>>>> thread.ProcOn() > >>>>>>>>>>>> time.sleep(15) > >>>>>>>>>>>> thread.ProcOff() > >>>>>>>>>>>> thread.ProcOn() > >>>>>>>>>>> returns a "bus error" exception and bombs. If > I >>>>>>>> remember correctly, >>> it used to bomb on > >>>>>>>>>>>> outp = sndobj.SndCoreAudio() > >>>>>>>>>>> > >>>>>>>>>>> how that helps, > >>>>>>>>>>> > >>>>>>>>>>> David > >>>>>>>>>>> > >>>>>>>>>>> On 25/01/2007, at 3:28 AM, Victor Lazzarini > wrote: >>>>>>>>>>> > >>>>>>>>>>>> Dear all, > >>>>>>>>>>>> > >>>>>>>>>>>> I have committed to CVS some fixes to > SndCoreAudio >>>>>> to >> handle non- >>>> interleaved > >>>>>>>>>>>> audio. I am wondering whether that was the > problem >>>>>>>> with Intel >>>> hardware. If the audio > device required >>>>>>>> non-interleaved audio, it >>>> > would not have >>>>>>>>>>>> worked. Would anyone care to > test it? >>>>>>>>>>>> > >>>>>>>>>>>> On the other hand the problem might be > somewhere >>>>>>>> else... >>>> > >>>>>>>>>>>> Victor Lazzarini > >>>>>>>>>>>> Music Technology Laboratory > >>>>>>>>>>>> Music Department > >>>>>>>>>>>> National University of Ireland, Maynooth > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>> > >>>>>> > ---------------------------------------------------------- > >>>>>>>> --------- >>>> --- >>>>>> --- >>>>>>>>>>>> Take > Surveys. Earn Cash. Influence the Future of IT > >>>>>>>>>>>> Join SourceForge.net's Techsay panel and > you'll get >>>>>>>> the chance to >>>> share your > >>>>>>>>>>>> opinions on IT & business topics through > brief >>>>>>>> surveys - and >>>> earn cash > >>>>>>>>>>>> http://www.techsay.com/default.php? > >>>>>>>>>>>> page=join.php&p=sourceforge&CID=DEVDEV > >>>>>>>>>>>> > _______________________________________________ > >>>>>>>>>>>> Sndobj-devel mailing list >>>>>>>>>>>> > Snd...@li... >>>>>>>>>>>> > >>>>>>>> > >>>>>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>>>>>>>>>>>>>>>>>>> >>>>>> > _________________________________________________ >>>>> > >>>>>> experimental polymedia: www.avatar.com.au >>>>> > Sonic >>>>>> Communications Research Group, >>>>> > University of >>>>>> Canberra: >> > www.canberra.edu.au/vc-forum/scrg >>> >>>>>> vip=Verbal >> > Interactivity Project >>> >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>> > >>>>>> > ---------------------------------------------------------- > >>>>>>>> ---------- >>> ----- >>>>> Take Surveys. Earn > Cash. >>>>>> Influence the Future of IT >>>>> Join > SourceForge.net's >>>>>> Techsay panel and you'll get >> > the chance to >>> share >>>>>> your >>>>> opinions on IT > & business topics through brief >>>>>> surveys >> - and > earn >>> cash >>>>>>>>>>> > http://www.techsay.com/default.php? >>>>>>>>>>> > page=join.php&p=sourceforge&CID=DEVDEV >>>>>>>>>>> > _______________________________________________ > >>>>>>>>>>> Sndobj-devel mailing list >>>>>>>>>>> > Snd...@li... >>>>>>>>>>> > >>>>>>>> > >>>>>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>>>>>>>>>>> Victor Lazzarini >>>> Music Technology > Laboratory >>>>>>>>>> Music Department > >>>>>>>>>> National University of Ireland, Maynooth > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>> > >>>>>> > ---------------------------------------------------------- > >>>>>>>> ----------- >> ---- >>>> Take Surveys. Earn > Cash. >>>>>> Influence the Future of IT >>>> Join > SourceForge.net's >>>>>> Techsay panel and you'll get the > >> chance to >> share >>>>>> your >>>> opinions on IT & > business topics through brief >>>>>> surveys >> - and earn > >> cash >>>>>>>>>> http://www.techsay.com/default.php? > >>>>>>>>>> page=join.php&p=sourceforge&CID=DEVDEV > >>>>>>>>>> _______________________________________________ > >>>>>>>>>> Sndobj-devel mailing list > >>>>>>>>>> Snd...@li... > >>>>>>>>>> > >>>>>>>> > >>>>>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>>>>>>>>>> >>>>>>>> > _________________________________________________ >>>>>>>> > experimental polymedia: www.avatar.com.au >>>>>>>> > Sonic Communications Research Group, >>>>>>>> University > of Canberra: >>>>>>>> www.canberra.edu.au/vc-forum/scrg > vip=Verbal >>>>>> Interactivity >> Project > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>> > ---------------------------------------------------------- > >>>>>>>> --------------- Take Surveys. Earn Cash. > Influence the >>>>>>>> Future of IT Join SourceForge.net's > Techsay panel and >>>>>>>> you'll get the chance to share > your opinions on IT & >> >>>>>> business topics through > brief surveys - and earn cash >> >>>>>>> > http://www.techsay.com/default.php? >>>>>>> > page=join.php&p=sourceforge&CID=DEVDEV >>>>>>>> > _______________________________________________ >>>>>>>> > Sndobj-devel mailing list >>>>>>>> > Snd...@li... >>>>>>>> > >>>>>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>>>>>> >>>>>> > >>>>>> _________________________________________________ > >>>>>> experimental polymedia: www.avatar.com.au > >>>>>> Sonic Communications Research Group, > >>>>>> University of Canberra: > >>>>>> www.canberra.edu.au/vc-forum/scrg vip=Verbal > Interactivity >>>>>> Project > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > ---------------------------------------------------------- > >>>>>> --------------- Take Surveys. Earn Cash. Influence > the >>>>>> Future of IT Join SourceForge.net's Techsay > panel and >>>>>> you'll get the chance to share your > opinions on IT & >>>>>> business topics through brief > surveys - and earn cash >>>>>> > >>>>> http://www.techsay.com/default.php? > >>>>> page=join.php&p=sourceforge&CID=DEVDEV > >>>>>> _______________________________________________ > >>>>>> Sndobj-devel mailing list > >>>>>> Snd...@li... > >>>>>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>>>> >>>>> > ---------------------------------------------------------- > -------- >>>>> --- > >>>>> ---- > >>>>> Take Surveys. Earn Cash. Influence the Future of IT > >>>>> Join SourceForge.net's Techsay panel and you'll get > the chance to >>>>> share your > >>>>> opinions on IT & business topics through brief > surveys - and earn >>>>> cash > >>>>> http://www.techsay.com/default.php? > >>>>> page=join.php&p=sourceforge&CID=DEVDEV > >>>>> _______________________________________________ > >>>>> Sndobj-devel mailing list > >>>>> Snd...@li... > >>>>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>>> >>> > >>> _________________________________________________ > >>> experimental polymedia: www.avatar.com.au > >>> Sonic Communications Research Group, > >>> University of Canberra: > www.canberra.edu.au/vc-forum/scrg >>> vip=Verbal > Interactivity Project >>> > >>> > >>> > >>> > >>> > ---------------------------------------------------------- > ---------- >>> ----- > >>> Take Surveys. Earn Cash. Influence the Future of IT > >>> Join SourceForge.net's Techsay panel and you'll get > the chance to >>> share your > >>> opinions on IT & business topics through brief surveys > - and earn >>> cash > >>> http://www.techsay.com/default.php? > >>> page=join.php&p=sourceforge&CID=DEVDEV > >>> _______________________________________________ > >>> Sndobj-devel mailing list > >>> Snd...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >>> >> > >> _________________________________________________ > >> experimental polymedia: www.avatar.com.au > >> Sonic Communications Research Group, > >> University of Canberra: > www.canberra.edu.au/vc-forum/scrg >> vip=Verbal > Interactivity Project >> > >> > >> > > > > _________________________________________________ > experimental polymedia: www.avatar.com.au > Sonic Communications Research Group, > University of Canberra: > www.canberra.edu.au/vc-forum/scrg vip=Verbal Interactivity > Project > > > > > ---------------------------------------------------------- > --------------- Take Surveys. Earn Cash. Influence the > Future of IT Join SourceForge.net's Techsay panel and > you'll get the chance to share your opinions on IT & > business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |