This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Sound mixer, first test


Sound mixer, first test

Postby efortier » May 8, 2003 @ 7:32pm

Hello all.

With permission from Johan, I am posting this message inviting anyone interested to give me a hand to test my sound mixer.

In this first test I include a Windows and ARM executable. As soon as I have a few feedbacks on it, I'll provide the DLL with some samples and documentation.

Here is the link to the test:

http://www.techlogic.ca/aw/gapisound.exe
(1.6 MB, self-extracting, tested)

Oh, and guess what? It's called GapiSound ;)

Ok, here are some instructions: run the file and extract its content anywhere on your harddrive. Go into the PC > PC_Test > Release directory, and run "Test.exe".

For your ARM based PocketPC, copy the PPC directory anywhere on your device, and run "Test.exe".

Here are the expected results: A basic application will start, after which you will hear a Duke Nukem babe say: "I'm all yours, Duke!". You will then hear Duke himself say: "So many babes, so little time!". Then music will start and a guy will speak on top of the music.

These four sounds are different format: ADPCM compression, OGG Vorbis compression, .IT module and PCM wave data. They are also at different rates. The mixer is set to 44100 hz, 16 bits, stereo.

Please report your results to me at efortier@techlogic.ca , here is what I need to know:

- Did the Windows version work? Was there any stutter or skips? Were the four sounds played?

- What is your PC sound card? (if known)

- Did the ARM PocketPC version works? Was there any stutter or skips? Were the four sounds played?

- Was the PocketPC application window with the words "LET'S ROCK!" properly shown?

- What is the brand and model number the PocketPC(s) device(s) you did the test on? (important)

For this test I used a fixed buffer count and size for the mixer, so if your device has a high sound letency it's possible that there will be some skips. This can usually be fixed by increasing the number or size of the buffers.

Here are some technical information on the mixer itself.

The mixer and IMA ADPCM code is all my own. Included is a mod player that can play .MOD, .IT, .XM. The mixer loader can load PCM, IMA ADPCM and OGG/Vorbis compressed sounds. It can either run with a built-in thread to mix the sounds continually, or you can include the "Mix()" function in your main loop.

The mixer also contains a streaming feature to let you play sounds without loading them all into memory. The mixer supports 11/22/44 Khz, 16/8 bits, mono/stereo. While "floats" are used to set the volume of the sounds and modules, these are converted into integers and no floats are used anywhere else in the mixer.

The OGG/Vorbis part is the Tremor v1.0 integer OGG implementation that can read (not write) any OGG encoded file. It provides compression comparable to MP3, without need for licensing.

The IMA ADPCM compression allows the use of 4 bits compressed sounds which also produce small file sizes.

The mixer features a "sound injection" feature neccessary for games. It lets the programmer load a sound once, and inject it any number of times into the mixer, even if the sounds overlaps itself.

There is no limit to the number of sounds that can be played simultaneously, however the more sounds playing, the larger the buffers and the more CPU power will be required to mix the sounds. On a 206 Mhz device, I have no problems playing 4-6 sounds at the same time, while keeping a good framerate.

The mixer uses standard waveOut() functions, and I've been careful in its implementation. So there shouldn't be too much problems in that area. (I hope!)

That's about it for now. I look forward to your comments, and if any of you have suggestions, please write them in this thread.

Thanks!

--Eric Fortier

PS: The mixer should also work correctly after you turn the device off then on ;)
Last edited by efortier on May 9, 2003 @ 5:32am, edited 1 time in total.
User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby summer_goth » May 8, 2003 @ 9:50pm

summer_goth
pm Member
 
Posts: 55
Joined: May 20, 2002 @ 8:19pm
Location: South Africa


Postby Presto » May 8, 2003 @ 10:50pm

<a href="http://www.pocketadventures.com/travel.asp"><img src="http://www.pocketadventures.com/images/ttc_banner.gif" border="0"></a>
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby efortier » May 8, 2003 @ 11:17pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


test

Postby warmi » May 9, 2003 @ 5:08am

Last edited by warmi on May 9, 2003 @ 5:37am, edited 1 time in total.
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby efortier » May 9, 2003 @ 5:30am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby mmgg » May 9, 2003 @ 7:54am

mmgg
pm Member
 
Posts: 4
Joined: Jun 27, 2002 @ 10:56pm


Postby Guest » May 9, 2003 @ 8:10am

Guest
 


Postby efortier » May 9, 2003 @ 8:11am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby maurice » May 9, 2003 @ 12:01pm

maurice
pm Member
 
Posts: 37
Joined: Feb 26, 2003 @ 9:08pm
Location: Rotterdam


Postby efortier » May 9, 2003 @ 6:34pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby stuff » May 10, 2003 @ 5:24am

stuff
pm Member
 
Posts: 41
Joined: Feb 2, 2003 @ 5:22pm


Postby efortier » May 10, 2003 @ 6:29am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby mmgg » May 10, 2003 @ 9:04am

mmgg
pm Member
 
Posts: 4
Joined: Jun 27, 2002 @ 10:56pm


Postby efortier » May 10, 2003 @ 9:34am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Next

Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum