Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
flext
Commits
2b253354
Commit
2b253354
authored
Aug 04, 2002
by
thomas
Browse files
no message
git-svn-id:
https://svn.grrrr.org/ext/trunk@203
4d9ac71a-51e6-0310-8455-cad1006bcd31
parent
7f041366
Changes
3
Hide whitespace changes
Inline
Side-by-side
readme.txt
View file @
2b253354
...
...
@@ -86,6 +86,7 @@ Version history:
- fixed severe bug concerning symbol methods
- MaxMSP: use critical sections for message output (for more safety in overdrive mode)
- PD: default/manual definition of help file by flext_base::DefineHelp
- added GetThing/SetThing to access t_symbol's s_thing data member
- introduced FLEXT_NEW_DSP* and FLEXT_LIB_DSP* for FLEXT_NEW_TILDE* and FLEXT_LIB_TILDE* (the latter become deprecated)
- all variable argument defs (aka gimme) now have a V instead of G (e.g. FLEXT_NEW_V)
...
...
source/flbuf.cpp
View file @
2b253354
...
...
@@ -18,7 +18,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#define DIRTY_INTERVAL 0 // buffer dirty check in msec
#endif
flext_base
::
buffer
::
buffer
(
t_symbol
*
bn
,
bool
delayed
)
:
flext_base
::
buffer
::
buffer
(
const
t_symbol
*
bn
,
bool
delayed
)
:
sym
(
NULL
),
data
(
NULL
),
chns
(
0
),
frames
(
0
)
{
...
...
@@ -40,7 +40,7 @@ flext_base::buffer::~buffer()
#endif
}
int
flext_base
::
buffer
::
Set
(
t_symbol
*
s
,
bool
nameonly
)
int
flext_base
::
buffer
::
Set
(
const
t_symbol
*
s
,
bool
nameonly
)
{
int
ret
=
0
;
bool
valid
=
data
!=
NULL
;
// valid now? (before change)
...
...
@@ -62,7 +62,7 @@ int flext_base::buffer::Set(t_symbol *s,bool nameonly)
int
frames1
;
t_sample
*
data1
;
arr
=
(
t_garray
*
)
pd_findbyclass
(
sym
,
garray_class
);
arr
=
(
t_garray
*
)
pd_findbyclass
(
const_cast
<
t_symbol
*>
(
sym
)
,
garray_class
);
if
(
!
arr
)
{
if
(
*
sym
->
s_name
)
error
(
"buffer: no such array '%s'"
,
sym
->
s_name
);
...
...
source/flclass.h
View file @
2b253354
...
...
@@ -86,7 +86,7 @@ public:
@param delayed = true: only sets name, needs another Set(NULL) to really initialize the buffer
\remark As externals can be created prior to the buffer objects they are pointing to, initialization should be done at loadbang!
*/
buffer
(
t_symbol
*
s
=
NULL
,
bool
delayed
=
false
);
buffer
(
const
t_symbol
*
s
=
NULL
,
bool
delayed
=
false
);
//! Destroy buffer
~
buffer
();
...
...
@@ -102,7 +102,7 @@ public:
/*! \brief Set to specified buffer.
@param nameonly: if true sets name only, but doesn't look at buffer actually
*/
int
Set
(
t_symbol
*
s
=
NULL
,
bool
nameonly
=
false
);
int
Set
(
const
t_symbol
*
s
=
NULL
,
bool
nameonly
=
false
);
/*! \brief Declare buffer content as dirty.
@param refr: if true forces immediate graphics refresh
...
...
@@ -110,7 +110,7 @@ public:
void
Dirty
(
bool
refr
=
false
);
//! Get symbol of buffer
t_symbol
*
Symbol
()
const
{
return
sym
;
}
t_symbol
*
Symbol
()
const
{
return
const_cast
<
t_symbol
*>
(
sym
)
;
}
//! Get literal name of buffer
const
char
*
Name
()
const
{
return
sym
?
sym
->
s_name
:
""
;
}
...
...
@@ -129,7 +129,7 @@ public:
void
SetRefrIntv
(
float
intv
);
protected:
t_symbol
*
sym
;
const
t_symbol
*
sym
;
t_sample
*
data
;
int
chns
,
frames
;
#ifdef PD
...
...
@@ -304,7 +304,7 @@ public:
static
const
char
*
GetString
(
const
t_symbol
*
s
)
{
return
s
->
s_name
;
}
static
const
char
*
GetAString
(
const
t_symbol
*
s
)
{
return
s
?
s
->
s_name
:
""
;
}
static
void
*
GetThing
(
t_symbol
*
s
)
{
return
s
->
s_thing
;
}
static
void
*
GetThing
(
const
t_symbol
*
s
)
{
return
s
->
s_thing
;
}
static
void
SetThing
(
t_symbol
*
s
,
void
*
dt
)
{
s
->
s_thing
=
(
t_thing
)
dt
;
}
// --- argument list stuff ----------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment