Changeset 2816:b9e357b0dc43 in roaraudio for roard/codecfilter_wave.c
- Timestamp:
- 09/29/09 18:04:39 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_wave.c
r2607 r2816 154 154 struct codecfilter_wave_inst * self = (struct codecfilter_wave_inst *) inst; 155 155 struct roar_stream * s = ROAR_STREAM(self->stream); 156 char header[44];156 void * header; 157 157 int32_t tmp32; 158 158 int16_t tmp16; 159 159 int16_t bits; 160 160 int16_t codec; 161 int sid; 161 162 162 163 ROAR_DBG("cf_wave_write(inst=%p, buf=%p, len=%i) = ?", inst, buf, len); … … 169 170 if ( s->fh == -1 ) { 170 171 errno = EAGAIN; 172 return -1; 173 } 174 175 sid = ROAR_STREAM(self->stream)->id; 176 177 if ( stream_prethru_destroy(sid) == -1 ) { 178 return -1; 179 } 180 181 if ( stream_prethru_add_data(sid, &header, 44) == -1 ) { 171 182 return -1; 172 183 }
Note: See TracChangeset
for help on using the changeset viewer.