e-Picture

Be Developers:
Put your banner here!



PlaySound Classes

(Development)

Version: 2
By: Sean Heber
E-mail: bigzaphod@legions.com
Web page: Available
Release Date: Available Now
Info Last Modified: 4/16/99
Requires BeOS version: R4 PPC, R4 Intel
License: Freeware
Cost: 0
Source Available?: Yes


R4-PPC Download (20 kb)


R4-Intel Download (20 kb)


Description:

classSound and classSoundMaster allow the programmer to EASILY add 
sound support to their BeOS application.  Sure, the BeOS API is easy, 
but this is even better.  Simply give the class a path to an audio 
file (not MIDI, wav-type only), and that's about it.  It figures out 
the codec (if Be supports it), the sample rate, etc.  You just simply 
call PlaySound() and it takes care of it for you.

There is also a wrapper class (classSoundMaster) that allows you to 
easily create a list of sound files for your application--all 
referenced by an ID number for easy handling.

These classes are a little more than just a wrapper around Be's API. 
They provide an easy, generic interface that allows you to play the 
same file at the same time (or not), create lists of files for an 
entire app to make sound handling easy, etc.  It's also very well 
documented in code and in a README file (including examples).

Full source included.  Almost no restriction in use.  Not under the 
GPL or any other similar license.  A very simple command-line app is 
included.

There have been reports that this also works fine on the PPC, so if 
you need cross platform BeOS sound, this is the class you want.  :-)

VERSION 2.0 UPDATE:
Fixed several bugs that cropped up when playing back the same file 
over itself.  I don't know what happened, but I must have changed 
something.  Anyway, it seems to be fixed now.  Also, there are three 
very minor interface changes.  Check the 2.0-UPDATES file and the 
README for more information.  This one works a lot better!


If you have any questions about the information provided for a specific application, please e-mail the author. If you have any questions about the BeWare pages themselves, though, feel free to e-mail webmaster@be.com.

Copyright © 1999 by Be, Inc. All rights reserved. Legal information (includes icon usage info).
Comments, questions, or confessions about our site? Please write the Webmaster.