New topic: 

How to use Declare with new Coreaudio API function types

<http://forums.realsoftware.com/viewtopic.php?t=32190>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       Oskar           Post subject: How to use Declare with new 
Coreaudio API function typesPosted: Tue Jan 26, 2010 1:48 am                    
    
Joined: Sat Nov 26, 2005 4:51 am
Posts: 101              Complex question: I need to replace some deprecated 
Coreaudio API calls in one of my applications which generates sound through a 
callback functon. 

One of them is AudioDeviceAddIOProc, which needs to be replaced by 
AudioDeviceCreateIOProcID from Leopard onwards. The latter has a new parameter 
(the fourth one) of type AudioDeviceIOProcID, which returns the callback ID to 
be then used with AudioDeviceStart. 

How should I translate that "AudioDeviceIOProcID" type into my RB Declare and 
how should I then call that function? Can I use a Ptr variable pointing to a 
Memoryblock? 

Regards,
-Oskar   
                            Top               timhare           Post subject: 
Re: How to use Declare with new Coreaudio API function typesPosted: Tue Jan 26, 
2010 2:22 am                        
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 7161
Location: Portland, OR  USA              You should be able to declare it ByRef 
Integer.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to