Skip to content

Commit

Permalink
add additional filename options for special:aaa/aah/ahh
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 31, 2024
1 parent 803c092 commit 3a5752d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/core/ugen_stk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18360,7 +18360,9 @@ void WvIn :: openFile( const char *fileName, bool raw, bool doNormalize, bool ge
SAMPLE * rawdata = NULL;
t_CKUINT rawsize = 0;

if( strstr(fileName, "special:aah") ) {
if( strstr(fileName, "special:aaa") ||
strstr(fileName, "special:aah") ||
strstr(fileName, "special:ahh") ) {
rawsize = ahh_size; rawdata = ahh_data;
}
else if( strstr(fileName, "special:britestk") ) {
Expand Down
5 changes: 4 additions & 1 deletion src/core/ugen_xxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3588,7 +3588,10 @@ CK_DLL_CTRL( sndbuf_ctrl_read )
if( strstr(filename, "special:sinewave") ) {
rawsize = 1024; rawdata = NULL;
}
else if( strstr(filename, "special:ahh") ) {
else if( strstr(filename, "special:aaa") ||
strstr(filename, "special:aah") ||
strstr(filename, "special:ahh") )
{
rawsize = ahh_size; rawdata = ahh_data;
}
else if( strstr(filename, "special:britestk") ) {
Expand Down

0 comments on commit 3a5752d

Please sign in to comment.