GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
fm_fake_push.c File Reference
#include <gpac/thread.h>
#include <gpac/modules/service.h>
#include <time.h>
#include "hyb_in.h"
+ Include dependency graph for fm_fake_push.c:

Data Structures

struct  FM_FAKE_PUSH
 

Macros

#define EXT_MEDIA_LOAD_THREADED
 
#define FM_FAKE_PUSH_AUDIO_FREQ   22050
 
#define FM_FAKE_PUSH_CHAN_NUM   2
 
#define FM_FAKE_PUSH_BITS   16
 
#define FM_FAKE_PUSH_TYPE   s16
 
#define FM_FAKE_PUSH_FRAME_DUR   60 /*in ms*/
 
#define FM_FAKE_PUSH_FRAME_LEN   ((FM_FAKE_PUSH_FRAME_DUR*FM_FAKE_PUSH_CHAN_NUM*FM_FAKE_PUSH_BITS*FM_FAKE_PUSH_AUDIO_FREQ)/(1000*8)) /*in bytes*/
 

Functions

static Bool FM_FAKE_PUSH_CanHandleURL (const char *url)
 
static GF_ObjectDescriptorFM_FAKE_PUSH_GetOD (void)
 
static GF_Err FM_FAKE_PUSH_Connect (GF_HYBMEDIA *self, GF_ClientService *service, const char *url)
 
static GF_Err FM_FAKE_PUSH_Disconnect (GF_HYBMEDIA *self)
 
static GF_Err FM_FAKE_PUSH_SetState (GF_HYBMEDIA *self, const GF_NET_CHAN_CMD state)
 
static GF_ESDget_esd ()
 
static GF_Err GetData (const GF_HYBMEDIA *self, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr)
 
u32 ext_media_load_th (void *par)
 
static u32 audio_gen_th (void *par)
 
static void audio_gen_stop (GF_HYBMEDIA *self)
 

Variables

FM_FAKE_PUSH FM_FAKE_PUSH_private_data
 
GF_HYBMEDIA master_fm_fake_push
 

Data Structure Documentation

struct FM_FAKE_PUSH
+ Collaboration diagram for FM_FAKE_PUSH:
Data Fields
u64 PTS
unsigned char buffer10[((60 *2 *16 *22050)/(1000 *8))]
unsigned char buffer90[((60 *2 *16 *22050)/(1000 *8))]
GF_Thread * th
GF_Thread * media_th

Macro Definition Documentation

#define EXT_MEDIA_LOAD_THREADED
#define FM_FAKE_PUSH_AUDIO_FREQ   22050
#define FM_FAKE_PUSH_CHAN_NUM   2
#define FM_FAKE_PUSH_BITS   16
#define FM_FAKE_PUSH_TYPE   s16
#define FM_FAKE_PUSH_FRAME_DUR   60 /*in ms*/
#define FM_FAKE_PUSH_FRAME_LEN   ((FM_FAKE_PUSH_FRAME_DUR*FM_FAKE_PUSH_CHAN_NUM*FM_FAKE_PUSH_BITS*FM_FAKE_PUSH_AUDIO_FREQ)/(1000*8)) /*in bytes*/

Function Documentation

static Bool FM_FAKE_PUSH_CanHandleURL ( const char *  url)
static
static GF_ObjectDescriptor * FM_FAKE_PUSH_GetOD ( void  )
static

+ Here is the call graph for this function:

static GF_Err FM_FAKE_PUSH_Connect ( GF_HYBMEDIA self,
GF_ClientService *  service,
const char *  url 
)
static

+ Here is the call graph for this function:

static GF_Err FM_FAKE_PUSH_Disconnect ( GF_HYBMEDIA self)
static

+ Here is the call graph for this function:

static GF_Err FM_FAKE_PUSH_SetState ( GF_HYBMEDIA self,
const GF_NET_CHAN_CMD  state 
)
static

+ Here is the call graph for this function:

static GF_ESD* get_esd ( )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err GetData ( const GF_HYBMEDIA self,
char **  out_data_ptr,
u32 out_data_size,
GF_SLHeader out_sl_hdr 
)
static

+ Here is the caller graph for this function:

u32 ext_media_load_th ( void *  par)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 audio_gen_th ( void *  par)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void audio_gen_stop ( GF_HYBMEDIA self)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

FM_FAKE_PUSH FM_FAKE_PUSH_private_data
GF_HYBMEDIA master_fm_fake_push
Initial value:
= {
"Fake FM (push mode)",
0 ,
0 ,
}
static GF_Err FM_FAKE_PUSH_Connect(GF_HYBMEDIA *self, GF_ClientService *service, const char *url)
Definition: fm_fake_push.c:256
static GF_ObjectDescriptor * FM_FAKE_PUSH_GetOD(void)
Definition: fm_fake_push.c:118
static GF_Err FM_FAKE_PUSH_Disconnect(GF_HYBMEDIA *self)
Definition: fm_fake_push.c:290
static Bool FM_FAKE_PUSH_CanHandleURL(const char *url)
Definition: fm_fake_push.c:83
FM_FAKE_PUSH FM_FAKE_PUSH_private_data
Definition: fm_fake_push.c:58
Definition: hyb_in.h:43
static GF_Err FM_FAKE_PUSH_SetState(GF_HYBMEDIA *self, const GF_NET_CHAN_CMD state)
Definition: fm_fake_push.c:307