Skip to contentSkip to conversation

Problems with rvplayer

DISCUSSION samad 4 participants 4 messages Jan 6, 1999 – Jan 8, 1999 Sound

lore
Share & tools
lore

samad

author
#0 lore raw

I have problem when I use RealAudio .
I have :
- SB 16 (CMI8330)
- kernel 2.1.132
- rvplayer 5.0.0.45

When I want to open a location, I listen the sound one second and I have this error:

[samad@samad samad]$ ****audio: write error: 22 bytes errno: 11 ****audio: write error: 203 bytes errno: 11

Anybody can help me?

THANKS
samad
samad.wanadoo.fr

#1 lore raw
Quoted 7 lines · samad

I have problem when I use RealAudio .
I have :
- SB 16 (CMI8330)
- kernel 2.1.132
- rvplayer 5.0.0.45

Quoted 7 lines

When I want to open a location, I listen the sound one second and I have this error:

[samad@samad samad]$ ****audio: write error: 22 bytes errno: 11 ****audio: write error: 203 bytes errno: 11

Anybody can help me?

Yes: Read /usr/src/linux/Documentation/Changes.txt.

Tom

#2 lore raw
In reply to samad
Quoted 1 line · samad

[SNIP]

Quoted 3 lines

Anybody can help me?

I'm not sure when it became an issue, but somewhere between 2.1.131 and 2.2.0-pre4 this appeared in the linux/Documentation/Changes file for the kernel:

RealPlayer
=====

Current releases of Real Player 5.0 depend on a bug in the sound
sub-system which is no longer there. Consequently, they don't work. Real is aware of the problem and should have an updated version of the software available shortly. In the mean time, you can always try backing up your copy of rvplayer, and then editing it by:

dd if=/dev/zero of=rvplayer bs=1 count=1 seeke7586 conv=notrunc dd
if=/dev/zero of=rvplayer bs=1 count=1 seekf5986 conv=notrunc

If you're lucky, you'll then have sound....

Quoted 5 lines

THANKS
samad
samad.wanadoo.fr

Hope that helps.

Quoted 1 line

--------------------------------------------------------------------------

      * * *      Atari 8-bit RULES! 400/800/XL/XE 2600/5200/7800            
      * * *      Battlestar: Galactica! Star Wars! SeaQuest!                
      * * *      Voltron! DESCENT! Star Trek! SPARCstation 2!            

* * * * *
** * ** ! ! ! ! L I N U X ! ! ! ! 2.0.36
--------------------------------------------------------------------------

#3 lore raw
In reply to samad
Quoted 11 lines · samad

I have problem when I use RealAudio .
I have :
- SB 16 (CMI8330)
- kernel 2.1.132
- rvplayer 5.0.0.45

When I want to open a location, I listen the sound one second and I have this error:

[samad@samad samad]$ ****audio: write error: 22 bytes errno: 11 ****audio: write error: 203 bytes errno: 11

rvplayer won't work with 2.1.late (or 2.2) without a patch/workaround.

One workaround courtesy Thomas Sailer is included at the end of this message.

Bill
--
Binary only apps such as rvplayer are slightly more annoying, but they can probably be worked around by LD_PRELOAD'ing something like the following (untested, requires the app to be dynamically linked against glibc2, otherwise you loose).

#include <string.h>
#include <unistd.h>
#include <fcntlbits.h>

extern int __open(const char *pathname, int flags, mode_t mode); extern int fcntl(int fd, int cmd, long arg);

int open(const char *pathname, int flags, mode_t mode)

{
        int res, rstnblk = flags & O_NONBLOCK && !strcmp(pathname, "/dev/dsp");
        
        res = __open(pathname, flags, mode);
        if (res = -1 || !rstnblk)
                return res;
        fcntl(res, F_SETFL, fcntl(res, F_GETFL, 0) & ~O_NONBLOCK);
        return res;
}

--