Total number of stereo files usinf ListPerformance?

2 views
Skip to first unread message

Slawson

unread,
Jun 5, 2010, 11:30:14 PM6/5/10
to standingwave-discussion
Hello All new to the group.

I have just set up a simple test to see if this lib is the solution I
have been looking for, for an app I am developing. I am using the
ListPerformance and loading in 6, 30 second stereo sounds. The
instance of AudioPlayer is set to 8192. The sounds themselves are 30
seconds 44.1K at 120 kbps. This works fine for about 5 seconds and
then the song slows down - finally at about 23 seconds I get drop outs
and then the song fails prior to the end of the sounds. When I limit
the number of tracks to 5 the songs plays through fine. Has anyone
else had luck with more simultaneous sounds and if so how many. If the
sounds are converted to 22K mono - will that effectivly double the
number of tracks I can have?

Joe Berkovitz

unread,
Jun 6, 2010, 11:25:05 AM6/6/10
to standingwav...@googlegroups.com
Hi Steve,

A couple of points based on feedback from other users:

- 22K mono is going to give you a 4x performance improvement over 44K stereo

- pre-decoding your MP3 SoundSource objects into Samples using a
CacheFilter will further help as you will not be running the MP3 codec
every time you request more bytes from a SoundSource.

...Joe Berkovitz

> --
> You received this message because you are subscribed to the Google Groups "standingwave-discussion" group.
> To post to this group, send email to standingwav...@googlegroups.com.
> To unsubscribe from this group, send email to standingwave-disc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/standingwave-discussion?hl=en.
>
>

Slawson

unread,
Jun 6, 2010, 3:02:19 PM6/6/10
to standingwave-discussion
Thanks Joe - I was just about to append my first post so please
indulge me another question.

I am having difficulty with the gain filter specifically adjusting the
gain of a single or selected element in the ListPerformance.

_crntSnd = _seq.elements[m.sel].source as IAudioSource; //m.sel in
this case is 0 there is just one sound source in the LP

Am I reading the source correctly that the filter always returns a
clone of the original source with the effected gain change and reset
to position 0?

to that end I tried

_crntSnd = new GainFilter(_crntSnd, _volVal) // _volVal is a simple .
10 set up or down.

No luck and the sound resets itself with each new volume value.

So is it possible to apply the GainFilter to a IAudioSource, while the
tracks are playing and not interrupt the stream?

Any guidance is greatly appreciated.

Joe Berkovitz

unread,
Jun 9, 2010, 2:46:32 PM6/9/10
to standingwav...@googlegroups.com
In StandingWave2 we're not set up well for real-time changes.

StandingWave3 addresses this but it's not ready for public release yet.

--
... . . . j

Reply all
Reply to author
Forward
0 new messages