Too small buffer on the scratchy X1000 boot sound.

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
Deniil
Posts: 111
Joined: Mon Jul 11, 2011 7:59 pm

Too small buffer on the scratchy X1000 boot sound.

Post by Deniil »

For some reason I can't reply or post in the X1000 forum.
But in my (very recent) X1000 install the SoundPlayer was at the top of the startup-sequence, like one would expect so it plays while loading everything. (I read some had it at the top and some after LoadWB). However, it scratches a bit while the WB screen opens and I believe it is something as simple as a too small AHI buffer in the SoundPlayer, so it simply stutters a bit, that's all.
User avatar
ddni
Posts: 230
Joined: Fri Dec 02, 2011 11:06 pm

Re: Too small buffer on the scratchy X1000 boot sound.

Post by ddni »

Can you fix it?
Works after LoadWB, scratchy after setpatch.
User avatar
ChrisH
Beta Tester
Beta Tester
Posts: 920
Joined: Mon Dec 20, 2010 9:09 pm
Contact:

Re: Too small buffer on the scratchy X1000 boot sound.

Post by ChrisH »

I guess you are talking about this thread:
http://forum.hyperion-entertainment.biz ... =33&t=1339
Deniil
Posts: 111
Joined: Mon Jul 11, 2011 7:59 pm

Re: Too small buffer on the scratchy X1000 boot sound.

Post by Deniil »

@ChrisH

Yes, that's the thread. Seems like LoadWB is so CPU heavy when opening the screen and lauching all WBStartup apps at once that it cause the SoundPlayer to stutter a bit (in my guess because of a relativey small AHI buffer).
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1483
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Too small buffer on the scratchy X1000 boot sound.

Post by tonyw »

The soundplayer loads one second of audio (from disk) at a time and double-buffers it (same logic and code as PlayCD).

If sound stutters, it is probably because something is running at a high priority for seconds at a time.
cheers
tony
Deniil
Posts: 111
Joined: Mon Jul 11, 2011 7:59 pm

Re: Too small buffer on the scratchy X1000 boot sound.

Post by Deniil »

When LoadWB runs it launches (in my case) 14 programs at the same time which all will load a set of libraries and stuff for the first time. Doing something like that could get any player with only 1 second disk buffer to stutter. I suggest increasing its buffer to 5 seconds.

In the meantime I will do some experimentation with ChangeTaskPri around Run SoundPlayer.
Post Reply