[misc] Move STOB and BTOS macros to misc.h
This commit is contained in:
parent
171a75375b
commit
c50b038397
|
@ -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;
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <event2/event.h>
|
||||
#include <asoundlib.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "conffile.h"
|
||||
#include "logger.h"
|
||||
#include "player.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <event2/event.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "conffile.h"
|
||||
#include "logger.h"
|
||||
#include "player.h"
|
||||
|
|
Loading…
Reference in New Issue