aMSN Forums
May 25, 2013, 07:34:28 pm *
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: siren_test  (Read 5385 times)
In Altissimus
Newbie

Offline Offline

Posts: 8


View Profile WWW
« on: November 29, 2006, 04:41:28 pm »

Can anyone (!) give me a clue about linking siren_test on Linux?

I'm working on a little plugin and need to convert a bunch of WAV files...

Thanks in advance.
Logged
da fox
Newbie

Offline Offline

Posts: 39


View Profile
« Reply #1 on: November 29, 2006, 10:49:20 pm »

exactly what is siren_test?
Can't you convert the WAV files using for example mplayer?
Logged
Zap
Newbie

Offline Offline

Posts: 43


View Profile
« Reply #2 on: November 29, 2006, 11:38:26 pm »

Or sox ? (most distros install it by default)
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #3 on: November 29, 2006, 11:57:41 pm »

@da_fox, @Zap : no, siren_test is a test application to encode a PCM wave file into a wave file encoded with the siren codec (the one RE-ed for the voice clips).

@In_Altissimus : to compile/link siren_test just go to the amsn directory and do a "make siren_test" that should be enough to create it. By default it isn't compiled with amsn, that's why you need to explicitely specify "make siren_test" for it to be built.
If you want to do it manually, all you need to do is :
compile siren_test.c into siren_test.o with the include path set to the src directory
link siren_test.o and libsiren.a into the executable
I know I do a link with libsiren.a as if it was an object, but I suppose you can make it work also with a -Lsrc/ -lsiren

Make sure you use it on a little endian PCM (uncompressed) WAV file with 16000 samples per sec. if it's not uncompressed PCM, it won't work, and I don't know if it's another sampling rate as I didn't test it with something else.

p.s.: siren_test is not suitable to be a 'encoding application', it's nowhere near that, but it does do the job. I wrote it in order to test and encode easily wave files on Mac in order to track down the little/big endian problems and to make the voice clip support available for Mac too.
If it bugs, please don't report it. If you fix a bug from it, it would be nice to share that with us just in case.

p.p.s.: what's the plugin for ?
Logged

KaKaRoTo
In Altissimus
Newbie

Offline Offline

Posts: 8


View Profile WWW
« Reply #4 on: November 30, 2006, 11:37:44 am »

Quote from: "kakaroto"

@In_Altissimus : to compile/link siren_test just go to the amsn directory and do a "make siren_test" that should be enough to create it. By default it isn't compiled with amsn, that's why you need to explicitely specify "make siren_test" for it to be built.
If you want to do it manually, all you need to do is :
compile siren_test.c into siren_test.o with the include path set to the src directory
link siren_test.o and libsiren.a into the executable
I know I do a link with libsiren.a as if it was an object, but I suppose you can make it work also with a -Lsrc/ -lsiren



Thanks for the pointers and the quick response; this did the trick in the end: "gcc siren_test.c libsiren.a -lm"

Quote from: "kakaroto"

p.p.s.: what's the plugin for ?


All will be revealed shortly  Cheesy

I have one other question:

Whilst chat_msg_send is behaving as expected, my event handler for chat_msg_received seem to get invoked both for incoming (as expected) and outgoing (unexpected) messages?  Is that to be expected?
Logged
Zap
Newbie

Offline Offline

Posts: 43


View Profile
« Reply #5 on: November 30, 2006, 01:52:05 pm »

Ah, sorry, I misunderstood that.. :oops:


Quote from: "In Altissimus"
Whilst chat_msg_send is behaving as expected, my event handler for chat_msg_received seem to get invoked both for incoming (as expected) and outgoing (unexpected) messages?  Is that to be expected?

I saw a few weeks ago in another thread that this behaviour is normal. A developper suggested that one had to check if the sender is the user or another contact.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #6 on: December 01, 2006, 12:02:28 am »

just a few threads below : http://www.amsn-project.net/forums/viewtopic.php?t=2006
Logged

KaKaRoTo
In Altissimus
Newbie

Offline Offline

Posts: 8


View Profile WWW
« Reply #7 on: December 01, 2006, 02:05:32 pm »

Thanks guys.

I've announced the test version (Emotisounds) on the plugins forum.
Logged
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!