Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~6K People Reached
Favorite Tags
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
256
Member Avatar for harryhaaren

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 …

Member Avatar for mazzica1
0
163
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
605
Member Avatar for Tech B

[CODE] #include "windows.h" #include "loadbmp.h" // from http://gpwiki.org/index.php/LoadBMPCpp #include "fdlib.h" void main(int argc, char *argv[]) { int i, n, x[256], y[256], size[256], w, h, threshold; BMPImg *bi; unsigned char *bgrdata, *graydata; if (argc==1) { printf("usage: fdtest bmpfilename [threshold]n"); exit(0); } bi = new BMPImg(); printf("nloading %sn", argv[1]); bi->Load(argv[1]); w = …

Member Avatar for Mahnaum
0
175
Member Avatar for harryhaaren

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(); …

Member Avatar for Narue
0
3K
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
226
Member Avatar for SamStradling

I am getting the error error C4716: 'ReStart' : must return a value can anyone help? thanks [code]int ReStart(int id);[/code] [code]PushButtonAdd("Transparent",90,300,ReStart,11);[/code]

Member Avatar for harryhaaren
0
163
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
162
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
439
Member Avatar for harryhaaren

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 …

0
49
Member Avatar for odwa
Member Avatar for mrnutty
0
105
Member Avatar for harryhaaren

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 …

0
109
Member Avatar for bgk111

I am trying to write a python program that will enter another program using a shell command, then issue commands to that program, then exit the program and continue running the rest of a python program. To be more precise, if I was simply running in a shell, I would …

Member Avatar for bgk111
0
117
Member Avatar for dumrat

Hi, I was assigned to study and understand some code and I was told the major problem with the program was poor performance. Here's the bottleneck: A global data set is maintained. This data set is updated regularly. Then there are threads that have to do some processing using a …

Member Avatar for Salem
0
95
Member Avatar for harryhaaren

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 …

Member Avatar for kvprajapati
0
119
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
96