Debian Codegraph @

src/core/chuck_carrier.cpp

raw symbols SCIP
1 /*----------------------------------------------------------------------------
2 ChucK Strongly-timed Audio Programming Language
3 Compiler, Virtual Machine, and Synthesis Engine
4
5 Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved.
6 http://chuck.stanford.edu/
7 http://chuck.cs.princeton.edu/
8
9 This program is free software; you can redistribute it and/or modify
10 it under the dual-license terms of EITHER the MIT License OR the GNU
11 General Public License (the latter as published by the Free Software
12 Foundation; either version 2 of the License or, at your option, any
13 later version).
14
15 This program is distributed in the hope that it will be useful and/or
16 interesting, but WITHOUT ANY WARRANTY; without even the implied warranty
17 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 MIT Licence and/or the GNU General Public License for details.
19
20 You should have received a copy of the MIT License and the GNU General
21 Public License (GPL) along with this program; a copy of the GPL can also
22 be obtained by writing to the Free Software Foundation, Inc., 59 Temple
23 Place, Suite 330, Boston, MA 02111-1307 U.S.A.
24 -----------------------------------------------------------------------------*/
25
26 //-----------------------------------------------------------------------------
27 // file: chuck_carrier.cpp
28 // desc: carrier of things associated with each ChucK instance
29 // REFACTOR-2017
30 //
31 // author: Ge Wang (http://www.gewang.com/)
32 // Jack Atherton ([email protected])
33 // Spencer Salazar ([email protected])
34 // date: fall 2017
35 //-----------------------------------------------------------------------------
36 #include "chuck_carrier.h"
37 #include "chuck.h"
38
39
40
41
42 //-----------------------------------------------------------------------------
43 // name: hintIsRealtimeAudio()
44 // desc: get hint: is this VM on a realtime audio thread?
45 //-----------------------------------------------------------------------------
46 t_CKBOOL Chuck_Carrier::hintIsRealtimeAudio()
47 {
48 // check
49 if( !chuck ) return FALSE;
50 // get hint
51 return chuck->getParamInt( CHUCK_PARAM_IS_REALTIME_AUDIO_HINT ) != 0;
52 }