setLoop #969
-
Hi, I have tried the Starwars example on my system and it works perfectly but later I tried to replay the file with the setLoop(true) and in did not work, I get a compiler error. I have tried to search for any discussions or examples regarding this subject and did not find any. music.setLoop(true) just afterwards the MemoryStream music constructor fails to compile with the following error: 'music' does not name a type Any clues ? Kind Regards Jose |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
With the provided information I am not able to figure out what sketch you are referring to nor am I able to understand what you did. If you want me to help, you need to be much more specific and clear. Here is an example that uses the setLoop() method. I suggest that you read some more C++ tutorials an try to learn to understand the compiler messages... |
Beta Was this translation helpful? Give feedback.
-
Thak you for your quick response, I have noticed in the example you provided that the setLoop(true) statement is in the setup() section. In my code it was just after the constructor of the MemoryStream object which is above the setup() section After changing that statement to the setup() section it compiled succesfully. I am not an expert in C++ but I thought I had a working knowledge... I still don't understand in this case why this error happened. |
Beta Was this translation helpful? Give feedback.
With the provided information I am not able to figure out what sketch you are referring to nor am I able to understand what you did. If you want me to help, you need to be much more specific and clear.
Here is an example that uses the setLoop() method.
I suggest that you read some more C++ tutorials an try to learn to understand the compiler messages...