Big Sound Stream problem

2003-12-17 Thread Chris Apers
Hi, Do you know why i have the following error : I;\Ripple\ARM\Core\Emul68K\SrcSlowEmu\Run68K.c, Line:3109, Invalid read from CDA8. using this callback function for my stream : Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 frameCount) { Ct *data = (Ct

Re: Big Sound Stream problem

2003-12-17 Thread Vu Pham
, 2003 9:50 AM Subject: Big Sound Stream problem Hi, Do you know why i have the following error : I;\Ripple\ARM\Core\Emul68K\SrcSlowEmu\Run68K.c, Line:3109, Invalid read from CDA8. using this callback function for my stream : Err sndCallback(void* UserDataP, SndStreamRef stream, void

Re: Big Sound Stream problem

2003-12-17 Thread Chris Apers
This is just an example. But every thing works fine if i use + instead of * IMHO, it sounds like that UserDapaP ( and then data ) pointing to some invalid address. Have you checked value of data before running that calculation line ? Hi, Do you know why i have the following error :

Re: Big Sound Stream problem

2003-12-17 Thread Chris Apers
This is just an example. But every thing works fine if i use + instead of * I have the same result with : Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 frameCount) { int a = 5; int b = 8; int l = a * b; return errNone; } IMHO, it sounds like that

Re: Big Sound Stream problem

2003-12-17 Thread Pascal LEVY
This is just an example. But every thing works fine if i use + instead of * Just a guess. Some compilers use support routines to implement multiplications. If your callback and this support routine are not located in the same segment, the generated code will have an implicit reference to the

Re: Big Sound Stream problem

2003-12-17 Thread Aaron Ardiri
This is just an example. But every thing works fine if i use + instead of * I have the same result with : Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 frameCount) { int a = 5; int b = 8; int l = a * b; return errNone; }

Re: Big Sound Stream problem

2003-12-17 Thread Chris Apers
This it it !!! thanks a lot This is just an example. But every thing works fine if i use + instead of * Just a guess. Some compilers use support routines to implement multiplications. If your callback and this support routine are not located in the same segment, the generated code will