RPR Audio RegHardwareHook

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Examples)
(See Also)
Line 26: Line 26:
==See Also==
==See Also==
 +
''(Section automatically generated, edits may be overwritten.)''
 +
==Stuff==
==Stuff==
{{API_Doc_Footer}}
{{API_Doc_Footer}}

Revision as of 21:20, 25 November 2009

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