it is not possible to select sound device for snack on OpenBSD

Bug #427951 reported by buzzdee
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

I had a hard time on OpenBSD 4.5 to get sound working with Coccinella from SVN.
After fiddling around with snack I finally got it installed, however I had no sound on OpenBSD.
Everything seemed to be fine, because the exception was catched in Sound.tcl without providing any error:

    } elseif {$priv(snack)} {
        if {[catch {$snd play}]} {
            # ?

snack uses /dev/sound/dsp as default sound device, which doesn't exists on OpenBSD. It took me half a day to figure out that snack uses /dev/sound as default device, which doesn't exists on OpenBSD. I changed it in snack to use /dev/sound and recompiled snack, and magically, I got sound in Coccinella.

The best would be, that in Preferences/Sound the user could select a sound device for playing audio.

If that's fine for you, I'll try to provide a patch for that.

Revision history for this message
buzzdee (sebastia) wrote :

appended patch adds the sound device selection if (priv(snack)) to the Sound preferences.
It may be needed to apply this patch after the patch to bug #427888

It also contains the fix to the last comment made there, regarding the cancel button and the midiCmd

Revision history for this message
buzzdee (sebastia) wrote :

forgot to initialize the sound device on startup, appended patch supersedes the old one, including the initialization at startup.

sander (s-devrieze)
Changed in coccinella:
assignee: nobody → sander (s-devrieze)
importance: Undecided → Wishlist
status: New → Fix Committed
Revision history for this message
buzzdee (sebastia) wrote :

There was an issue reported with the 0.96.14 release on the MAC. On the MAC, snack is not used, and entering the sound preference page produced an exception. Problem was mentioned here:

hopefully fix committed with svn revision: 2741

Changed in coccinella:
milestone: none → 0.96.16
status: Fix Committed → In Progress
Revision history for this message
sander (s-devrieze) wrote :

Verified the bug has been fixed properly on Mac OS X 10.4 Tiger.

Changed in coccinella:
assignee: sander (s-devrieze) → buzzdee (sebastia)
status: In Progress → Fix Committed
buzzdee (sebastia)
Changed in coccinella:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.