[Openal] OpenAL with C++ WindowsForm application?
Stefanos A.
stapostol at gmail.com
Tue Sep 29 05:48:21 PDT 2009
On Tue, 2009-09-29 at 15:27 +0300, Ümit Uzun wrote:
> Hi All;
>
> Thanks for your all relies.
>
> >Stefanos, I have looked at openTK but I have an specific situation.
> OpenAL is wrap our soundCard or emulate soundCard by Generic Software
> and it encapsulate all low level function, but by using Framework I
> can select expected channel to play mono sound. For example I can play
> different mono sound to different channel by using specified
> configuration in Framework.cpp, if I use OpenTK could I inject some
> part of framework?
>
> template<typename T> T *load_data(const T *data, int size, const char
> *channels)
> {
> [snipped]
> }
I'm not sure I understand your question 100%, but your code snippet does
not actually use OpenAL. This code should work without any changes.
The interesting part comes right after this, when you call alBufferData
(which is called AL::BufferData in OpenTK). Translating the call should
be easy but please post if you encounter any problems.
In general, OpenTK provides a 1-1 wrapper over the OpenAL API. It does
not restrict you in any way - if you can output 7.1 sound output using
OpenAL directly, you can also do it through OpenTK.
More information about the Openal
mailing list