2007-06-28 10:47:08 -07:00
|
|
|
/*
|
|
|
|
* NetAudio.c
|
|
|
|
*
|
2006-08-10 09:05:52 -07:00
|
|
|
* Internet audio. Team communication using microphone etc.. Currently
|
|
|
|
* just an unimplemented skeleton.
|
2007-06-28 10:47:08 -07:00
|
|
|
*/
|
|
|
|
|
2006-06-02 12:34:58 -07:00
|
|
|
#include "lib/framework/frame.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
#include "netplay.h"
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
2006-09-13 02:09:05 -07:00
|
|
|
BOOL NETinitAudioCapture(void)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETinitAudioCapture");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
2006-09-13 02:09:05 -07:00
|
|
|
BOOL NETshutdownAudioCapture(void)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETshutdownAudioCapture");
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
2006-09-13 02:09:05 -07:00
|
|
|
BOOL NETstartAudioCapture(void)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETstartAudioCapture");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
2006-09-13 02:09:05 -07:00
|
|
|
BOOL NETstopAudioCapture(void)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETstopAudioCapture");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
|
|
|
// update the pointers and process the buffer accordingly.
|
2006-09-13 02:09:05 -07:00
|
|
|
BOOL NETprocessAudioCapture(void)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETprocessAudioCapture");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-10 09:05:52 -07:00
|
|
|
BOOL NETinitPlaybackBuffer(void *pSoundBuffer)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETinitPlaybackBuffer");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
|
|
|
// handle the playback buffer.
|
2006-08-10 09:05:52 -07:00
|
|
|
BOOL NETqueueIncomingAudio( void *pSoundData, DWORD soundBytes,BOOL bStream)
|
2006-06-02 12:34:58 -07:00
|
|
|
{
|
2007-06-28 10:47:08 -07:00
|
|
|
debug(LOG_SOUND, "NETqueueIncomingAudio");
|
2006-06-02 12:34:58 -07:00
|
|
|
return FALSE;
|
2007-06-28 10:47:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
|
|
|
// Handle a incoming message that needs to be played
|
2006-08-10 09:05:52 -07:00
|
|
|
void NETplayIncomingAudio(NETMSG *pMsg)
|
2006-06-02 12:34:58 -07:00
|
|
|
{
|
2007-06-28 10:47:08 -07:00
|
|
|
debug(LOG_SOUND, "NETplayIncomingAudio");
|
|
|
|
}
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////////////////////
|
|
|
|
// close it all down
|
2006-09-13 02:09:05 -07:00
|
|
|
BOOL NETshutdownAudioPlayback(void)
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
debug(LOG_SOUND, "NETshutdownAudioPlayback");
|
|
|
|
return TRUE;
|
|
|
|
}
|