Hi, Jos. Thanks for writing daisy-player. It looks quite good to me.
I find that a lot of vision impaired people like to speed up podcasts
and audio books. This is a feature I would be happy to help add to
daisy-player. I wrote a simple C library called sonic which can speed
up or slow down speech with fairly low distortion. It's best
attribute is low distortion at high speed up factors of 2X or more.
It looks like I need to modify madplay, to enable speeding up of
speech as an option, …
[View More]which should not be too hard. I'll post to their
dev list to see if I the author is interested in including the
capability.
Bill
[View Less]
Hi everybody,
I would like to include MAD in an xcode project and I used the very simple
minimad.c file.
I also included the headers from the project trunk. But then I get an error:
"_mad_decoder_finish", referenced from:
_main in main.o
during the linking.
So I realized that I have to build the mad-lib first (right?)
and I started the ./configure from console which went well but the make
throws another error:
(sed -e '1s|.*|/*|' -e '1b' -e '$s|.*| */|' -e '$b' \
-e 's/^.*/ *&…
[View More]amp;/' ./COPYRIGHT; echo; \
echo "# ifdef __cplusplus"; \
echo 'extern "C" {'; \
echo "# endif"; echo; \
if [ ".-DFPM_INTEL" != "." ]; then \
echo ".-DFPM_INTEL" | sed -e 's|^\.-D|# define |'; echo; \
fi; \
sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \
config.h; echo; \
sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \
config.h; echo; \
sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \
config.h; echo; \
for header in version.h fixed.h bit.h timer.h stream.h frame.h synth.h
decoder.h; do \
echo; \
sed -n -f ./mad.h.sed ./$header; \
done; echo; \
echo "# ifdef __cplusplus"; \
echo '}'; \
echo "# endif") >mad.h
make all-recursive
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem
-fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks
-fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce
-MT version.lo -MD -MP -MF ".deps/version.Tpo" -c -o version.lo version.c;
\
then mv -f ".deps/version.Tpo" ".deps/version.Plo"; else rm -f
".deps/version.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall
-march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps
-fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove
-fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF
.deps/version.Tpo -c version.c -fno-common -DPIC -o .libs/version.o
cc1: warning: -f[no-]force-mem is nop and option will be removed in 4.3
version.c:1: error: CPU you selected does not support x86-64 instruction set
version.c:1: error: CPU you selected does not support x86-64 instruction set
make[2]: *** [version.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
This looks like the wrong architecture.. but I am not so familiar with the
options in 'make'.
Can anybody confirm the first case and does anyone have an idea for the
make-problem?
Thanks a lot in advance!
Best
Johannes
[View Less]
Hi,
Im trying to play mp3's on a new arch using madplay and alsa.
If I pipe the output of madplay into alsa it works fine eg:
madplay -R48000 -o wav:- file.mp3 | aplay -cc
but if I invoke it directly:
madplay - R48000 file.mp3
it sounds horrible, like its clipping and there lots of
white/pinknoise mixed in.
I have tried attenuating the output (-a -10) and check alasa-mixer
settings that doesn't help.
I also get the same effect when playing audio via mplayer (using
libmad) I have no FPU …
[View More]so cant try mpg123 for instance.
Any help or hints welcome.
Cheers
Neil
[View Less]
Hello Mad List,
I am working on a project that uses libmad to decode mp3s,
one requirement for the project is for rewinding or fast forwarding to
a particular frame at any point in the playback.
What is the preferred way to do that?
Currently I set a variable when skipping forward that disables the write to
output (which is libao). It works but I get a bunch of alsa underun errors
(Not a libmad problem though). What bothers me more though is when I want to
rewind I have to re-initialize the …
[View More]song and skip to the frame that is
needed. That seems very inefficient to me. Is there a better way?
Thanks for any advice,
Adam Magaluk
[View Less]
Hi!
I've sent this email today without subscribing first. It seems like it didn't reached list. So I subscribed and sent it again.
Recently I packaged mpd for NixOS [1] and found one problem. mpd's configure uses pkgconfig to find libmad. There was no mad.pc in NixOS and I was surprised to find that Arch Linux, Gentoo and Debian patch libmad to install mad.pc. So I took patch from Arch Linux [2]. I think it would be good to add this patch to libmad sources, what do you think?
[1] http://…
[View More]nixos.org
[2] http://repos.archlinux.org/wsvn/packages/libmad/trunk/libmad.patch
--
Александр Цамутали
[View Less]
Hello,
I'd like to submit a patch for the Libmad MP3 decoder to support
the Atmel AVR32 architecture (www.atmel.com/avr32). This patch has been
hardly validated and is in the state to be released.
Patch is available here:
http://www.avrfreaks.net/index.php?module=Freaks%20Files&func=viewFile&id=3…
Could anyone tell me what is the procedure for review?
Kind Regards,
Stephane Mainchain
Hi all,
Sorry for the double-post - gmail has decided to send the mail before I was
done :-(
I want to tag existing, untagged mp3 files. Using the code below, I can save
v1.1 id3 tags in the file,
but I'm struggling to get v2.3.0 tags to be saved as well (I want both v1.1
and v2.3.0 in the same file).
The code below will just save properly the first tag (ID3_FRAME_COMMENT),
the second one seems to be ignored.
Any help or code snippet would be welcome!
Thank's,
Pog
---
Code snippet below:
…
[View More]{
struct id3_file *id3 =
id3_file_open("/home/myself/foo.mp3",
ID3_FILE_MODE_READWRITE);
struct id3_tag *tag = id3_file_tag(id3);
if (tag != NULL) {
id3_tag_options(tag, ID3_TAG_OPTION_ID3V1, ~0);
id3_tag_options(tag, ID3_TAG_OPTION_COMPRESSION, 0);//for
ipod/itunes compatibility
id3_tag_options(tag, ID3_TAG_OPTION_CRC, 0);
id3_set_string(tag, ID3_FRAME_TITLE,
"azertyuiopqdsfhjkklwxcéèàç@êôî",
ID3_FIELD_TEXTENCODING_UTF_16);
id3_set_string(tag, "TOWN",
"SimplePod",
ID3_FIELD_TEXTENCODING_UTF_16);
}
// update
id3_file_update(id3);
id3_file_close(id3);
}
// taken from the gtkpod code base
void id3_set_string(struct id3_tag *tag,
const char *frame_name,
const char *data, enum id3_field_textencoding encoding)
{
int res;
struct id3_frame *frame;
union id3_field *field;
id3_ucs4_t *ucs4;
/* clear the frame, because of bug in libid3tag see
http://www.mars.org/mailman/public/mad-dev/2004-October/001113.html
*/
while ((frame = id3_tag_findframe(tag, frame_name, 0))) {
id3_tag_detachframe(tag, frame);
id3_frame_delete(frame);
}
if ((data == NULL) || (strlen(data) == 0))
return;
frame = id3_frame_new(frame_name);
id3_tag_attachframe(tag, frame);
/* Use the specified text encoding */
field = id3_frame_field(frame, 0);
id3_field_settextencoding(field, encoding);
if ((strcmp(frame_name, ID3_FRAME_COMMENT) == 0) ||
(strcmp(frame_name, "USLT") == 0)) {
field = id3_frame_field(frame, 3);
field->type = ID3_FIELD_TYPE_STRINGFULL;
} else {
field = id3_frame_field(frame, 1);
field->type = ID3_FIELD_TYPE_STRINGLIST;
}
if (encoding == ID3_FIELD_TEXTENCODING_ISO_8859_1) {
/* we read 'ISO_8859_1' to stand for 'any locale charset'
-- most programs seem to work that way */
//always use utf-8, local encoding FIXME
//id3_latin1_t *raw = charset_from_utf8(data);
ucs4 = id3_latin1_ucs4duplicate(data);
//g_free(raw);
} else {
/* Yeah! We use unicode encoding and won't have to
worry about charsets */
ucs4 = id3_utf8_ucs4duplicate((id3_utf8_t *) data);
}
if ((strcmp(frame_name, ID3_FRAME_COMMENT) == 0)
|| (strcmp(frame_name, "USLT") == 0))
res = id3_field_setfullstring(field, ucs4);
else
res = id3_field_setstrings(field, 1, &ucs4);
g_free(ucs4);
if (res != 0)
g_print(_("Error setting ID3 field: %s\n"), frame_name);
}
[View Less]
Hi all,
I want to tag existing, untagged mp3 files. Using the code below, I can save
v1.1 id3 tags in the file,
but I'm struggling to get v2.3.0 tags to be saved as well (at the s
Any help or code snippet to
Hi,
I'ma new developper in audio decoding and I'm working on a prototype for
Android.
Does anyone can explain me how I can compile libmad for android (ARM
architecture) ?
Thanks a lot.