RPR Audio IsRunning

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
m (Python)
 
(4 intermediate revisions not shown)
Line 13: Line 13:
==Examples==
==Examples==
===C++===
===C++===
-
<pre>
+
<source lang=cpp>
-
</pre>
+
</source>
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
<pre>
+
# ----------------------
# ----------------------
# Audio_IsRunning.pl
# Audio_IsRunning.pl
Line 26: Line 25:
my $result = RPR_Audio_IsRunning();
my $result = RPR_Audio_IsRunning();
RPR_ShowConsoleMsg('$result\n');
RPR_ShowConsoleMsg('$result\n');
-
</pre>
+
</source>
===Python===
===Python===
-
<pre>
+
<source lang=python>
# ----------------------
# ----------------------
# Audio_IsRunning.py
# Audio_IsRunning.py
# ----------------------
# ----------------------
-
result = RPR_Audio_IsRunning();
+
result = RPR_Audio_IsRunning()
-
RPR_ShowConsoleMsg(str(result));
+
RPR_ShowConsoleMsg( str(result) )
-
</pre>
+
</source>
==See Also==
==See Also==
Line 46: Line 45:
[[Category:ReaScript]]
[[Category:ReaScript]]
[[Category:Perl]]
[[Category:Perl]]
 +
[[Category:ReaPerl]]
 +
[[Category:ReaPython]]
[[Category:Python]]
[[Category:Python]]

Latest revision as of 20:35, 9 December 2011

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

Contents

Audio_IsRunning()

int Audio_IsRunning()

is audio running at all? threadsafe

Returns nonzero if the audio device is open and running.

Parameters

Returns

int 

Examples

C++

 

Perl

# ----------------------
# Audio_IsRunning.pl
# ----------------------
use strict;
use warnings;
 
my $result = RPR_Audio_IsRunning();
RPR_ShowConsoleMsg('$result\n');

Python

# ----------------------
# Audio_IsRunning.py
# ----------------------
result = RPR_Audio_IsRunning()
RPR_ShowConsoleMsg( str(result) )

See Also

(Section automatically generated, edits may be overwritten.)

Stuff

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

Personal tools