aMSN Forums
February 12, 2012, 02:44:06 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: amsn audioclips support in OpenBSD  (Read 5446 times)
lirva
Newbie

Offline Offline

Posts: 9


View Profile
« on: October 15, 2007, 05:32:42 pm »

amsn in OpenBSD works fine. However when one msn contact send me a voice clip amsn return one error. Unfortunately it work only with libsnack.

To compile libsnack in OpenBSD do the following steps.

1. Download the source of tcl snack 2.2.10 from http://ttp://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz

2. Apply the following patches

Code:
$ diff generic/jkFormatMP3.c generic/jkFormatMP3.c.bak
1312c1312
< //#include <math.h>
---
> #include <math.h>

$ diff unix/jkAudIO_oss.c unix/jkAudIO_oss.c.bak
29c29
< #ifdef __OpenBSD__
---
> #ifdef __NetBSD__

$ diff unix/Makefile.in unix/Makefile.in.bak
7c7
< TK_INCPATH  = @TK_SRC_DIR@/generic
---
> TK_INCPATH  = /usr/local/include/tk8.4/


3. Configure, Make and Make install

Code:
$./configure --with-tcl=/usr/local/lib/tcl8.4/ --with-tk=/usr/local/lib/tk8.4/ --prefix=/usr/local/
$ make
$ make install


4. Copy library to amsn utils dir
Code:
$ cp -R /usr/local/lib/tcl8.4/snack2.2 /path/to/amsn_src/utils/linux/


5. Apply the following patch under amsn
Code:
$ svn diff .
Index: audio.tcl
===================================================================
--- audio.tcl   (revision 9067)
+++ audio.tcl   (working copy)
@@ -6,10 +6,19 @@
 # Since Mac and Windows have the snack 2.2.10 binaries shipped with amsn,we can require the exact version safely.. linux is trickier because
 # the user can install whatever version he wants (and all 2.2.x versions have a 'package provide 2.2')
 proc require_snack { } {
       if {[package provide snack] != ""} {
                return
        } elseif {[OnLinux] } {
                package require snack
+    } elseif {[OnBSD] } {
+        if { [catch {
+            load [file join utils linux snack2.2 libsnack.so]
+            source [file join utils linux snack2.2 snack.tcl]
+        } ] } {
+            package require snack
+        }
        } elseif {[OnWin] } {
                if { [catch {
                        load [file join utils windows snack2.2 libsnack.dll]


6. Compile and install amsn
Code:
$ ./configure
$ make
$ make install


7. Enable the mic in OpenBSD. To enable the mic as record device in OpenBSD use the mixerctl command
$ mixerctl inputs.mic.mute=off
inputs.mic.mute: on -> off
$ mixerctl record.source=mic
record.source: line -> mic

8. Enjoy it :-D

The screnshoot show one voiceclip received


The screnshoot show one voiceclip sent


Unfortunately these patch does NOT apply to svn of amsn, becuase snack doesn't has an official port in OpenBSD.  This post is only informative from how it compile snack and enable it in OpenBSD.

I will try to talk with OpenBSD Ports Team to integrate snack and amsn to official ports.

Additonaly I have one question. When I received one voiceclip it sound fine, but when I record one voiceclip my msn contact hear it as slowmotion (ultratumba :-D)

Can you help me? the files with bad sound are:
contact@hotmail.com_14 Oct 2007 @ 22_10_41.wav

And the contact@hotmail.com_14 Oct 2007 @ 22_10_41_encoded.wav file I can't hear it beacuse mplayer had the following error
Code:

Audio file file format detected.
==========================================================================
Cannot find codec for audio format 0x28E.
Read DOCS/HTML/en/codecs.html!
Logged

Wiiego
--------
http://www.compumundohypermegared.org
Comunidad de Usuarios OpenBSD Colombia
plzpm
Newbie

Offline Offline

Posts: 1


View Profile
« Reply #1 on: August 11, 2008, 04:45:30 pm »

thanks very much for your share, it is great script, thanks.
Logged

my amsn webpage
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!