This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Patch to make Scratch work automatically on Debian with ALSA sound

#1 2011-12-23 09:07:49

eliosdad
New Scratcher
Registered: 2011-12-23
Posts: 1

Patch to make Scratch work automatically on Debian with ALSA sound

Hello Scratch team,

It would help Debian Squeeze users like me who have ALSA sound, if your startup script was like modified like the patch below shows.

Thanks!

  -jeff


*** /usr/bin/scratch    2010-02-20 04:35:00.000000000 +0100
--- /tmp/scratch    2011-12-23 15:03:36.000000000 +0100
***************
*** 2,10 ****
  # Squeakvm wrapper to load Scratch image.
  #------------------------------------------------------------
 
  /usr/bin/scratch_squeak_vm \
! -plugins /usr/lib/scratch/Plugins \
! -vm-sound-pulse \
! /usr/lib/scratch/Scratch.image "${@}"
 
 
--- 2,15 ----
  # Squeakvm wrapper to load Scratch image.
  #------------------------------------------------------------
 
+ if [ -d /proc/asound ]; then
+     audio=-vm-sound-alsa
+ else
+     audio=-vm-sound-pulse
+ fi
+
  /usr/bin/scratch_squeak_vm \
!     -plugins /usr/lib/scratch/Plugins $audio \
!     /usr/lib/scratch/Scratch.image "${@}"

Offline

 

#2 2011-12-24 03:18:05

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Patch to make Scratch work automatically on Debian with ALSA sound

Although this is advanced I think you would be better off posting this in suggestions because the scratch team are more likely to it there.  smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#3 2011-12-24 08:34:16

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Patch to make Scratch work automatically on Debian with ALSA sound

Great suggestion!
Well we're really close to re-releasing Scratch 1.4 under the Gnu General Public license. When we do, we hope it'll be easier for contributors like yourself to submit patches, and sort everything out so Scratch will work well on all the different linux distros.


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#4 2011-12-25 07:44:15

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Patch to make Scratch work automatically on Debian with ALSA sound

You're re-releasing 1.4?


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 
  • Index
  •  » Suggestions
  •  » Patch to make Scratch work automatically on Debian with ALSA sound

Board footer