[Openal-devel] FreeALUT stream proof-of-concept

Sherief N. Farouk sherief at mganin.com
Sun Jun 8 15:27:16 PDT 2008


> Here's a patch that can/should be able to be applied to alut in svn to
> show off the combined C/C++ proof-of-concept idea, as well as a general
> API I'd go for. You can find a sample C++ app using it here:
> http://kcat.strangesoft.net/alutstream.cpp

[Sherief N. Farouk] 

Regarding the line:
stream = alutCreateStreamFromFile(argv[1], 8192, 4);

Why not have that functionality in the constructor? The current way seems a
bit too attached to C heritage. How about:

stream = new alut::Stream(argv[1], 8192, 4);

Minor point: I vote for all lower-case class names (alut::stream VS Stream),
ala STL. C++ aimed to make user-created types and native types on a similar
ground, and most C++ de-facto libraries (Boost, for one) use that
convention.

- Sherief



More information about the Openal-devel mailing list