Displaying 6 results from an estimated 6 matches for "write_audio".
2004 Aug 06
0
[PATCH] speex-xmms endian problems fixed
...p;output);
+ speex_ip.add_vis_pcm(speex_ip.output->written_time(), FMT_S16_NE, speex_fs->channels, speex_fs->framesize * sizeof(short), &output);
speex_ip.output->write_audio(&output, speex_fs->framesize * sizeof(short));
@@ -497,7 +497,7 @@
while (speex_ip.output->buffer_free() < (speex_fs->framesize * sizeof(short)) && speex_fs->playing)...
2004 Sep 10
4
xmms-plugin problems
..., bytes, reservoir_);
< while(flac_ip.output->buffer_free() < (int)bytes && file_info_.is_playing && file_info_.seek_to_in_sec == -1)
< xmms_usleep(10000);
< if(file_info_.is_playing && file_info_.seek_to_in_sec == -1)
< flac_ip.output->write_audio(reservoir_, bytes);
---
> unsigned written_bytes = 0, bytes_ = 512 * ((file_info_.bits_per_sample+7)/8) * file_info_.channels;
>
> while (written_bytes < bytes) {
> if (written_bytes + bytes_ > bytes)
> bytes_ = bytes - written_bytes;
> flac_ip.a...
2006 Oct 31
0
5097578 cdrw dumps a core due to redzone violation
Author: arutz
Repository: /hg/zfs-crypto/gate
Revision: d6168689a27a22f7ca097c0dfd29141db33d147f
Log message:
5097578 cdrw dumps a core due to redzone violation
Files:
update: usr/src/cmd/cdrw/device.c
update: usr/src/cmd/cdrw/write_audio.c
2004 Sep 10
2
getting framesize in client
...decode_position;
if(flac_cfg.output.replaygain.enable && file_info_.has_replaygain) {
bytes = (int)FLAC__plugin_common__apply_gain(
@@ -365,6 +372,27 @@
xmms_usleep(10000);
if(file_info_.is_playing && file_info_.seek_to_in_sec == -1)
flac_ip.output->write_audio(sample_buffer_, bytes);
+
+ /* compute current bitrate */
+
+ written_time = flac_ip.output->written_time();
+ bh_index_w = written_time / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE ;
+ bh_index_o = flac_ip.output->output_time() / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SI...
2004 Sep 10
0
getting framesize in client
...decode_position;
if(flac_cfg.output.replaygain.enable && file_info_.has_replaygain) {
bytes = (int)FLAC__plugin_common__apply_gain(
@@ -365,6 +371,20 @@
xmms_usleep(10000);
if(file_info_.is_playing && file_info_.seek_to_in_sec == -1)
flac_ip.output->write_audio(sample_buffer_, bytes);
+
+ /* compute current bitrate */
+
+ written_time = flac_ip.output->written_time();
+ bh_index_w = written_time / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE ;
+ if(bh_index_w != bh_index_last_w && wide_samples_in_reservoir_ < SAMPLES_PER_WRI...
2004 Sep 10
3
getting framesize in client
On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote:
> --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> > I have few notes:
> >
> > It seems there is changed API in CVS again. So, what about adding
> > function like
> > unsigned FLAC__format_frame_size(const FLAC__Frame *frame)
> > which returns size of the frame in bytes. This