Skip to content

Commit

Permalink
Oopsie, using getActiveVoiceCount() wasn't the right function in rele…
Browse files Browse the repository at this point in the history
…ase mode, getVoiceCount used instead.
  • Loading branch information
jarikomppa committed May 12, 2015
1 parent 6efee67 commit c5d7787
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/c_test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int main(int parc, char ** pars)

printf("Playing..\n");

while (Soloud_getActiveVoiceCount(soloud) > 0)
while (Soloud_getVoiceCount(soloud) > 0)
{
float * v = Soloud_calcFFT(soloud);
printf("\r%c ", (int)("|\\-/"[spin & 3]));
Expand Down
6 changes: 4 additions & 2 deletions demos/welcome/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ int main(int argc, char *argv[])
// Configure sound source
printf("%s\n>", "What is your name?");
char name[512];
scanf("%511s",name);
fgets(name, 511, stdin);
speech.setText(name);
speech.setVolume(5);
// Play the sound source (we could do this several times if we wanted)
soloud.play(speech);


// Wait for voice to finish
while (soloud.getActiveVoiceCount() > 1)
while (soloud.getVoiceCount() > 1)
{
// Still going, sleep for a bit
SoLoud::Thread::sleep(100);
Expand Down

0 comments on commit c5d7787

Please sign in to comment.