Posts Tagged ‘czPlayer’

Plans for the next version of czPlayer

Sunday, November 29th, 2009
Been in Scotland for near 2 years already, working at RealtimeWorlds, more specifically in a game called APB.
Times does fly when we’re having fun!
Meanwhile, I did work a bit in czPlayer, but nothing really new. Mostly bugfixes or small features for a client.
So despite not having any updates here in the blog, the following things happened to czPlayer
- Some games using czPlayer were release
- A client added iPhone support. Was as simple as creating a single class with about 160 lines of code.
- Implemented volume ramping, which helps a great deal in removing clicks, especially for chiptunes
- Added some other small features, again with minor effort. :)
- Fixed some bugs, especially related to Symbian.
Also, apart from czPlayer, I managed to squeeze in some other small freelance work.
The last few months I’ve been thinking where to go next with czPlayer, and I’ve decided to go with a new design.
Personally, I think the current design is really good performance-wise, minimizing copying memory around unnecessary or other unnecessary overhead.
For example, internally a Mixer object contains MixerInputGroup objects, and each MixerInputGroup contains individual MixerInput objects. Each of those classes have a SetVolume method, which allows me to have several levels of volume (aka as Global volume and channel volume) which get multiplied to calculate a final volume to apply in a single mixing pass, avoiding the need to mix at the MixerInputGroup level, and then again at the Mixer level.
Although the current design has proven successful, it does have severe limitations in flexibility, has for example not being able to apply an hypothetically effect to a single sound or sound group. It’s only possible to apply an effect to the final mix.
So I decided to go with a new design which should be more flexible, but I’ll still use the old codebase as reference, especially because of the small fixes/features I’ve implemented meanwhile.
Some of the new features I’m planning:
- DSP plugins. Will probably provide just 1 or two as an example.
- Configurable DSP network. This will make it possible to create a custom DSP network and play sounds in specific point in the network.
- Streaming support. Only Ogg Vorgis planned so far, but should pave the way for other formats
- Maybe virtual voices (ala FMOD style), if I get the time.
Again, those features shouldn’t add significant overhead until used, of course.
If the user  sticks with the default settings, performance should hopefully be comparable to the current version.
I’ll be dropping support for old Symbian editions (< 3rd edition), which should make some things easier.
I wish I could drop Palm OS, which is a real pain to develop for, but a particular client still requires it.

czPlayer 0.2.1 Released

Saturday, March 1st, 2008

Here I am again.
Almost 2 months and here it is a new version.
No new fancy features or big changes. Basically, I’ve just added support for loading WAV files encoded with ADPCM (IMA and Microsoft ADPCM supported).

I’ve been so quiet for a reason…
Last 2 months I’ve been looking for a new position in the games industry, and finally got one in Scotland-Dundee.

You can download the new version here :
Download lastest czPlayer demo

czPlayer 0.2.0 released

Monday, January 7th, 2008

I’ve been working hard on czPlayer, and here is the result. Version 0.2.0 released.
The API is mostly incompatible with the previous 0.1.1 version.
I’ve made a lot of changes to this version and added some new features, so I decided to jump the version number to 0.2.0.
All the internal refactoring I’ve made will hopefully allow me to add some new features I have in mind, like DSP effects (both internal and user provided) .
Needless to say, I’m not particularly confident about the stability of this version, with all the changes I’ve made. Some functions were not even tested yet. But like I said in earlier posts, there is always something to fix or improve, so I better release and work from there, than to keep fixing/improving stuff and never release.
I have so many crazy ideas for features! But most of them will not be implemented, because of the targeted platforms.
Codesize and performance have priority, not features… well… at least for czPlayer.
That leads me to another thing I’ve been thinking about…
Maybe I’ll eventually fork czPlayer into Mobile and Non-Mobile versions, so that I can go wild on all the things I want to implement. Hehe
Most of what I dislike in czPlayer (both internal, and in the external API), are a direct consequence of the compromises I had to make to support the targeted platforms, and have the same API for all of them.
Nuff said… You’ve got to ask yourself one question: “Do I feel lucky? Well, do you, punk ?

If so, go ahead, download the new version and give it a try:
Download lastest czPlayer demo.