[SOLUTION] EB-076 audio problems

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

[SOLUTION] EB-076 audio problems

Post 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
Last edited by EtsDriver on Fri Sep 25, 2015 8:42 am, edited 1 time in total.
Ill just keep the good work up!

User avatar
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

Post 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".

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: EB-076 audio problems

Post 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.
Ill just keep the good work up!

Tom7
Posts: 1
Joined: Mon Sep 21, 2015 10:41 am
Has thanked: 2 times
Contact:

Re: EB-076 audio problems

Post 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

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: EB-076 audio problems

Post 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/
Ill just keep the good work up!

User avatar
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

Post 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 746 times
gLCD_EB076v2_4D.fcpx
(28.13 KiB) Downloaded 758 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.

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: EB-076 audio problems

Post 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 :)
Ill just keep the good work up!

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: EB-076 audio problems

Post 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 ;-)

User avatar
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

Post 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.

Post Reply