when i play mp3s or wav files, no problems. but when i play flac files, i get XRUN errors on my jackd/alsa configuration.
stuff like this:
[quote:8edvusic]**** alsa_pcm: xrun of at least 21.035 msecs
delay of 16130.000 usecs exceeds estimated spare time of 5510.000; restart …
**** alsa_pcm: xrun of at least 10.853 msecs
subgraph starting at alsaP.2557.3 timed out (subgraph_wait_fd=21, status = 0, state = Finished)[/quote:8edvusic]
the machine is a via c3 cpu, and i know it has the speed to decode more than 8 flacs at once in realtime.
im wondering if fmod is giving flacs enough time to decode before it fills the alsa buffers
other players can play flacs without issue, but fmod seems to give these errors which result is choppy sound playback.
- nirva asked 13 years ago
ok, much more diagnosis done..
it seems that this problem doesnt occur at all when i play just 1 audio stream. but if i open up 5 System devices to 5 different audio cards on the machine, even if i dont play out of all 5 at once, i get the errors.
firstly, im wondering why fmod is having cpu usage go up when im not playing anything on those System devices.
fixing that should my errors when i play from just a stream or two. but i really do need to play from all 5 System devices at once.
if i use 5 alsaplayers to open to each of the 5 sound devices, i get no errors at all.
secondly, why is fmod taking up so much cpu at all?
[quote="nirva":ay75p3ha]ok, much more diagnosis done..
secondly, why is fmod taking up so much cpu at all?[/quote:ay75p3ha]
Where are you taking your CPU reading. I’ve noticed that FMOD reports CPU usage of around 45-60%. However, when I look use the top utility fmod is using under 5%. Of course, this is on one system with OSS. Using FMOD on any of my other systems or with ALSA causes segfaults or the programs block for eternity. Btw, I have the same sort of problem with ALSA and mp3s. The sound is very choppy and the speed is increased. I’m not very impressed with FMOD right now since I’ve been battling it for several days and haven’t received a word from support.
[quote="nirva":2i701jsb]im just looking at top for the cpu usage[/quote:2i701jsb]
That is strange then. I haven’t really played with flac yet.
I know FMOD is an excellent library and I know it has been used in many commercial applications. I enjoy the license and appreciate the developers. However, it really irritates me when I read the feature list of a library and it says it supports “Linux and Linux 64bit (amd64)” and “That’s currently 11 platforms! No other game audio library can claim to match anywhere near that many platforms!”. I’d say it’s more like 9 platforms, what happened to testing and QA? Instead I’ve wasted over 4 days trying to get the library to work, thinking that it is my problem.
when i modify playstream to do this, i get errors much less often, but i still do get stuff like this:
[quote:22nf3bw3]**** alsa_pcm: xrun of at least 56.247 msecs
subgraph starting at alsaP.3954.0 timed out (subgraph_wait_fd=7, status = 0, state = Triggered)[/quote:22nf3bw3]
it usually happens at startup
Please login first to submit.