Update of /cvsroot/playerstage/code/player/client_libs/libplayerc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27192/libplayerc

Modified Files:
        dev_audio.c playerc.h 
Log Message:
Updates to audio interface.


Index: dev_audio.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/dev_audio.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** dev_audio.c 24 Aug 2006 00:24:15 -0000      1.3
--- dev_audio.c 12 Feb 2007 01:29:42 -0000      1.4
***************
*** 237,250 ****
  
  /** @brief Request to record new sample */
! int playerc_audio_sample_rec(playerc_audio_t *device, int index)
  {
    int result = 0;
!   player_audio_sample_item_t req;
    req.index = index;
    if((result = playerc_client_request(device->info.client, &device->info,
                              PLAYER_AUDIO_SAMPLE_REC_REQ,
!                             &req, NULL, 0)) < 0)
      return result;
  
    return 0;
  }
--- 237,255 ----
  
  /** @brief Request to record new sample */
! int playerc_audio_sample_rec(playerc_audio_t *device, int index, uint32_t 
length)
  {
    int result = 0;
!   player_audio_sample_rec_req_t req;
!   player_audio_sample_rec_req_t rep;
!   memset (&rep, 0, sizeof (player_audio_sample_rec_req_t));
    req.index = index;
+   req.length = length;
    if((result = playerc_client_request(device->info.client, &device->info,
                              PLAYER_AUDIO_SAMPLE_REC_REQ,
!                             &req, &rep, sizeof 
(player_audio_sample_rec_req_t))) < 0)
      return result;
  
+ //  *index = req.index;
+   device->last_index = rep.index;
    return 0;
  }

Index: playerc.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/playerc.h,v
retrieving revision 1.217
retrieving revision 1.218
diff -C2 -d -r1.217 -r1.218
*** playerc.h   18 Dec 2006 12:17:58 -0000      1.217
--- playerc.h   12 Feb 2007 01:29:42 -0000      1.218
***************
*** 712,716 ****
  
  @param client Pointer to the client object
! @param limit The number of times to attempt to reconnect to the server.  Give 
-1 for 
         infinite retry.
  */
--- 712,716 ----
  
  @param client Pointer to the client object
! @param limit The number of times to attempt to reconnect to the server.  Give 
-1 for
         infinite retry.
  */
***************
*** 1000,1003 ****
--- 1000,1005 ----
    uint32_t state;
  
+   int last_index;
+ 
  } playerc_audio_t;
  
***************
*** 1044,1048 ****
  
  /** @brief Request to record new sample */
! int playerc_audio_sample_rec(playerc_audio_t *device, int index);
  
  /** @brief Request mixer channel data
--- 1046,1050 ----
  
  /** @brief Request to record new sample */
! int playerc_audio_sample_rec(playerc_audio_t *device, int index, uint32_t 
length);
  
  /** @brief Request mixer channel data
***************
*** 1759,1763 ****
    /** ID for this scan */
    int scan_id;
!   
    /** Laser IDentification information */
    int laser_id;
--- 1761,1765 ----
    /** ID for this scan */
    int scan_id;
! 
    /** Laser IDentification information */
    int laser_id;
***************
*** 2836,2849 ****
  /** @brief Set the 3D pose of a named simulation object */
  int playerc_simulation_set_pose3d(playerc_simulation_t *device, char* name,
!                                 double gx, double gy, double gz, 
                                  double groll, double gpitch, double gyaw);
  
  /** @brief Get the 3D pose of a named simulation object */
  int playerc_simulation_get_pose3d(playerc_simulation_t *device, char* 
identifier,
!                                 double *x, double *y, double *z, 
                                  double *roll, double *pitch, double *yaw, 
double *time);
  
  /** @brief Set a property value */
! int playerc_simulation_set_property(playerc_simulation_t *device, 
                                      char* name,
                                      char* property,
--- 2838,2851 ----
  /** @brief Set the 3D pose of a named simulation object */
  int playerc_simulation_set_pose3d(playerc_simulation_t *device, char* name,
!                                 double gx, double gy, double gz,
                                  double groll, double gpitch, double gyaw);
  
  /** @brief Get the 3D pose of a named simulation object */
  int playerc_simulation_get_pose3d(playerc_simulation_t *device, char* 
identifier,
!                                 double *x, double *y, double *z,
                                  double *roll, double *pitch, double *yaw, 
double *time);
  
  /** @brief Set a property value */
! int playerc_simulation_set_property(playerc_simulation_t *device,
                                      char* name,
                                      char* property,


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to