×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    9

    Problem with deployment path and sound

    Hai
    this is my first project using qt, i'm trying to make a music player simulator on nokia device (guitar player, drum player, etc).
    I'm having a problem in using the sound on the device

    I already included my sound collection file onto the device deployment
    Code:
    QT += core \
        gui
    QT += phonon
    TARGET = musicPlayer
    TEMPLATE = app
    DEPENDPATH += .
    INCLUDEPATH += .
    SOURCES += main.cpp \
        mainmenu.cpp \
        guitar.cpp\
        drum.cpp
     
    HEADERS += mainmenu.h\
        guitar.h \
        drum.h
        
    FORMS += mainmenu.ui \
        guitar.ui \
        drum.ui 
    
    CONFIG += mobility
    MOBILITY = 
    symbian { 
        TARGET.UID3 = 0xe091ff94
        
        # TARGET.CAPABILITY +=
        TARGET.EPOCSTACKSIZE = 0x14000
        TARGET.EPOCHEAPSIZE = 0x020000 \
            0x800000
        backsound.sources = sound\*
        backsound.path = sound
        guitar.sources = sound\guitar\*
        guitar.path = sound\guitar
        drum.sources = sound\drum\*
        drum.path = sound\drum
        
        DEPLOYMENT = backsound \
            guitar \
            drum 
    }
    RESOURCES += ardResource.qrc
    and this is how i use the path on the program
    at main menu
    Code:
    backsound =
                   Phonon::createPlayer(Phonon::MusicCategory,
                                        Phonon::MediaSource("\\sound\backsound.mp3"));
        backsound->play();
        backsound->stop();
    at the drum menu
    Code:
    void drum::sound_initiation()
    {
    drum1 =
                 Phonon::createPlayer(Phonon::MusicCategory,
                                      Phonon::MediaSource("\\sound\\drum\drum1.mp3"));
    
        drum2 =
                 Phonon::createPlayer(Phonon::MusicCategory,
                                      Phonon::MediaSource("\\sound\\drum\drum2.mp3"));
    
       drum3 =
                 Phonon::createPlayer(Phonon::MusicCategory,
                                      Phonon::MediaSource("\\sound\\drum\drum3.mp3"));
    }
    
    
    void drum::bon_1_play()
    { 
        drum1->stop();
        drum1->play();
    }
    
    void drum::bon_2_play()
    {
        drum2->stop();
       drum2->play();
    
    }
    the problem is, the backsound.mp3 is working but the other sound doesn't work. Is there anything wrong with my code?
    im using nokia xpress music to test my code

    thank you very much

  2. #2
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Problem with deployment path and sound

    Hi,
    first of all, we must check if all the files are in the SIS file. For that, use:
    http://www.whatisinmysis.com/

    And check if you can see all the media files.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. sound file path
    By symbians60 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-09-10, 13:30
  2. Deployment problem
    By reeco1 in forum Mobile Java General
    Replies: 2
    Last Post: 2006-02-13, 19:39
  3. Deployment problem
    By cheenu78@fastmail.fm in forum Symbian
    Replies: 2
    Last Post: 2006-01-23, 15:18
  4. Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×