©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

Snack/WaveSurfer bugs?

 
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message
klappnase



Joined: 02 Dec 2003
Posts: 4

PostPosted: Tue Dec 02, 2003 7:49 pm    Post subject: Snack/WaveSurfer bugs? Reply with quote

Hello everyone,

I am not sure if it is a problem with Snack or an OS/driver issue; I am running snack-2.2.3 on a Mandrake linux-9.1
box (ALSA driver 0.9.4).
I encoutered the problem when recording that each time a screensaver shows up audio data get lost,
so maybe there is a period of 20 seconds completely missing in the output file.
I first noticed this in a python recorder application I wrote, but I found that it is quite the same with WaveSurfer.
I tried running WaveSurfer with debug 5; the output while recording
looked like this (snippet from debug.log):
(...)
Exit lengthCmd
Enter SnackAudioReadable
Exit SnackAudioReadable 16384
Enter SnackAudioRead 2756
Exit SnackAudioRead 2048
readstatus? 1
Enter WriteSound
Exit WriteSound
Enter Snack_ExecCallbacks
Executing callback 1
callback done
Enter SnackAudioReadable
Exit SnackAudioReadable 16384
Enter SnackAudioRead 2756
Exit SnackAudioRead 2048
readstatus? 1
Enter WriteSound
Exit WriteSound
Enter Snack_ExecCallbacks
Executing callback 1
callback done
Enter lengthCmd
Exit lengthCmd
Enter SnackAudioReadable
Exit SnackAudioReadable 0
Enter SnackAudioRead 0
Exit SnackAudioRead 2
readstatus? 1
Enter WriteSound
Exit WriteSound
Enter Snack_ExecCallbacks
Executing callback 1
callback done
Enter SnackAudioReadable
Exit SnackAudioReadable 0
Enter SnackAudioRead 0
Exit SnackAudioRead 2
readstatus? 1
Enter WriteSound
Exit WriteSound
(...)
I suppose that from the point where "SnackAudioReadable 0"
etc. occur the recording does not work. Does anyone know help on this?

Another problem I encountered is that Snack compiled with --enable-alsa does not work.
It compiles without problems, but WaveSurfers mixer does not draw all channels (no error messages however).
A mixer app I wrote in Python gives the following error message:
TclError: expected floating-point number but got "p85@("
This happens when I try to access the
tkSnack.mixer.volume() method:
>>> m = tkSnack.mixer.volume('line')
>>> print m
`85@x%
I have heard this reported from other people too.
Does anyone know what is going on here?

Any hints would be very appreciated.

Thanks in anticipation

Michael
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Dec 03, 2003 2:49 pm    Post subject: Reply with quote

Currently, we don't have any machines with ALSA here. The sysadmins plan to switch over to ALSA at some point though. And we're not allowed root access anymore...
The ALSA mixer is not implemented yet, should go in jkAudIO_alsa.c.

Kåre
Back to top
View users profile Send private message Visit posters website
klappnase



Joined: 02 Dec 2003
Posts: 4

PostPosted: Wed Dec 10, 2003 2:00 pm    Post subject: Reply with quote

Thanks for the reply,

the mixer issue does not hurt very much, because the alsa
mixer works fine if snack is compiled without "--enable-alsa" .
The recording "blackout" issue seems to be
rather a problem to me, however now I found this seems to happen only
with alsa driver as well (I thought that I had checked
this before, but obviously I had not).
Is full alsa support planned for the future ( I am trying to develop
an application using snack, so this seems
important for me; I know this does not concern
wavesurfer directly, so I am sorry if this is a little off topic here)?

Thanks again and best regards

Michael
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Dec 10, 2003 2:20 pm    Post subject: Reply with quote

Better support is planned since we plan to start using ALSA in our lab. Definitely next year, but most probably not in the next four months.

Kåre
Back to top
View users profile Send private message Visit posters website
klappnase



Joined: 02 Dec 2003
Posts: 4

PostPosted: Wed Dec 10, 2003 10:20 pm    Post subject: Reply with quote

Thanks a lot for the info (and of course for your work!).

Best regards

Michael
Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group