Displaying 11 results from an estimated 11 matches for "length_in_msec".
2004 Sep 10
3
[st.n@gmx.net: Bug#200435: xmms-flac: doesn't properly support long files]
...0000000 +0200
> @@ -537,7 +537,7 @@
> file_info->bits_per_sample = metadata->data.stream_info.bits_per_sample;
> file_info->channels = metadata->data.stream_info.channels;
> file_info->sample_rate = metadata->data.stream_info.sample_rate;
> - file_info->length_in_msec = file_info->total_samples * 10 / (file_info->sample_rate / 100);
> + file_info->length_in_msec = (FLAC__uint64)file_info->total_samples * 10 / (file_info->sample_rate / 100);
> }
> else if(metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
> double gain,...
2004 Sep 10
2
getting framesize in client
...i'm not sure about it...
--
Miroslav Lichvar
-------------- next part --------------
--- src/plugin_xmms/plugin.c.orig 2002-11-07 18:40:44.000000000 +0100
+++ src/plugin_xmms/plugin.c 2002-11-09 17:28:45.000000000 +0100
@@ -58,6 +58,7 @@
unsigned channels;
unsigned sample_rate;
unsigned length_in_msec;
+ gchar *title;
AFormat sample_format;
int seek_to_in_sec;
FLAC__bool has_replaygain;
@@ -114,6 +115,10 @@
#define SAMPLES_PER_WRITE 512
static FLAC__int32 reservoir_[FLAC__MAX_BLOCK_SIZE * 2/*for overflow*/ * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS];
static FLAC__byte sample_buffer_[SAMPLES_...
2004 Sep 10
0
getting framesize in client
...s better one.
I'm sorry.
--
Miroslav Lichvar
-------------- next part --------------
--- src/plugin_xmms/plugin.c.orig 2002-11-07 18:40:44.000000000 +0100
+++ src/plugin_xmms/plugin.c 2002-11-10 00:40:20.000000000 +0100
@@ -58,6 +58,7 @@
unsigned channels;
unsigned sample_rate;
unsigned length_in_msec;
+ gchar *title;
AFormat sample_format;
int seek_to_in_sec;
FLAC__bool has_replaygain;
@@ -114,6 +115,10 @@
#define SAMPLES_PER_WRITE 512
static FLAC__int32 reservoir_[FLAC__MAX_BLOCK_SIZE * 2/*for overflow*/ * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS];
static FLAC__byte sample_buffer_[SAMPLES_...
2004 Sep 10
5
[st.n@gmx.net: Bug#200435: xmms-flac: doesn't properly support long files]
severity 200435 normal
thanks
I received this bug report from a Debian user. I can't think of any reason
offhand why the command line tool would work while the xmms plugin would
fail.
----- Forwarded message from Stephan Niemz <st.n@gmx.net> -----
Date: Tue, 8 Jul 2003 10:24:57 +0200
From: Stephan Niemz <st.n@gmx.net>
Resent-From: Stephan Niemz <st.n@gmx.net>
To: Debian
2004 Sep 10
0
[st.n@gmx.net: Bug#200435: xmms-flac: doesn't properly support long files]
> > - file_info->length_in_msec = file_info->total_samples * 10 / (file_info->sample_rate / 100);
> > + file_info->length_in_msec = (FLAC__uint64)file_info->total_samples * 10 / (file_info->sample_rate / 100);
...
> It seems like would be simpler to do something like:
>
> (file_info->total_sampl...
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
2004 Sep 10
0
http streaming in the xmms plugin
...BITRATE_HIST_SIZE 50
static unsigned bitrate_history_[BITRATE_HIST_SIZE];
+ static decoder_funcs_t const * decoder_func_table_;
InputPlugin *get_iplugin_info()
{
***************
*** 136,141 ****
--- 176,206 ----
return &flac_ip;
}
+ void set_track_info(const char* title, int length_in_msec)
+ {
+ if (file_info_.is_playing) {
+ flac_ip.set_info((char*) title, length_in_msec, file_info_.sample_rate * file_info_.channels * file_info_.bits_per_sample, file_info_.sample_rate, file_info_.channels);
+ }
+ }
+
+ static gchar* homedir()
+ {
+ gchar *result;
+ char *env_home = getenv(&q...
2004 Sep 10
0
getting framesize in client
..._o != bh_index_last_o && bh_index_last_w != bh_index_o) {
+ if(bh_index_o != bh_index_last_o && bh_index_o != bh_index_last_w && bh_index_o != (bh_index_last_w + 1) % BITRATE_HIST_SIZE) {
bh_index_last_o = bh_index_o;
flac_ip.set_info(file_info_.title, file_info_.length_in_msec, bitrate_history_[bh_index_o], file_info_.sample_rate, file_info_.channels);
}
2013 Feb 07
0
[PATCH 3/4] xmms - Fix inline linking problems with old glib
...+19,14 @@
#ifndef FLAC__PLUGIN_XMMS__PLUGIN_H
#define FLAC__PLUGIN_XMMS__PLUGIN_H
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#if defined(__GNUC_STDC_INLINE__)
+# define G_INLINE_FUNC extern inline __attribute__((gnu_inline))
+#endif
+
void set_track_info(const char* title, int length_in_msec);
#endif
diff --git a/src/plugin_xmms/tag.c b/src/plugin_xmms/tag.c
index 938cde8..3012d4d 100644
--- a/src/plugin_xmms/tag.c
+++ b/src/plugin_xmms/tag.c
@@ -19,9 +19,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#if HAVE_CONFIG_H
-# include <config.h>
-#end...
2004 Sep 10
2
getting framesize in client
--- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> > On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > > Yeah, it's useful, so now there is a
> > > FLAC__seekable_stream_decoder_get_decode_position() and
> > > FLAC__file_decoder_get_decode_position(). I
2004 Sep 10
2
xmms plugin, fileinfo
...ate = streaminfo.data.stream_info.sample_rate;
- tmp_file_info->channels = streaminfo.data.stream_info.channels;
- tmp_file_info->bits_per_sample = streaminfo.data.stream_info.bits_per_sample;
- tmp_file_info->total_samples = streaminfo.data.stream_info.total_samples;
-
- tmp_file_info->length_in_msec = streaminfo.data.stream_info.total_samples * 10 / (streaminfo.data.stream_info.sample_rate / 100);
-
- return TRUE;
-}
+#include "FLAC/metadata.h"
+#include "charset.h"
+#include "configure.h"
+#include "plugin_common/canonical_tag.h"
+#include "plugin_...