Page 1 of 1

[SOLUTION] EB-076 audio problems

Posted: Wed Apr 30, 2014 5:08 pm
by EtsDriver
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

Re: EB-076 audio problems

Posted: Wed May 07, 2014 4:35 pm
by Benj
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".

Re: EB-076 audio problems

Posted: Wed May 07, 2014 9:56 pm
by EtsDriver
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".
Tried both, still no sound cannot be heard.

Re: EB-076 audio problems

Posted: Mon Sep 21, 2015 11:14 am
by Tom7
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

Re: EB-076 audio problems

Posted: Wed Sep 23, 2015 4:28 pm
by EtsDriver
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
Hei Tom!

I tried to play music but never got it playing it :( Id love to see some demo from matrix itself if this macro actually even works? I tried everything, used every possible number combination on play and set volume was all time 127=max volume and the display always turned to the video like "white" when i try to play music inside same program... :S

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/

Re: EB-076 audio problems

Posted: Thu Sep 24, 2015 4:53 pm
by Benj
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.
gLCD_EB076_4D.fcpx
(27.79 KiB) Downloaded 753 times
gLCD_EB076v2_4D.fcpx
(28.13 KiB) Downloaded 760 times
Oh, arduino can do that without the fancy 4D display: http://www.instructables.com/id/Playing ... urce-Code/
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.

Re: EB-076 audio problems

Posted: Thu Sep 24, 2015 9:15 pm
by EtsDriver
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... :D trying to get my hobby projects going again :)

Re: EB-076 audio problems

Posted: Thu Nov 05, 2015 2:20 am
by Rudi
Benj 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.
Hi Benj

this will be fine :)

txs
b.w.
rudi ;-)

Re: [SOLUTION] EB-076 audio problems

Posted: Mon Feb 08, 2016 3:59 pm
by Benj
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.