Linux Audio

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
efflux
Posts: 6
Joined: Sat Jun 16, 2007 12:04 am

Linux Audio

Post by efflux »

I can't get any usable Linux audio performance from Anime Studio Pro. I am running it on a 3 Ghz P4 with an M-Audio Delta 44 sound card and Ubuntu 7.04. I've tried a low latency kernel. Even when Anime is set up to be doing next to nothing animation wise the audio glitches and stutters. Audio works fine in every other app I have used. In fact I've had this computer running a specifically audio tweaked distribution with superb audio performance. Is anyone else here using audio on the Linux version of Anime Studio?
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

I use Ubuntu 6.10 and some test I have done with audio have worked for me. My computer is an AMD Athlon XP 2100+ with a cheap Soundblaster soundcard. The only problem I have had was related to some other linux application get the sound device busy and Anime Studio cannot open de device. Just flushing the device to be free again and it works.
You should check if "Allow frame skipping" is enabled. If not and the animation is heavy it would produce bad sound reproduction. I think it is a problem of usage of non native sound routines and everything related to sound is asked to be done by Moho kernel and not to linux kernel. It is similar to have a very good graphic card and don't see a good performance when playing the animation. Moho kernel don't use any external library to take advantage of installed hardware (ALSA or OSS for sound or OpenGL for render).
That decision makes sense due to one important thing is have voice and image shyncronized during playing. So if Moho is not shure how many time would spend other suroutines to do the image and sound job. So it decides to do all by itself.
Hope it helps and glad to see more AS linux users everyday.

-G
efflux
Posts: 6
Joined: Sat Jun 16, 2007 12:04 am

Post by efflux »

Yes It tried Allow frame skipping. That doesn't cure it but if I turn that off it certainly makes it worse. I can adjust everything so my system is not even doing much at all while Anime is running an animation but still audio fails. I've even tested out this system to see how I can tweak a standard Ubuntu install for audio and performance with everything else is completely acceptable so it's a Anime Studio problem but it's a big problem because audio is very important to me. I have no choice but to run Anime in OSX but it actually performed better with animation real time on my Linux system. It's a real shame that I can't use this on Linux. I have actually had this system doing numerous tasks with an audio app still playing in the background without a glitch, even while doing RAW photo editing.
efflux
Posts: 6
Joined: Sat Jun 16, 2007 12:04 am

Post by efflux »

The latest update here is that Anime Studio Pro running on a Windows system with almost exactly the same hardware as my Linux box, except an Echo Audio Layla soundcard, has all the same audio problems. Glitches all over even when my CPU has tons of room to spare and hardly any animation going on.

The trouble is I installed this app on my Mac a few weeks ago before really testing it out properly so my Mac demo has expired. No way to go back and test for audio but I don't remember noticing these problems. However my Mac is dual core so any non dual core apps are crippled to a certain extent.

I understand the problems because it's not easy for realtime playback in Anime to keep up but presently there seems to be no way to play audio without a load of glitches. Since I do music production I want an audio file to play back without all these glitches. Syncing audio to animation in Anime is important for me but I only need one track of audio. Surely audio playback should be prioritized over animation because lost frames etc in the animation does not destroy your capability to see what is happening but bad audio ruins things a bit.
myles
Posts: 821
Joined: Sat Aug 21, 2004 3:32 am
Location: Australia, Victoria, Morwell
Contact:

Post by myles »

efflux wrote:Surely audio playback should be prioritized over animation because lost frames etc in the animation does not destroy your capability to see what is happening but bad audio ruins things a bit.
To a certain extent that's what "Allow frame skipping" is doing.
However, a lot of resources are devoted to video preview.

There are a couple of other things you can do to improve this.
See viewtopic.php?t=935

Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
efflux
Posts: 6
Joined: Sat Jun 16, 2007 12:04 am

Post by efflux »

OK, thanks for that link.

I've done all those things. The trouble is that audio slowing down would be understandable and reasonably acceptable but I'm actually getting a load of glitches. The audio skips and repeats.

I think it's a major drawback that Anime Studio doesn't use Open GL. I tested ToonBoom and it shows none of these problems with audio. It does use Open GL. I can have multiple audio tracks. ToonBoom of course displays the same problems in not keeping up full frame but it seems to always play back at the correct speed when there is an audio track. It simply drops more and more frames. The trouble is I don't want to use ToonBoom. I don't like it's cell by cell approach even although there is the advantage of doing turns easily whereas Anime has to remain more static in that respect. I'm just not interested in getting into traditional techniques even although I can draw.

My opinion is that Anime Studio is superbly designed with it's bone system and everything else. Great UI. Very easy to animate things. This is what I loved to begin with but the underlying way it implements playback is flawed.
User avatar
slowtiger
Posts: 6255
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post by slowtiger »

Just as a side note, problems with audio playback seem to occur on any platform in any animation software I know. It's not one software designed poorly, or just one operation system faulty, not to mention different hardware.
Post Reply