Search found 19 matches

by HotteHC
Sat Feb 25, 2012 8:37 am
Forum: Coding Questions
Topic: OSC (OpenSoundControl) and PB
Replies: 22
Views: 6460

Re: OSC (OpenSoundControl) and PB

Hi there,
it seems to be a bug in Reaper itself.
When using OSC-Monitor ( http://www.frieder-weiss.de/OSC/index.html - Freeware) the message I've sended is recieved correctly.

Edit :

For the one's that are interessted in.
Reaper only accepts float values from 0.0 - 1.0 .
The value's shown in the ...
by HotteHC
Sat Feb 25, 2012 7:36 am
Forum: Coding Questions
Topic: OSC (OpenSoundControl) and PB
Replies: 22
Views: 6460

Re: OSC (OpenSoundControl) and PB

Hello Infratec,

I tried youre example, but the error remains the same. As you said, the OSC-Package-Allignment seems to be ok because Reaper reacts for the message I send to. But if you listen to reaper's port, the ',' isn't right interpreted. I tried many things for now but it's always the same ...
by HotteHC
Fri Feb 24, 2012 11:07 pm
Forum: Coding Questions
Topic: OSC (OpenSoundControl) and PB
Replies: 22
Views: 6460

Re: OSC (OpenSoundControl) and PB

Hi Jesper,

thanks for replying. I'm looking forward to see something of your work .
I also think it would be really nice to see OSC working with PB. There are so many more Options where you could use OSC. It's not only helpful when dealing with music/video/dmx but also with a sort of message-system ...
by HotteHC
Fri Feb 24, 2012 8:01 pm
Forum: Coding Questions
Topic: OSC (OpenSoundControl) and PB
Replies: 22
Views: 6460

OSC (OpenSoundControl) and PB

Hi there,
I have a little with sending the correct OSC data to the Sequencer-Prog "Reaper" via UDP.
Here's the Code :

EnableExplicit

Macro CALC_ALIGNMENT(x)
(x+4) & $fffc
EndMacro

If InitNetwork() = 0
MessageRequester("Error", "Can't initialize the network !", 0)
End
EndIf


Declare.i ...
by HotteHC
Mon Jul 05, 2010 11:25 am
Forum: Coding Questions
Topic: MessageBox failed
Replies: 24
Views: 5814

Re: MessageBox failed

OK.
Thanks for the answers and good to know ! ;)
mfg Christian
by HotteHC
Mon Jul 05, 2010 10:37 am
Forum: Coding Questions
Topic: MessageBox failed
Replies: 24
Views: 5814

MessageBox failed

Hi at all.
It seems like there is a bug with the MessageBox_() API-Function.

The following could doesn't show the MessageBox :

If MessageBox_(#Null,"Do you want Fullscreen?","Mode",#MB_YESNO|#MB_ICONQUESTION) = #IDNO
fullscreen = #False
Endif


If you do a MessageRequester-Call before, the ...
by HotteHC
Tue Oct 21, 2008 4:37 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] AllocateMemory without clearing
Replies: 37
Views: 7062

Youre right.

It's strange but the big Speed-Difference is in most Times when i Allocate
an Image of 128*128*24 bit which needs 256000 bytes in Memory.
by HotteHC
Tue Oct 21, 2008 4:13 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] AllocateMemory without clearing
Replies: 37
Views: 7062

@TS-Soft

On my Laptop the Results are

-AllocateMemory : 141 ms
-MemAlloc : 0 ms !!!

And to loop this 500 times was only for Testing but I m working on
a Bitmap-Lib/2D-Engine and there I have to use many Memory allocations.

For example.
For now I'm able to load an BMP-Image with my Method realy ...
by HotteHC
Mon Oct 20, 2008 2:53 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] AllocateMemory without clearing
Replies: 37
Views: 7062

@ts-soft

I repeated the allocating 500 times.



#HEAP_CREATE_ALIGN_16 = $00010000
#HEAP_ZERO_MEMORY = $00000008
Procedure.l MemAlloc(size.l,bZeroMem.l = #False)
If bZeroMem = #False
ProcedureReturn HeapAlloc_( GetProcessHeap_(), #HEAP_CREATE_ALIGN_16, Size );
EndIf
ProcedureReturn HeapAlloc ...
by HotteHC
Sun Oct 19, 2008 10:18 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] AllocateMemory without clearing
Replies: 37
Views: 7062

The fact, why I ask is, in some Situations the Memoryallocation is slow.
F.e. : I had to Allocate an Memoryblock with a size of 256000 very often and it seems to do so very slow. If i use HeapAlloc_ with the Parameter
#HEAP_ALIGN_16 it's much faster then HeapAlloc_ with Parameter
#HEAP_ALIGN_16 ...
by HotteHC
Sun Oct 19, 2008 9:10 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] AllocateMemory without clearing
Replies: 37
Views: 7062

[Implemented] AllocateMemory without clearing

Hi Fred.

Would it be posible to make an optional Parameter to the
AllocateMemory-Procedure to dont clear the Allocated Mem.
I made some Tests and this would make an Speed-Increment at Factor 3
and more.
by HotteHC
Thu Jun 26, 2008 10:44 pm
Forum: General Discussion
Topic: Import and C++
Replies: 36
Views: 9528

OK.
I tried the following:

class CTest
{

private :
int tInt;

public:

CTest(){tInt = 132;}
~CTest();

int __stdcall GetInt(){return tInt;}


};

#ifdef __cplusplus
extern "C"
{
#endif//__cplusplus

CTest* __stdcall createTest()
{
return new CTest();
}


int __stdcall GetInt(CTest* test ...
by HotteHC
Thu Jun 26, 2008 10:22 pm
Forum: General Discussion
Topic: Import and C++
Replies: 36
Views: 9528

But wasn't that nearly the same function witch causes Errors when you importet the Lib to PB?
What other codesnippet makes Problems in youre" C++" Code?
by HotteHC
Thu Jun 26, 2008 10:02 pm
Forum: General Discussion
Topic: Import and C++
Replies: 36
Views: 9528

Hi Polo.
Please try to compile the following Sourcecode in VC2008 express.
Turn off the Optimation like Fred said and build as Static Lib in Release Mode.

#ifdef __cplusplus
extern "C"
{
#endif//__cplusplus

int __stdcall GetInt()
{
return 132;
}

#ifdef __cplusplus
}
#endif//__cplusplus


In PB ...
by HotteHC
Fri May 16, 2008 12:16 am
Forum: Coding Questions
Topic: Problem with Imported Fuction in Procedure
Replies: 2
Views: 1455

:oops:

Thanks for the quick replay. My fault!