[misc] Move STOB and BTOS macros to misc.h

This commit is contained in:
ejurgensen 2016-12-26 19:29:47 +01:00
parent 171a75375b
commit c50b038397
3 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,11 @@
#include <time.h>
#include <pthread.h>
/* Samples to bytes, bytes to samples */
#define STOB(s) ((s) * 4)
#define BTOS(b) ((b) / 4)
struct onekeyval {
char *name;
char *value;

View File

@ -32,6 +32,7 @@
#include <event2/event.h>
#include <asoundlib.h>
#include "misc.h"
#include "conffile.h"
#include "logger.h"
#include "player.h"

View File

@ -33,6 +33,7 @@
#include <event2/event.h>
#include "misc.h"
#include "conffile.h"
#include "logger.h"
#include "player.h"