Replies: 5 comments 2 replies
-
The following new classes might be fitting better: AudioSourceVector A flexible DataSource that can dynamically store (file) paths You can fill the AudioSourceVector with the help of the ls() method provided by the sdfat library like in this test or just by calling the addName() method. |
Beta Was this translation helpful? Give feedback.
-
But Can be used then with AudioPlayer? |
Beta Was this translation helpful? Give feedback.
-
Could you show me an example of uses the library please? |
Beta Was this translation helpful? Give feedback.
-
Just have a look at the test mentioned above! |
Beta Was this translation helpful? Give feedback.
-
Hi @pschatzmann . I use AddName() and I create a vector with names of files and its full path on each one, but player now doesn't initialized (before that using of AudioSourceVector, with AudioSourceIdxSDFAT all was ok) the content of Vector is ok I can see all files in the selected directory. The content of vector
I have saw thet AudioSource.h sais me that a file selected doesn't exist, but the path is correct and file can be opened without problems. What could be happend? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @pschatzmann,
I'd like to propose you an improvement in this function below, the possibility to scan files for AudioSourceIdxSDFAT and AudioSourceSDFAT only on parent directory and not in the rest of directories (next directories level)
The original version
One example of proposal function
Then, in AudioSourceSDFAT and AudioSourceIdxSDFAT for example
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions