Invalid Audio file reported


6 posts
by RayLS » Wed Oct 31, 2012 1:46 pm
Hi

When trying to open one of the Scratch example audio files an error message states 'invalid sound format'.

The sound module loaded is snd-bcm2835 and audio through the supplied audio player works.

Any solution to the problem?

Thanks

Ray
Ray

You are never too old to set another goal or to dream a new dream.
C.S. Lewis
User avatar
Posts: 9
Joined: Tue Oct 30, 2012 9:23 pm
by RayLS » Thu Nov 01, 2012 3:36 pm
Now made sure that all sound files play through LXMusic (ogg, .wav and .mp3).

In Scratch there are two problems -
1. The .wav files load but do not create any sound when tested
2. The .mp3 files do not load as they are not recognised as a valid audio file.

I ran Scratch from a terminal window with same end result, but the following error message appeared four times - "sound: /dev/dsp: no such file or
directory".

All sound is being output through HDMI.

Can anyone help?
Ray

You are never too old to set another goal or to dream a new dream.
C.S. Lewis
User avatar
Posts: 9
Joined: Tue Oct 30, 2012 9:23 pm
by ValleyD » Fri Nov 02, 2012 3:22 pm
I have exactly the same problem with sound in SCRATCH as RayLS
Does "sound: /dev/dsp: no such file or directory" mean that my card is corrupt or incomplete?
Posts: 1
Joined: Fri Sep 21, 2012 1:52 pm
by RayLS » Fri Nov 02, 2012 4:17 pm
I don't think the problem is a corrupt card as we get identical symptoms. It's more likely that Scratch is looking in the wrong place for what it needs to produce sounds or that the implementation on the rPi is still not stable.

It would be good if someone from the Scratch dev team could look at this or give a definitive answer.
Ray

You are never too old to set another goal or to dream a new dream.
C.S. Lewis
User avatar
Posts: 9
Joined: Tue Oct 30, 2012 9:23 pm
by RayLS » Fri Nov 02, 2012 8:19 pm
On researching this problem a bit more I have found that it looks like Scratch, by trying /dev/dsp/, is trying to use OSS (an older open source sound achitecture).

I tried load in the ALSA OSS emulation for this but it created more problems and then crashed the rPi.

Is there a newer version of Scratch without this problem?
Ray

You are never too old to set another goal or to dream a new dream.
C.S. Lewis
User avatar
Posts: 9
Joined: Tue Oct 30, 2012 9:23 pm
by RayLS » Sun Nov 04, 2012 12:17 pm
Update: I have now have the latest image installed. Marginal change in Scratch in that it now plays .wav files, but still fails to recognise mp3 files (even the samples supplied).

All files play OK in LXMusic.
Ray

You are never too old to set another goal or to dream a new dream.
C.S. Lewis
User avatar
Posts: 9
Joined: Tue Oct 30, 2012 9:23 pm