New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scratch-15092015, sound 'pop' #150

Open
heppg opened this Issue Oct 5, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@heppg

heppg commented Oct 5, 2015

as reported by by mob-i-l » 05 Oct 2015, 01:21
https://www.raspberrypi.org/forums/viewtopic.php?p=824627#p824627

Sound effects/pop is not reliably played. In a loop, forever: play sound 'pop' until done, the sound is not played. Other sounds work. This is reproducible in my 'jessie' raspbian environment.

When I play a longer sound 'in parallel', the forever-loop/ play sound "pop" is audible then. When the long sound terminates, the pop disappears too.

@timrowledge

This comment has been minimized.

Contributor

timrowledge commented Oct 6, 2015

That's curious...
To add to the fun my primary development Pi decided to stop sending noises to the audio out socket whilst testing this. Rebooting didn't change anything. Sigh.
A secondary testing Pi makes noises ok and 'meow' etc work ok but yes,, 'pop' just makes no sound - except that the sound system debug output says it does!
And yes, the pop plays perfectly well when another longer running sound is playing. I wonder if something about the shortness is causing the problem.
This may take a little puzzling over!

@timrowledge

This comment has been minimized.

Contributor

timrowledge commented Oct 6, 2015

(later) Yup, there's something about the amount of buffer data; if I stop the sound player from terminating the sound playing when there is no more data (err, that reads badly - the sound player loop fills in 0 data when there is no more 'real' data. We can detect that and suspend the player process) then the pop plays ok.

@timrowledge

This comment has been minimized.

Contributor

timrowledge commented Nov 11, 2015

Somewhere buried deep in the SoundPlayer code there is a mistake that is proving very difficult to find. I actually managed to get values set up so the pop would reliably play - and then it got out of sorts again.

@timrowledge timrowledge added the bug label Nov 17, 2015

@timrowledge

This comment has been minimized.

Contributor

timrowledge commented Jan 11, 2016

So far this is eluding us. The pop sounds ok if we have continuous playing on - but that leaves terrible pwm jitter hiss behind - or reverb on, which isn't so nice either. Works the same on iMac too, so at least it should be image fixable eventualy.

@timrowledge

This comment has been minimized.

Contributor

timrowledge commented Aug 25, 2016

Latest testing with the build intends for sept '16 release, built on the production Squeak 5.1 release appears to play the pop ok. Along with recent audio firmware and some Squeak work, I think this is fixed.

@timrowledge

This comment has been minimized.

Contributor

timrowledge commented Sep 13, 2016

Related to #218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment