EvalVid Audio

EvalVid Audio is a simulation tool for simulating audio based applications. We also will transfer the audio file based on the packet queue handling mechanism using evalvid-2.6 version.

RA-Eval supported:

  • ffmpeg.
  • exe.
  • ra-evalvidudpsink2.{cc,h}.
  • awk scripts.
  • fixyuv-ra.exe.
  • cc.

Sample code for EvalVid Audio using network simulator 2

#include <string.h> 
#include <stdio.h> 
#include <stdlib.h> 
#include "error.h" 
#include "rtp.h" 
#include "socket.h"
#include "timing.h"
#include "queue.h" 
#define INC(q) ((q->s) = ((q->s) + 1) % q->n); 
unsigned buffers(queue_t *q) { return q->n; } 
void setbuffertime(queue_t *q, 
unsigned ms) { q->buffertime = ms; } 
unsigned buffertime(queue_t *q) { return q->buffertime; } 
void setdeadline(queue_t *q, 
unsigned ms) { q->deadline = ms; } 
unsigned deadline(queue_t *q) { return q->deadline; } 
unsigned queuelen(queue_t *q) { return q->len; } 
double sendrate(queue_t *q) { return q->bytes_sent / curtime(); } 
int createq(queue_t *q, unsigned packets) {   
if (0 == (q->packets = calloc(packets, sizeof *q->packets))) 
{     seterror(err_NM);     return 0;   }  
if (!createlock(&q->lock)) {     return 0;   }  
 q->n = packets;   q->s = 0; 
 q->packetlist = 0;  
 q->len = 0;  
 q->bytes_sent = 0;  
 q->buffertime = 0;   
 q->deadline = 0;  
 return 1; } 

Download sample Evalvid audio transfer program using packet queue mechanism in ns2.


NS2 Member Accounts | |
© 2005 - 2024 Vanet Projects

© 2005 - 2024 Matlab Projects