Archived

This topic is now archived and is closed to further replies.

generating sound (like QBasic) - with FMOD

This topic is 5151 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

in QBasic, it was possible to play sound tones of any frequency through the PC speaker. Is it possible to do something similar with FMOD, but then through the soundcard instead of PC Speaker? So in fact my question is, how to generate some sound with FMOD that doesn''t come from loading a wav, ogg, mp3 or whatever file from HD? And what''s the best way to let it play this sound continiously while also displaying realtime graphics, (like demos)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
you''ll probably need to render the samples yourself. eg. generate a square/sine wave algoritmically and write it to a buffer.
then just ask fmod to play it at the frequency you want.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
you''ll probably need to render the samples yourself. eg. generate a square/sine wave algoritmically and write it to a buffer.
then just ask fmod to play it at the frequency you want.


How does that work?

I mean writing to the buffer (what buffer)?

What variable type is this wave?

Any good tutorial?

Share this post


Link to post
Share on other sites