Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1160

Modified Files:
        AudioIO.cpp AudioIO.h Project.cpp 
Log Message:
Initialise the mListener of each project as it's created.

Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.379
retrieving revision 1.380
diff -u -d -r1.379 -r1.380
--- Project.cpp 17 Oct 2008 12:22:32 -0000      1.379
+++ Project.cpp 11 Nov 2008 00:12:36 -0000      1.380
@@ -374,6 +374,9 @@
    if(bMaximized)
       p->Maximize(true);
 
+   //Initialise the Listener
+   gAudioIO->SetListener(p);
+
    //Set the new project as active:
    SetActiveProject(p);
 

Index: AudioIO.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudioIO.cpp,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -d -r1.193 -r1.194
--- AudioIO.cpp 28 Oct 2008 22:21:45 -0000      1.193
+++ AudioIO.cpp 11 Nov 2008 00:12:36 -0000      1.194
@@ -2330,6 +2330,11 @@
       //FillMidiBuffers();
 }
 
+void AudioIO::SetListener(AudioIOListener* listener)
+{
+   mListener = listener;
+}
+
 /* HCK MIDI PATCH START */
 /* REQUIRES PORTMIDI */
 //void AudioIO::FillMidiBuffers()

Index: AudioIO.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudioIO.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- AudioIO.h   28 Oct 2008 22:21:45 -0000      1.61
+++ AudioIO.h   11 Nov 2008 00:12:36 -0000      1.62
@@ -64,6 +64,8 @@
  public:
    AudioIO();
    ~AudioIO();
+
+   void SetListener(AudioIOListener* listener);
    
    /** \brief Start up Portaudio for capture and recording as needed for
     * input monitoring and software playthrough only


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to