search for: swfdec_audio_format_get_channel

Displaying 2 results from an estimated 2 matches for "swfdec_audio_format_get_channel".

2007 Oct 15
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_codec_audio.h test/swfdec-extract.c
...*(gint32 *) &data[4] = GUINT32_TO_LE (buffer->length + 36); - *(gint32 *) &data[40] = GUINT32_TO_LE (buffer->length); + "\001\0ccRRRRbbbbAAbbdata", 40); + *(guint32 *) &data[4] = GUINT32_TO_LE (buffer->length + 36); + *(guint16 *) &data[22] = GUINT16_TO_LE (swfdec_audio_format_get_channels (format)); + *(guint32 *) &data[24] = GUINT32_TO_LE (swfdec_audio_format_get_rate (format)); + /* bits per sample */ + i = swfdec_audio_format_is_16bit (format) ? 2 : 1; + *(guint16 *) &data[34] = GUINT16_TO_LE (i * 8); + /* block align */ + i *= swfdec_audio_format_get_channels (for...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...av->data; - /* FIXME: too much magic in this memmove */ - memmove (data, "RIFF----WAVEfmt \020\0\0\0" - "\001\0ccRRRRbbbbAAbbdata", 40); - *(guint32 *) (void *) &data[4] = GUINT32_TO_LE (buffer->length + 36); - *(guint16 *) (void *) &data[22] = GUINT16_TO_LE (swfdec_audio_format_get_channels (format)); - *(guint32 *) (void *) &data[24] = GUINT32_TO_LE (swfdec_audio_format_get_rate (format)); - /* bits per sample */ - i = swfdec_audio_format_is_16bit (format) ? 2 : 1; - *(guint16 *) (void *) &data[34] = GUINT16_TO_LE (i * 8); - /* block align */ - i *= swfdec_audio_format...