GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/soundinfo.c Lines: 11 11 100.0 %
Date: 2020-09-12 17:36:58 Branches: 0 0 - %

Line Branch Exec Source
1
#include <gwion_util.h>
2
#include <soundinfo.h>
3
4
714
struct SoundInfo_ *new_soundinfo(MemPool p) {
5
714
  struct SoundInfo_ *si = mp_calloc(p, SoundInfo);
6
714
  si->in = si->out = 2;
7
714
  si->sr = 48000;
8
714
  return si;
9
}
10
11
7
struct SoundInfo_ *soundinfo_cpy(MemPool p, const struct SoundInfo_ *src) {
12
7
  struct SoundInfo_ *si = mp_calloc(p, SoundInfo);
13
7
  si->in  = src->in;
14
7
  si->out = src->out;
15
7
  si->sr  = src->sr;
16
7
  return si;
17
}