[Stk] Please advise: How to Hello World to Advanced step with RtAudio

Stephen Sinclair sinclair at music.mcgill.ca
Fri Dec 24 07:02:36 PST 2010


Shamun,

You could either put the RtAudio.cpp file under "src" and RtAudio.h
and RtError.h under "include", or you could make an "rtaudio"
subfolder to put these files and make sure your gcc flags are set up
in your Makefile to include these directories.  Honestly though it
depends on how you want to organize your project, so you have to make
the decision.  RtAudio is just like any other library in this respect.

Steve


On Fri, Dec 24, 2010 at 5:01 AM, Shamun toha md <shamun.toha at gmail.com> wrote:
> Dear Prof. Gary,
>
> I have this code, where i am trying to start from very basic and low
> level. Where i want to make a framework including RtAudio, WebKit.
> Please advise under which directory i can put the RtAudio and bare in
> my mind i can write this code once for Linux and port it to Mac or
> Windows, in a frameworked way.
>
> 1. ) My directory structure is:
>
> voice
> |- include
> |- resource
> |- src
> |--- main.cpp
> |--- README
> |- test
> |- dist
>
> 2) My main.cpp is now containing this:
> #include <FL/Fl.H>
> #include <FL/Fl_Window.H>
> #include <FL/Fl_Box.H>
>
> //using namespace fltk;
>
> int main(int argc, char **argv)
> {
>
>  Fl_Window *window = new Fl_Window(300,180);
>  Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
>  box->box(FL_UP_BOX);
>  box->labelsize(36);
>  box->labelfont(FL_BOLD+FL_ITALIC);
>  box->labeltype(FL_SHADOW_LABEL);
>  window->end();
>  window->show(argc, argv);
>  return Fl::run();
>
> }
>
>
> 3) Now i want to put RtAudio under my include directory. Please advise
> how can i make this a framework, friendly structured project.
>
>
> Thanks & Regards
> Shamun
>
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>
>
>



More information about the Stk mailing list