Skip to content

Commit c5d7787

Browse files
committed
Oopsie, using getActiveVoiceCount() wasn't the right function in release mode, getVoiceCount used instead.
1 parent 6efee67 commit c5d7787

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

demos/c_test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int main(int parc, char ** pars)
4040

4141
printf("Playing..\n");
4242

43-
while (Soloud_getActiveVoiceCount(soloud) > 0)
43+
while (Soloud_getVoiceCount(soloud) > 0)
4444
{
4545
float * v = Soloud_calcFFT(soloud);
4646
printf("\r%c ", (int)("|\\-/"[spin & 3]));

demos/welcome/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@ int main(int argc, char *argv[])
8282
// Configure sound source
8383
printf("%s\n>", "What is your name?");
8484
char name[512];
85-
scanf("%511s",name);
85+
fgets(name, 511, stdin);
8686
speech.setText(name);
87+
speech.setVolume(5);
8788
// Play the sound source (we could do this several times if we wanted)
8889
soloud.play(speech);
8990

91+
9092
// Wait for voice to finish
91-
while (soloud.getActiveVoiceCount() > 1)
93+
while (soloud.getVoiceCount() > 1)
9294
{
9395
// Still going, sleep for a bit
9496
SoLoud::Thread::sleep(100);

0 commit comments

Comments
 (0)