|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Creating RAW SoundHello, I want to know if OpenAL is able to create RAW sound, I want to make a program that creates a sound from a sin curve, is it possible to load OpenAL with a raw buffer, or it has to be from a file?
Thanks. Zarnick http://www.geekvault.org _______________________________________________ Openal mailing list Openal@... http://opensource.creative.com/mailman/listinfo/openal |
|
|
Re: Creating RAW SoundShort answer : Yes, you can pass a memory resident raw sound sample to OpenAL. The date should be 8bit (unsigned chars) or 16bit (signed shorts). Long answer : In fact that is the only way to pass audio data to OpenAL. In many example applications and utility libraries, audio data is retrieved from a wave file which is loaded into memory and then passed to OpenAL. There is only one entry point to get audio data to OpenAL and that is alBufferData which takes a memory pointer to raw sample data and a few other parameters that tell AL what format the data is (e.g bit depth, channel count, playback frequency, etc ...) Dan Creative Labs (UK) Ltd. Notice The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying or distribution of the message, or any action taken by you in reliance on it, is prohibited and may be unlawful. If you have received this message in error, please delete it and contact the sender immediately. Thank you. Creative Labs UK Ltd company number 2658256 registered in England and Wales at Belmont Road, Belmont Place, Maidenhead, Berkshire, SL6 6TB Zarnick Maelstorm <zarnick@geekvaul t.org> To Sent by: openal@... openal-bounces@op cc ensource.creative .com Subject [Openal] Creating RAW Sound 06/25/2009 03:24 PM Hello, I want to know if OpenAL is able to create RAW sound, I want to make a program that creates a sound from a sin curve, is it possible to load OpenAL with a raw buffer, or it has to be from a file? Thanks. Zarnick http://www.geekvault.org_______________________________________________ Openal mailing list Openal@... http://opensource.creative.com/mailman/listinfo/openal ForwardSourceID:NT0006D10E _______________________________________________ Openal mailing list Openal@... http://opensource.creative.com/mailman/listinfo/openal |
| Free embeddable forum powered by Nabble | Forum Help |