RPR Audio RegHardwareHook

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(See Also)
(Examples)
 
Line 16: Line 16:
==Examples==
==Examples==
===C++===
===C++===
-
<pre>
+
<source lang=cpp>
-
</pre>
+
</source>
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
</pre>
+
</source>
===Python===
===Python===
-
<pre>
+
<source lang=python>
-
</pre>
+
</source>
==See Also==
==See Also==

Latest revision as of 11:27, 28 January 2010

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR Audio RegHardwareHook
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR Audio RegHardwareHook

Contents

Audio_RegHardwareHook())

int Audio_RegHardwareHook(bool isAdd, audio_hook_register_t* reg)

Allows you to get callback from the audio thread before and after REAPER's processing.

Can be used to get Reaper to call back before and/or after it outputs audio to the audio hardware. Useful for doing stuff synched to the audio engine at the ASIO/etc block size granularity.

Probably not usable from ReaScript, very likely unsafe and/or too slow - in that interpreted languages are generally (always?) an order of magnitude slower than compiled languages.

From C++ extensions code the function works more or less as expected, but you do need to avoid calling anything too time consuming there.

Parameters

Returns

integer, >0 on success

Examples

C++

 

Perl

 

Python

 

See Also

(Section automatically generated, edits may be overwritten.)

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR Audio RegHardwareHook
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR Audio RegHardwareHook

Personal tools