C++ audio output -
i output audio stream (asynchronously) in c++.
i have looked here,here, , here obsolete , link broken.
i sure simple task, yet can't find anywhere on web it. prefer neat , tidy, stl oriented (e.g. device can write writing screeen?). using vc2013, can use windows precompiled headers prefer avoid it.
thanks,
update:
i trying stay close stl, of it, can't, i'll stick windows api. playsound inappropriate because data not on file, in buffer in memory. have tried using waveoutwrite
play 2 sound sequentially, i.e @ t=0 start sound 2 sec, , @ t=1 start sound 3 sec (overlap)
there many different ways output audio, , can't list them here.
since using windows, can use ms apis core audio or directsound.
you can use cross platform api fmod ex.
either way, outputting audio not hard, isn't trivial ; should expect ~10 api calls decent working audio stream example.
Comments
Post a Comment