Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions syro/korg_syro_volcasample.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,3 +789,17 @@ SyroStatus SyroVolcaSample_End(SyroHandle Handle)
return Status_Success;
}

/*======================================================================
Syro Get Current Data Index
======================================================================*/
uint32_t SyroVolcaSample_GetCurData(SyroHandle Handle)
{
SyroManage *psm;

psm = (SyroManage *)Handle;
if (psm->Header != SYRO_MANAGE_HEADER) {
return Status_InvalidHandle;
}

return (uint32_t)psm->CurData;
}
2 changes: 2 additions & 0 deletions syro/korg_syro_volcasample.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ SyroStatus SyroVolcaSample_GetSample(SyroHandle Handle, int16_t *pLeft, int16_t

SyroStatus SyroVolcaSample_End(SyroHandle Handle);

uint32_t SyroVolcaSample_GetCurData(SyroHandle Handle);

#ifdef __cplusplus
}
#endif
Expand Down