Go Down

Topic: minim library question (Read 1 time) previous topic - next topic

Anthony19

Hello, good afternoon:

I'm using the minim library and I want to control a large amount of audio.

I want to not reproduce multiple sounds wing time.

I want until I finished playing a sound, do not start the next.

It can be done with a delay but that does not apply to what I do.  Use the system clock for a delay, the code gets too complex.

I want to know if there is any call to the minim library that can prevent parallel reproductions.

Or if it would be possible to put together the sounds I want to play.

For example(I know it not work):

Code: [Select]

song = minim.loadFile("hello.mp3") + minim.loadFile(a+".mp3");`


Thanks in advance

robtillaart

Think you need to read a book about C/C++ programming as concatenation of char arrays is one of the things you should learn to master.
Kerningham and Ritchies 2nd edition is still worth its weight.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Anthony19

You know how to do?

Why is it a waste of time to read a whole book to write a line of code ....

Thanks

marco_c

Assumng your strings are character arrays and not String objects, loo up the sprintf() or strcat() functions.

I would also recommens that you read something formal if you want to get into programming. You would never try to learn a language like Russian by just reading "War and Peace" and hoping for the best.
Arduino libraries http://arduinocode.codeplex.com
Parola for Arduino http://parola.codeplex.com

Anthony19


Assumng your strings are character arrays and not String objects, loo up the sprintf() or strcat() functions.

I would also recommens that you read something formal if you want to get into programming. You would never try to learn a language like Russian by just reading "War and Peace" and hoping for the best.


Thanks for help.

"The function strcat(AudioPlayer, AudioPlayer) does not exist"

It might be necessary to include a library.....

I may need, improve my level of programming.

However, there is more than one way to do what I want, so I can keep working ...

The easier is if a function of these works.
The difficult is to use the micro timer to provide standard time for each reproduction. I could do second way, but is less efficient;) That's why I'm asking :D

A greeting



marco_c

string.h

Did you try googling "strcat arduino"?
Arduino libraries http://arduinocode.codeplex.com
Parola for Arduino http://parola.codeplex.com

Anthony19

Yes, I looked, I saw that library, but have not found any site that include in processing.

#include <String.h>
Code: [Select]

char* b;
char* a;
strcat(b,a);


logically this code to arduino compile without problems......... ;)
In procesing I could not do it :S

Thanks

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy