Revision: 7289
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7289&view=rev
Author:   natepak
Date:     2009-01-23 19:44:12 +0000 (Fri, 23 Jan 2009)

Log Message:
-----------
modified test app to show more features.

Modified Paths:
--------------
    code/gazebo/trunk/examples/libgazebo/openal/openal.cc

Modified: code/gazebo/trunk/examples/libgazebo/openal/openal.cc
===================================================================
--- code/gazebo/trunk/examples/libgazebo/openal/openal.cc       2009-01-23 
19:23:09 UTC (rev 7288)
+++ code/gazebo/trunk/examples/libgazebo/openal/openal.cc       2009-01-23 
19:44:12 UTC (rev 7289)
@@ -47,10 +47,29 @@
     return -1;
   }
 
+  printf("Play\n");
+  /// Play the sound in the buffer
   audioIface->Lock(1);
   audioIface->data->cmd_play = 1;
   audioIface->Unlock();
 
+  usleep(1000000);
+
+  printf("Pause\n");
+  /// Pause the sound
+  audioIface->Lock(1);
+  audioIface->data->cmd_pause = 1;
+  audioIface->Unlock();
+
+  usleep(1000000);
+
+  printf("Continue\n");
+
+  /// Play the sound in the buffer
+  audioIface->Lock(1);
+  audioIface->data->cmd_play = 1;
+  audioIface->Unlock();
+
   return 0;
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to