| The 'problem' is specific to OSX (and 10.4 for that matter).
The reason is that FLTK does not guarantee (or advise) the use of
multithreading
(at least the way Csound implements it). In fact the FLTK code on
Windows and Linux is a hack (which does not work on OSX and
might even stop working on newer versions of Linux and Windows).
Victor
At 14:19 09/03/2006, you wrote:
>Thank you for your advice. I'll investigate some more...
>
>I have got CSDPlayer.jar out of the package of Csound5CSDPlayer.app
>on OSX.
>This CSDPlayer.jar works also on Widows, and I can play fl.csd with
>no problem on Win.
>So FLTK problem seems to be specific to OSX.
>
>
>Regards,
>
>tetsuya
>
>
>On 2006/03/08, at 1:58, Victor Lazzarini wrote:
>
>>Two remarks:
>>
>>1. Set a SFDIR variable in your environment.plist file (see the
>>readme.rtf file in the distribution package),
>> set it to whatever directory you want to put your files. This
>>will allow you to use just the filename as
>> the output file (and any other soundfiles you need to use)
>>
>>2. FL will not work with any multithread apps, and both
>>CsoundEditor and CSD Player are multithreaded.
>> Use the command line app or the csound 5.app GUI frontend.
>>
>>3. It is possible that CsoundEditor.java will not work on OSX, I
>>have not tested it.
>> You can ask Mike Gogins about it, he wrote it.
>>
>>all the best,
>>
>>Victor
>>
>>At 16:39 07/03/2006, you wrote:
>>>Victor,
>>>
>>>After several try, I recalled your recent suggestion on this list.
>>>Giving full path to the output soundfile in , I found
>>>CSDPlayer to work. Sorry for trivial report.
>>>
>>>But I still can't play some csd with CSDPlayer.
>>>When I play fl.csd (simple FLTK example provided with Csound5 for
>>>WIN),
>>>I can see FLTK window but get no sound, and the program hangs.
>>>Are there any restrictions on the contents of csd?
>>>
>>>
>>>And I still can't run CsoundEditor.java on OSX with Eclipse. My aim
>>>is to
>>>make an executable jar file (to learn a Java interface with your
>>>example).
>>>
>>>This is the clash log when I played some very simple csd on Eclipse.
>>>
>>>An unexpected exception has been detected in native code outside
>>>the VM.
>>>Unexpected Signal : Bus Error occurred at PC=0x0
>>>Function=[Unknown.]
>>>Library=(N/A)
>>>
>>>Current Java thread:
>>> at csnd.csndJNI.Csound_Perform__SWIG_0(Native Method)
>>> at csnd.Csound.Perform(Csound.java:87)
>>> at CsoundEditor$PerformanceThread.run(CsoundEditor.java:225)
>>>
>>>
>>>Any help would be appreciated.
>>>
>>>
>>>thanks,
>>>
>>>tetsuya
>>>
>>>
>>>
>>>On 2006/03/07, at 22:56, Victor Lazzarini wrote:
>>>
>>>>Your Csound installation seems fine. The problem might be elsewhere.
>>>>What is the actual behaviour of CSD player? Does it start? Can
>>>>you open a CSD? Can you play it?
>>>>
>>>>The error messages (if any) will be sent to the 'Console'
>>>>application in
>>>>/Applications/Utilities. You can open it and send us the messages so
>>>>we can see what the problem is.
>>>>
>>>>Victor
>>>>
>>>>At 13:18 07/03/2006, you wrote:
>>>>>Thank you for reply. Yes, there seems to be some issue on my system
>>>>>configuration...
>>>>>
>>>>>What item should I check?
>>>>>
>>>>>Possible item I can tell for now is:
>>>>>
>>>>>java version: 1.4.2_09
>>>>>Csound: Csound5.01_OSX10.4
>>>>>
>>>>>There is csnd.jar and lib_jcsound.jnilib in
>>>>>/library/Frameworks/CsoundLib.Framework/Versions/5.1/Resources/ java/
>>>>>(There is not "lib_jcsnd.jnilib" you mentioned.)
>>>>>
>>>>>There is also an alias to lib_jcsound.jnilib in
>>>>>/System/Library/Frameworks/JavaVM.Framework/Versions/1.4.2/ Libraries/
>>>>>
>>>>>
>>>>>thanks,
>>>>>
>>>>>tetsuya
>>>>>
>>>>>
>>>>>
>>>>>On 2006/03/07, at 1:22, Victor Lazzarini wrote:
>>>>>
>>>>>>lib_jcsnd.jnilib does work well on OSX 10.4. However there might
>>>>>>be a number of possible set-up issues with Java in your system
>>>>>>that
>>>>>>prevents it from working. There is no API problem as such.
>>>>>>
>>>>>>Victor
>>>>>>
>>>>>>At 16:16 06/03/2006, you wrote:
>>>>>>>Hi,
>>>>>>>
>>>>>>>I can run CsoundEditor.java and CSDPlayer.java successfully with
>>>>>>>Eclipse on WindowXP, but fail to run on OSX10.4.5.
>>>>>>>
>>>>>>>Though I know very little about java, I assume that
>>>>>>>lib_jcsound.jnilib
>>>>>>>does not work well.
>>>>>>>
>>>>>>>Csound5 CSDPayer.app, which is installed with Csound5.app on OSX,
>>>>>>>also
>>>>>>>does not work well, suggesting this API problem.
>>>>>>>
>>>>>>>Thanks for any help!
>>>>>>>
>>>>>>>
>>>>>>>Regards,
>>>>>>>
>>>>>>>Tetsuya
>>>>>>>--
>>>>>>>Send bugs reports to this list.
>>>>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>>>>>
>>>>>>Victor Lazzarini
>>>>>>Music Technology Laboratory
>>>>>>Music Department
>>>>>>National University of Ireland, Maynooth
>>>>>>--
>>>>>>Send bugs reports to this list.
>>>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>>>>
>>>>>--
>>>>>Send bugs reports to this list.
>>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>>>
>>>>Victor Lazzarini
>>>>Music Technology Laboratory
>>>>Music Department
>>>>National University of Ireland, Maynooth
>>>>--
>>>>Send bugs reports to this list.
>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>>
>>>--
>>>Send bugs reports to this list.
>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>
>>Victor Lazzarini
>>Music Technology Laboratory
>>Music Department
>>National University of Ireland, Maynooth
>>--
>>Send bugs reports to this list.
>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth |