No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
16 Posted Topics
Hey all, I'm attempting to bind a function, then store it in a map. Later I want to call that function with parameters that I don't yet have when I bind it. So this is the code `boost::bind(&State::setBufferSourcePlaying, &::top->dsp->getState(), 0, 1 )` Currently I'm not binding any "dynamic" data, ie …
Hey All, I've been stumbling into the same (annoying little) problem a couple of times, and I'd like to find out how to fix it properly. Pseudo code [code=c++] // file A.hpp #include "classB.hpp" class A { A() }; // file A.cpp A::A() { } [/code] [code=c++] // file B.hpp …
Hey all, (Skip down till "Question:" if you're in a rush) Context: I'm coding on an audio application which involves storing buffers of audio. I'm currently using a [ICODE]std::vector<float>[/ICODE], as a member of an [ICODE]AudioBuffer[/ICODE] class. These [ICODE]AudioBuffer[/ICODE] instances are held in another class [ICODE]ResourceHolder[/ICODE]. In the "process" callback (where …
Hey, What your asking is quite hard to accomplish. Is there no possibility to do all of your program in Python? It seems that would make life a lot easier for you.. Can I advise the Python Imaging Library ([URL="http://www.pythonware.com/products/pil/#pil117"](link here)[/URL] if you dont want to duplicate work. Hope this …
Hey all, I've a couple of large enough vectors in my code, talking about 88200+ floats per vector. I wanna copy the contents of one into the other. I've read around, some say [code=c++]vector.swap ( otherVector );[/code] is fastest? Currently I'm using the following: [code=c++]for(int i =0; i < vector.size(); …
Hey guys, I written a base class (AudioTrackElement), and derived a class from there (Looper) and another (VolumePan). The looper class implements functionality, while the AudioTrackElement is there just so I can hold many Loopers and VolumePan objects in the same vector. The problem: I can create a [icode]std::vector<AudioTrackElement>[/icode] no …
Hey, although your question is pretty vague, due to that you paste not nearly enough code, I think the problem might be that your function definition of "ReStart" has a semi-colon after it, which it shouldnt. I'd say if your wrote "ReStart" to say this [code=c++]int restart(int id) { return …
Hey all, Slight continuation on[URL="http://www.daniweb.com/forums/post1092017.html"] this thread.. [/URL] Not essential though. Hence the new thread. The problem is that when I declare a [icode]static[/icode] attribute of a class, and later try using it in a static member function , I get a compile time error. The problem: (with code) OscServer.hpp …
Hey all, I've tried many times to write a C++ class around a C library to make a nice clean interface to that library. Now I keep on getting the same problem: Once in the class, I initialize the C library, and then the C library complains that EG: error …
Hey all, I'm currently struggling a bit with GUI building. What i want is a simple "click the button & a new widget appears" effect. Now how to go about implementing that i dont know. I've thought about storing each instance a widget in a std::vector. Seems a little messy …
Hey, Could you describe the problem? Give us some more info on "what" the problem is? If you went to a garage with a car and said, "its broken" they wouldnt know what was going on. Same goes here. post up the [code=c++]// code that // your trying to use[/code] …
Hey All, I've got a little question/problem regarding 3D graphics. Im running a PAE-LowLatency kernel for recording Audio stuff, and I'd like to be able to also use ATI's proprietary 3D driver for hardware acceleration on a STANDARD 486 kernel. Note I do NOT need both 3D and LowLatency at …
Hey, As far as i remember (and its been a while!) using subprocess.Popen() makes a process object, and to actually communicate with that process, you use the "communicate" method. [code]processName = subprocess.Popen("ls -l" , shell=True etc etc) processName.communicate( Pipes ,Pipes , Pipes)[/code] where Pipes are pipe objects like stdin,stdout,stderr. There's …
Hey, I think what your looking for is called a Mutex, or Mutual Exclusion. Simple example: If something is TRUE, its obviously NOT FALSE. So FALSE is mutually excluded if something is TRUE. In the same way there are ways to Mutex two (or more) processes. Hope this is any …
Hi everyone, Im working on a large scale audio program, and I got a question regarding namespaces: The main() part of the program includes my own headers, each named according to what part it plays in the program, eg: Audio.hpp , Midi.hpp etc. These headers will "load" other headers..? Is …
Hey all, I'm currently working on a design for my first "big" program. I've done a small Object Orientated IDE before, however that code there was a bit of a mess... So I'm scoping around for online tutorials on how to design an OO program. Does anybody have a great …
The End.
harryhaaren