Update of /cvsroot/playerstage/code/player/client_libs/libplayerc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30717
Modified Files:
dev_audio.c playerc.h
Log Message:
Added support for audio interface state information
Index: dev_audio.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/dev_audio.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** dev_audio.c 18 Jun 2006 19:33:22 -0000 1.2
--- dev_audio.c 24 Aug 2006 00:24:15 -0000 1.3
***************
*** 107,110 ****
--- 107,116 ----
memcpy(device->mixer_data.channels, wdata->channels,
wdata->channels_count * sizeof(device->mixer_data.channels[0]));
}
+ else if((header->type == PLAYER_MSGTYPE_DATA) && (header->subtype ==
PLAYER_AUDIO_STATE_DATA))
+ {
+ assert(header->size > 0);
+ player_audio_state_t *sdata = (player_audio_state_t *) data;
+ device->state = sdata->state;
+ }
else
PLAYERC_WARN2("skipping audio message with unknown type/subtype: %d/%d\n",
Index: playerc.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/playerc.h,v
retrieving revision 1.204
retrieving revision 1.205
diff -C2 -d -r1.204 -r1.205
*** playerc.h 7 Aug 2006 14:17:59 -0000 1.204
--- playerc.h 24 Aug 2006 00:24:15 -0000 1.205
***************
*** 935,938 ****
--- 935,940 ----
player_audio_mixer_channel_list_t mixer_data;
+ /** current driver state */
+ uint32_t state;
} playerc_audio_t;
***************
*** 1536,1540 ****
{
/** Device info; must be at the start of all device structures. */
! playerc_device_t info;
/** The current cpu usage */
player_health_cpu_t cpu_usage;
--- 1538,1542 ----
{
/** Device info; must be at the start of all device structures. */
! playerc_device_t info;
/** The current cpu usage */
player_health_cpu_t cpu_usage;
***************
*** 2822,2826 ****
/** Un-subscribe from the speech recognition device */
int playerc_speech_recognition_unsubscribe(playerc_speech_recognition_t
*device);
!
/** @} */
/***************************************************************************/
--- 2824,2828 ----
/** Un-subscribe from the speech recognition device */
int playerc_speech_recognition_unsubscribe(playerc_speech_recognition_t
*device);
!
/** @} */
/***************************************************************************/
-------------------------------------------------------------------------
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