Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Be able to call sinsy_ng_getAudioData() more than once #2

Open
azimut opened this issue Jan 17, 2019 · 0 comments
Open

Be able to call sinsy_ng_getAudioData() more than once #2

azimut opened this issue Jan 17, 2019 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@azimut
Copy link

azimut commented Jan 17, 2019

I needed this in order to use this library bindings. I hack it by adding default values on _init and creating a _term. Might be some of this can be upstreamed.

ESPEAK_NG_API espeak_ng_STATUS sinsy_ng_Init(void)
{
  notes = CArrayNew();
  sinsy_notepos = 0;
  sample_pos = 0;
  singing_mode = 1;
  current_sample = SAMPLE_NONE;
  current_sample_length = 0;
  current_syllable = 0;
  preutter = 0;
  voiced = 0;
  return 0;
}

ESPEAK_NG_API espeak_ng_STATUS sinsy_ng_Term(void)
{
  CArrayRemoveAllObjects(notes,1);
  notes = 0;
  singing_mode = 0;
  return 0;
}
@YuzukiTsuru YuzukiTsuru added the help wanted Extra attention is needed label Oct 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants