Commit 071b759a authored by Monty Montgomery's avatar Monty Montgomery

Add missing files to the repository



git-svn-id: https://svn.xiph.org/trunk/postfish@6593 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 615ab7ea
/*
*
* postfish
*
* Copyright (C) 2002-2004 Monty and Xiph.Org
*
* Postfish is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* Postfish is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Postfish; see the file COPYING. If not, write to the
* Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*
*/
#include <sys/types.h>
#include "postfish.h"
#include "mute.h"
sig_atomic_t *mute_active;
extern int input_ch;
int mute_load(void){
mute_active=calloc(input_ch,sizeof(*mute_active));
return 0;
}
int mute_channel_muted(u_int32_t active,int i){
return(!(active&(1<<i)));
}
time_linkage *mute_read(time_linkage *in){
u_int32_t val=0;
int i;
for(i=0;i<input_ch;i++)
if(!mute_active[i])
val|= (1<<i);
in->active=val;
return(in);
}
/*
*
* postfish
*
* Copyright (C) 2002-2004 Monty and Xiph.Org
*
* Postfish is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* Postfish is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Postfish; see the file COPYING. If not, write to the
* Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
*
*/
extern int mute_load(void);
extern time_linkage *mute_read(time_linkage *in);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment