GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/soundinfo.c Lines: 11 11 100.0 %
Date: 2020-09-21 18:02:52 Branches: 0 0 - %

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