| Thanks for all the info. I've been a slave to VC IDE for many years and
this would be a good opportunity
to switch, or at least use a combination. BTW dumpbin fails (win 7) on
the csound dll but dependency walker
has no problem.
On 5/13/2012 7:54 PM, Adam Puckett wrote:
> No problem, Mike. It'll probably take a while though.
>
> On 5/13/12, Michael Gogins wrote:
>> Such a driver would be appreciated. Thanks for the information about
>> mingwbuilds, also. I just use mingw-get and supplement it with a few
>> things. I may change to your method for building Csound.
>>
>> Regards,
>> Mike
>>
>> On Sun, May 13, 2012 at 7:02 PM, Adam Puckett
>> wrote:
>>> One thing that's missing in the standard MinGW package is DirectX, so
>>> I use MinGW-Builds from:
>>>
>>> http://sf.net/projects/mingwbuilds/
>>>
>>> But there's no MSYS! So, my solution here is to download the mingw-get
>>> zip file and place into the mingwbuilds directory, install MSYS, and
>>> I'm in business.
>>>
>>> MinGW-Builds is just a binary distribution of MinGW-w64, plus the
>>> additional SDKs such as DDK and DirectX. Plus, thanks to the Wine
>>> project, it has complete Kernel Streaming headers, which is great for
>>> low-latency apps.
>>>
>>> Perhaps since I'm learning the ins and outs of Csound sources I should
>>> implement a -+rtaudio=ks option for WDM/KS support? (Not that there's
>>> anything wrong with the way PortAudio does it...)
>>>
>>> On 5/12/12, Michael Gogins wrote:
>>>> Are you on Windows? The installer puts all headers in include and all
>>>> DLLs and libs in bin. Everything you need to use the Csound API is
>>>> included.
>>>>
>>>> There is no "lib" because the toolchain we use is MinGW, not Micosoft
>>>> Visual C++. MinGW can link directly to DLLs and does not need import
>>>> libraries. You can create Microsoft import libraries for the DLLs if
>>>> you need to. You need to use dumpbin to print out a list of exports
>>>> from the DLL, and then add a header and numbers to that to create a
>>>> .def file that you can use to create an import library using the lib
>>>> tool. The procedure is explained
>>>> here:http://wiki.videolan.org/GenerateLibFromDll. I have tried this
>>>> and it works.
>>>>
>>>> If you're not committed to Microsoft tools, I urge you to consider
>>>> switching to MinGW and the GNU toolchain. It is just as good, easier
>>>> to use in some ways (no manifests for example), harder to use in other
>>>> ways (the Microsoft IDE and debugger and documentation are very good).
>>>> Not only Csound but most of the third party libraries used with Csound
>>>> are built using the GNU toolchain. I'm more confident that GNU and
>>>> Linux will still be around to build and run Csound in 20 years than I
>>>> am that Microsoft will be.
>>>>
>>>> Hope this helps,
>>>> Mike
>>>>
>>>>
>>>>
>>>> On Sat, May 12, 2012 at 8:10 PM, Victor Lazzarini
>>>> wrote:
>>>>> Not sure? Maybe Michael Gogins, who maintains the package, might know.
>>>>>
>>>>> Also: If you are using mingw, I think you can link directly to the DLL
>>>>> (no
>>>>> need for the .lib)>
>>>>>
>>>>> Victor
>>>>> On 13 May 2012, at 00:42, Stephen Grant Lists wrote:
>>>>>
>>>>>> Thanks. What a difference an option makes! I was loading the DLL rather
>>>>>> than linking directly because
>>>>>> there was no .lib in the distribution (that I could find). I created my
>>>>>> own and everything is working. Is there a reason the .lib is not
>>>>>> included?
>>>>>> On 5/11/2012 9:14 PM, Victor Lazzarini wrote:
>>>>>>> Why are using GetProcAddress() when you could just get the functions
>>>>>>> from headers and link to the DLL instead of loading it?
>>>>>>>
>>>>>>> Csound works with options passed to csoundCompile(). So if you pass
>>>>>>> something like this:
>>>>>>>
>>>>>>> const char argv[3] = {"csound", "test.csd", "-o dac"};
>>>>>>> csoundCompile(csound, 3, argv);
>>>>>>>
>>>>>>> it will play in realtime, because you passed the "dac" as the output
>>>>>>> option "-o".
>>>>>>>
>>>>>>> Try reading the Csound FLOSS manual (you can search for the URL) to
>>>>>>> get
>>>>>>> a better idea of options etc.
>>>>>>>
>>>>>>> Victor
>>>>>>>
>>>>>>> Ps: the only dumb questions are the ones we don't ask.
>>>>>>>
>>>>>>> On 12 May 2012, at 01:40, Stephen Grant Lists wrote:
>>>>>>>
>>>>>>>> I am very new to this application and I'm attempting to get some very
>>>>>>>> basic API functionality.
>>>>>>>> I use GetProcAddress() to get pointers to the required functions.
>>>>>>>> csoundCompile works (it compiles
>>>>>>>> the csd file without error and creates a wave file that can be
>>>>>>>> processed by Audacity).
>>>>>>>> csoundPerform does ~500000 iterations (is this reasonable - a 2MB
>>>>>>>> file
>>>>>>>> that represents a 5 sec pure tone?) then exits (retVal == 2), but
>>>>>>>> there is no sound.
>>>>>>>> Is csoundPerform supposed to play the .wav file and if so, what
>>>>>>>> player
>>>>>>>> is it supposed to use? Is there an
>>>>>>>> internal player, or if not, where do you set your favourite player?
>>>>>>>> Does it require another thread to play?
>>>>>>>> I'm using DevStudio 10 with Win 7 32bit with the 5.17 distribution.
>>>>>>>> Hoping to avoid building CSound
>>>>>>>> to debug.
>>>>>>>> I pro-actively apologize if this are dumb questions.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe csound"
>>>>>>>>
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
|