Skip to content

Commit

Permalink
fixup! Consistent variables naming in Audio_Demo example script.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Oct 8, 2024
1 parent 3e07ea3 commit b8ee8c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cleo_sdk/CLEO.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ void WINAPI CLEO_RemoveScriptDeleteDelegate(FuncScriptDeleteDelegateT func);

DWORD WINAPI CLEO_GetScriptTextureById(CRunningScript* thread, int id); // ret RwTexture *

DWORD WINAPI CLEO_GetInternalAudioStream(CRunningScript* thread, DWORD stream); // arg CAudioStream *
DWORD WINAPI CLEO_GetInternalAudioStream(CRunningScript* unused, DWORD audioStreamHandle); // handle from 0AAC or 0AC1

struct StringList { DWORD count; char** strings; };
void WINAPI CLEO_StringListFree(StringList list); // releases resources used by StringList container
Expand Down
4 changes: 2 additions & 2 deletions source/CleoBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ namespace CLEO
GetInstance().RemoveCallback(id, func);
}

DWORD WINAPI CLEO_GetInternalAudioStream(CLEO::CRunningScript* thread, DWORD stream) // arg CAudioStream *
DWORD WINAPI CLEO_GetInternalAudioStream(CLEO::CRunningScript* unused, DWORD audioStreamHandle)
{
return stream; // CAudioStream::streamInternal offset is 0
return audioStreamHandle; // CAudioStream::streamInternal is at offset 0 of the handle
}

void WINAPI CLEO_ResolvePath(CLEO::CRunningScript* thread, char* inOutPath, DWORD pathMaxLen)
Expand Down

0 comments on commit b8ee8c3

Please sign in to comment.