Browse Source

Partially revert last commit, state seeking is not wanted

Signed-off-by: falkTX <falktx@falktx.com>
pull/357/head
falkTX 3 years ago
parent
commit
fb11675884
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      distrho/src/DistrhoPluginVST3.cpp

+ 0
- 6
distrho/src/DistrhoPluginVST3.cpp View File

@@ -692,9 +692,6 @@ public:
buffer[sizeof(buffer)-1] = '\xff';
v3_result res;

// int64_t ignore = 0;
// v3_cpp_obj(stream)->seek(stream, 0, V3_SEEK_SET, &ignore);

for (int32_t pos = 0, term = 0, read; term == 0; pos += read)
{
res = v3_cpp_obj(stream)->read(stream, buffer, sizeof(buffer)-1, &read);
@@ -894,9 +891,6 @@ public:
const uint32_t stateCount = 0;
#endif

int64_t ignore = 0;
v3_cpp_obj(stream)->seek(stream, 0, V3_SEEK_SET, &ignore);

if (stateCount == 0 && paramCount == 0)
{
char buffer = '\0';


Loading…
Cancel
Save