Menu

#8 It doesn't play

open
nobody
5
2002-09-06
2002-09-06
Anonymous
No

I've compiled Apollo under RH 7.3 without KDE support.
It starts, but it doesn't play - the title of the
window shows the current song, the button "stop"
becomes available, but the position bar doesn't move,
and I don't hear anything. I had configured path to
mpg123. I've used both mpg321 shipped with RH 7.3 and
compiled mpg123 v. 0.59r. I don't see mpg123/mpg321 in
process list.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have exactly the same problem !

     
  • Marius S.

    Marius S. - 2002-09-07

    Logged In: YES
    user_id=1184

    mpg123 0.59r is somewhat broken when it comes to song
    position. You may see the Apollo position scroller act weird
    with that mpg123 version. Possibly not moving at all. This is a
    known issue and documented here:

    http://sourceforge.net/docman/display_doc.php?
    docid=1938&group_id=14011

    mpg321 is supposed to be compatible with mpg123.
    However, last time I tried (a long time ago), it didn't work to
    use mpg321 with Apollo.

    If you can't see mpg123 in the process list, it means Apollo
    failed to start it for some reason. Where do you have
    mpg123? And I guess it plays fine when you use by itself?
    Did you configure Apollo to use the same path? Try to do
    that, close Apollo and start it again. Also try clicking
    on "Respawn player" in one of the menus.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi! The player looks cool, but sadly I have this problem,
    too! The path to mpg123 is correctly entered in the config,
    but no process comes up if I press Play. Any new ideas for this?

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    I'll have a look at this in the weekend, in the meantime you
    can help fix this if you want:
    1) in qmmpg123.h set m_NeedNewline to true
    2) in qmmpg123.cpp:
    - comment out: m_Needline = true
    - comment back in the line below: // cout << "Version:
    " << read_buffer << endl;
    3) recompile

    If it doesn't work, try with m_NeedNewline to false.
    If either works, send us whats printed out after "Version: "
    along with the correct value of m_NeedNewline.

     
  • Nobody/Anonymous

    Logged In: NO

    kyllingstad, I've tried setting m_NeedNewline to true and
    false, but it still doesn't play and it doesn't print a
    "Version:" string.

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    So much for posting before morning coffee. If it doesn't
    show up in the process list something went wrong in
    mMpg123Player::init, defined in qmmpg123player.cpp.

    Try printing out the complete args[] before the execvp call
    (you'll need to move the dup2/close block of code to between
    your print out and the execvp call so that it's printed to
    the shell), something like this:

    for (int i=0; args[i] != 0; ++i) {
    printf("arg %d: %s\n", i, args[i]);
    }

    Does the output look reasonable?

    -- Ren

     
  • Nobody/Anonymous

    Logged In: NO

    Hmmm... I see nothing. Finally, I did

    int
    QmMpg123Player::init()
    {
    printf("QmMpg123Player::init() invoked\n");
    ...

    and I did not see that string in output!

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    ai ai ai. Try adding -D_WS_X11_ to the CXXFLAGS and CFLAGS
    lines in the Makefile (or even better add _WS_X11_ in the
    unix:DEFINES section of apollo.pro, re-run configure.sh, and
    check that it ended up in the Makefile), or just add #define
    _WS_X11_ in QmMainWindow::startPlayer. Thanks for helping out.

    -- Ren

     
  • Marius S.

    Marius S. - 2002-11-02

    Logged In: YES
    user_id=1184

    So, did this fix the problem? Please let us know.

     
  • Michael Grenier

    Michael Grenier - 2002-11-02

    Logged In: YES
    user_id=159421

    I took a quick look.

    It appears that _WS_X11_ is not defined in qmmainwindow.cpp
    and thus the
    lines:

    #ifdef _WS_X11_
    #ifdef ENABLE_MPG123
    QmMpg123Player *p2 = new QmMpg123Player;
    fprintf(stderr,"QmMpg123Player created\n");
    rc = p2->init();

    are not compiled in and no mpg123 process is created.

    When I explicitly defined _WS_X11_ in the makefile, I get:
    ---
    g++ -c -pipe -Wno-ctor-dtor-privacy -O2 -DENABLE_MPG123
    -DOS_UNIX -DAPOLLO_USE_STL -DUSING_QT3 -DENABLE_ID3
    -DNO_DEBUG -D_WS_X11_ -I/usr/lib/qt3-gcc2.96/include -o
    obj/main.o main.cpp
    In file included from
    /usr/lib/qt3-gcc2.96/include/qtoolbar.h:42,
    from
    /usr/lib/qt3-gcc2.96/include/qmainwindow.h:43,
    from qmmainwindow.h:32,
    from main.cpp:49:
    /usr/lib/qt3-gcc2.96/include/qdockwindow.h:83: parse error
    before `2'
    /usr/lib/qt3-gcc2.96/include/qdockwindow.h:83: missing ';'
    before right brace
    ---
    and lots of other errors.

    This is on a stock Redhat 7.3 system.

    I'm too ignorant of Qt and C++ to really dig in.

    -Mike
    mwgrenier@yahoo.com

     
  • Greg B. Zemskov

    Greg B. Zemskov - 2002-11-04

    Logged In: YES
    user_id=641884

    mariuss: yes, #define _WS_X11_ in
    QmMainWindow::startPlayer has fixed the problem.
    kyllingstad: v. 1.4.3 works properly. BTW, in
    http://www.apolloplayer.org/images/apollo1.4-1.png there
    is a context menu, but I don't have any context menu by
    pressing right button on a song in a playlist. Should I
    spawn a bug report for it?

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    Hmm, not having a playlist context menu is just bizarre. Do
    you have a context menu in the directory browser? Do
    right-clicking in xev say that button 3 has been pushed?

    -- Ren

     
  • Greg B. Zemskov

    Greg B. Zemskov - 2002-11-05

    Logged In: YES
    user_id=641884

    No, I don't have menu in the directory browser.
    I have it while pressing right button on an empty space or
    on a tree lines, but I have no menu while pressing button
    on the song, folder or playlist.
    I have Apollo compiled without KDE
    support, tried both with and without STL support.
    What is xev?

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    I don't get it, and am not sure how to debug this without
    stepping through the running program to see what happens. Sorry.

    xev is a program that dumps X11 Events, so it opens a window
    and all info on any keypress/mouse movement directed at that
    window will be printed out to the shell. But if you have a
    right-click menu in other contexts, mouse configuration
    should not be the problem.

    -- Ren

     
  • Marius S.

    Marius S. - 2002-11-05

    Logged In: YES
    user_id=1184

    Qt did change a little from 2 to 3 on how it deals with
    context sensitive popup menus. In Qt 3 there is a separate
    method for this. I changed this in Apollo to match the new
    functions.

    This is just an idea. I'll have to look into it.

     
  • Rene Kyllingstad

    Logged In: YES
    user_id=198526

    As far as I can see we still use qpopupmenu::popup, which
    should work for both (2nd argument has changed semantics
    slightly, but that shouldn't matter). It works for me with
    Qt2.3.x.

    -- Ren

     
  • Nobody/Anonymous

    Logged In: NO

    I have the same problem. mpg123 will play the files fine
    when run seperately. Inside apollo, however, it seems it
    isn't finding mpg123 (the edited path is correct)

     
  • Nobody/Anonymous

    Logged In: NO

    i've emerged it via gentoo but have the same problem, mpg123
    runs fine...

     
  • Thomas Marotzki

    Thomas Marotzki - 2003-05-13

    Logged In: YES
    user_id=777354

    I had the same problem: Apollo 1.4.2-1 compiled w/o any
    problem, but didn't play anything.
    I found, out the problem was in qmmainwindow.cpp round about
    line 1341. I just commented
    out the two #ifdef's (ENABLE_MPG123 and _WS_X11_). Maybe the
    problem has something to do
    with QT3 where _WS_X11_ should be Q_WS_X11_...

     
  • holly@spectre

    holly@spectre - 2004-05-12

    Logged In: YES
    user_id=1040050

    Hi, tried the 1.4.3-1 version and i am happy to inform that
    it runs perfectly under

    Slackware 9.1, kernel 2.6.6 with ALSA, with QT3.3.1 .

    I searched for such a player for months and now it is here.
    Simple, playlist, sound. Excelent.

    If you need any help with for example translation i will
    help you.
    I can translate to Czech.

     
  • holly@spectre

    holly@spectre - 2004-05-12

    Logged In: YES
    user_id=1040050

    Oh, i should say that there should be a link in download for
    the 1.4.3.-1 version as the newest one can get if searching
    via google is the non functional (on my configuration) 1.4.2
    version...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.