Hi!
Ive been trying to get the simple audio work, but i have not found way to it :/ My audio file is testi.wav and everything has been put into ZIP file down there.
What is the return value thingy on the play sound macro? I tried to cut the lengt of the audio file to 30secs too but no good results.
Video
video (you can hear, no audio is played. :/ )
Could someone help me with this?
Thanks for any help on advance!
zip file can be found here
[SOLUTION] EB-076 audio problems
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: EB-076 audio problems
Hello,
Maybe try calling the set volume macro before you call the play sound macro just to make sure the volume is not set to 0.
Also with the filename you pass try matching the name exactly so "testi.wav" instead of "testi.WAV".
Maybe try calling the set volume macro before you call the play sound macro just to make sure the volume is not set to 0.
Also with the filename you pass try matching the name exactly so "testi.wav" instead of "testi.WAV".
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
Re: EB-076 audio problems
Tried both, still no sound cannot be heard.Benj wrote:Hello,
Maybe try calling the set volume macro before you call the play sound macro just to make sure the volume is not set to 0.
Also with the filename you pass try matching the name exactly so "testi.wav" instead of "testi.WAV".
Ill just keep the good work up!
Re: EB-076 audio problems
Hallo Ets Driver
Can you tell, was able to play music from eb076.
I have eb071 and the same problem,You have solution?
Best regards Tom
Can you tell, was able to play music from eb076.
I have eb071 and the same problem,You have solution?
Best regards Tom
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
Re: EB-076 audio problems
Hei Tom!Tom7 wrote:Hallo Ets Driver
Can you tell, was able to play music from eb076.
I have eb071 and the same problem,You have solution?
Best regards Tom
I tried to play music but never got it playing it

While googling found that 4D display cannot even play all WAV files, it needs some special format of WAV file and of course nobody has listed it anywhere... And still would like to hear from matrix that what those return values from playWAV macro are? sometimes i get 255 and sometimes 0...?
Oh, arduino can do that without the fancy 4D display: http://www.instructables.com/id/Playing ... urce-Code/
Ill just keep the good work up!
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: EB-076 audio problems
Hello,
Sorry I have had a go here and found the cause of the problem. We had a loop to go through the bytes in the filename but the pointer was never being incremented.
This component is now working well for me and playing audio correctly.
Simply copy the file into your "Flowcode 6/Components" directory before starting Flowcode and the changes will be loaded.
Sorry I have had a go here and found the cause of the problem. We had a loop to go through the bytes in the filename but the pointer was never being incremented.
This component is now working well for me and playing audio correctly.
Simply copy the file into your "Flowcode 6/Components" directory before starting Flowcode and the changes will be loaded.
Flowcode can also play Wav files directly from an SD card and can simulate the audio too, I'll see if I can dig you out an example.Oh, arduino can do that without the fancy 4D display: http://www.instructables.com/id/Playing ... urce-Code/
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
Re: EB-076 audio problems
There are days when i wonder what matrix customer support would be without David and Benj...
**
As were speaking about the eb076 here, has anyone got it to play video too? Or example would be great
tried using graphics composer but i get only white blinking line when using it as "load image from file Picaso", and the play video from card is totally out of my understanding :/ and for some reason I have played around maximatecc industrial pc so my head is full of code for it...
trying to get my hobby projects going again 
**
As were speaking about the eb076 here, has anyone got it to play video too? Or example would be great



Ill just keep the good work up!
Re: EB-076 audio problems
Hi BenjBenj wrote: ..
Flowcode can also play Wav files directly from an SD card and can simulate the audio too, I'll see if I can dig you out an example.
this will be fine

txs
b.w.
rudi

- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: [SOLUTION] EB-076 audio problems
Sorry for the late reply,
We did an article a while back on how to get the display playing animations etc here.
http://www.matrixtsl.com/article.php?a=649
Hopefully this should help things.
We did an article a while back on how to get the display playing animations etc here.
http://www.matrixtsl.com/article.php?a=649
Hopefully this should help things.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel