<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi guys</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>I did exactly the same steps that Mariano did. My system is a Ubuntu based distro, 64 bits.</span><span style="background-color: transparent;"> </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">I ssh the emulator with nemo user, thats the trick. It seems that in some systems the master
 channel is muted by default, wich causes this problem.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">All the best  </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Joćo</span></div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial">
 <b><span style="font-weight:bold;">De:</span></b> "christopher.lamb@thurweb.ch" <christopher.lamb@thurweb.ch><br> <b><span style="font-weight: bold;">Para:</span></b> Mariano Boragno <marianoboragno@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> joao morgado <joaodeusmorgado@yahoo.com>; "devel@lists.sailfishos.org" <devel@lists.sailfishos.org> <br> <b><span style="font-weight: bold;">Enviadas:</span></b> Domingo, 16 de Junho de 2013 18:24<br> <b><span style="font-weight: bold;">Assunto:</span></b> Re: [SailfishDevel] Playing a wav in Sailfish<br> </font> </div> <div class="y_msg_container"><br>Ciao Mariano<br><br>The key bit is the user nemo.<br><br>I was trying to start alsamixer as user root, and got "connection refused".<br><br>After connecting via ssh as user nemo alsamixer works!<br><br>1000 grazie<br><br>Chris<br><br><br>Zitat von "Mariano Boragno" <<a ymailto="mailto:marianoboragno@gmail.com"
 href="mailto:marianoboragno@gmail.com">marianoboragno@gmail.com</a>>:<br><br>> Hi Chris,<br>><br>> I don't know if Joćo's system has the same specs as mine (Windows 7 64-bit,<br>> VBox v4.2.12). What I did (same as Joćo) are the following steps:<br>><br>>    1. Connect to the Emulator (SSH or Alt+Ctrl+F2 in the emulator window,<br>>    nemo/nemo to log in).<br>>    2. Run alsamixer in the command line.<br>>    3. Press F6 and select "0 HDA Intel" from the list (that is the sound<br>>    card in my case, don't know if it's always the same).<br>>    4. You will find that the master channel is muted. Press M key to unmute<br>>    it and adjust it with the up/down arrow keys.<br>>    5. Do the same for all muted output channels, if there are some.<br>>    6. Press ESC to quit alsamixer.<br>>    7. You are
 done, sounds was working fine, it was just muted :)<br>><br>> That did the trick for me and seems it did for Joćo too.<br>><br>> Joćo, glad you worked it out! :)<br>><br>><br>> Sail on!<br>><br>><br>><br>> ...Mariano Boragno...<br>><br>><br>> On Sun, Jun 16, 2013 at 1:47 PM, <<a ymailto="mailto:christopher.lamb@thurweb.ch" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>> wrote:<br>><br>>> Hi Joćo<br>>><br>>> It's really cool that you have got this working!<br>>><br>>> What exactly did you do in alsamixer?<br>>><br>>> If you let us know, then maybe one of the Jolla Sailors will add this to<br>>> the known issues page.<br>>><br>>><br>>> Chris<br>>><br>>> Zitat von "joao morgado" <<a ymailto="mailto:joaodeusmorgado@yahoo.com"
 href="mailto:joaodeusmorgado@yahoo.com">joaodeusmorgado@yahoo.com</a>>:<br>>><br>>>  Thank all for your precious help, the sound is working now.<br>>>><br>>>> Using SSH_AUTH_SOCK=  did the trick, I was able to log in.<br>>>> Then in the sdk, alsamixer was unknow, I installed alsa-utils with "sudo<br>>>> zypper in alsa-utils" and still no alsamixer.<br>>>> It was when I ssh the emulator that I could use alsamixer, the problem<br>>>> was in fact the mute and low sound, I had to playaround a bit to select the<br>>>> correct sound card.<br>>>><br>>>> Solved :)<br>>>><br>>>> Thanks again<br>>>> Joćo<br>>>><br>>>><br>>>><br>>>><br>>>> ______________________________**__<br>>>>  De: Mariano Boragno <<a ymailto="mailto:marianoboragno@gmail.com"
 href="mailto:marianoboragno@gmail.com">marianoboragno@gmail.com</a>><br>>>> Para: joao morgado <<a ymailto="mailto:joaodeusmorgado@yahoo.com" href="mailto:joaodeusmorgado@yahoo.com">joaodeusmorgado@yahoo.com</a>>; "<br>>>> <a ymailto="mailto:christopher.lamb@thurweb.ch" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>" <<a ymailto="mailto:christopher.lamb@thurweb.ch" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>><br>>>> Cc: "<a ymailto="mailto:devel@lists.sailfishos.org" href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a>" <<a ymailto="mailto:devel@lists.sailfishos.org" href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a>><br>>>> Enviadas: Domingo, 16 de Junho de 2013 12:59<br>>>> Assunto: Re: [SailfishDevel] Playing a wav in Sailfish<br>>>><br>>>><br>>>><br>>>>
 I just wanted to add that I had no sound either at Windows. After<br>>>> connecting to the emulator through ssh I just used alsamix to adjust the<br>>>> volume (had to select the sound card in there), it was mutes. That brought<br>>>> the sound on!<br>>>><br>>>> Hope this helps!<br>>>><br>>>> Regards...<br>>>><br>>>> --<br>>>><br>>>> ...Mariano Boragno...<br>>>><br>>>><br>>>> On 16/06/13 04:29 <a ymailto="mailto:christopher.lamb@thurweb.ch" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a> wrote:<br>>>><br>>>> Hi Joao<br>>>><br>>>> we need to get your SSH connections working! Just like every driver<br>>>> should at least be able open the bonnet of a car, so being able to ssh to<br>>>> the SDK and Emulator is very handy. (and the little boy in me just
 loves to<br>>>> open things up ...)<br>>>><br>>>> Trekking back to the Alpha known issues page:<br>>>><br>>>> <a href="https://sailfishos.org/wiki/**SDK_Alpha_Known_Issues" target="_blank">https://sailfishos.org/wiki/**SDK_Alpha_Known_Issues</a><<a href="https://sailfishos.org/wiki/SDK_Alpha_Known_Issues" target="_blank">https://sailfishos.org/wiki/SDK_Alpha_Known_Issues</a>><br>>>><br>>>> we find quite a few hints on SSH problems, including:<br>>>><br>>>> If you get "Agent admitted failure to sign using the key" when using ssh,<br>>>> try setting SSH_AUTH_SOCK=<br>>>><br>>>> When I was playing around with a Sailfish on Lubuntu host that fixed it<br>>>> for me.<br>>>><br>>>> Try that on the command line of your development host.<br>>>><br>>>> Another possible solution is suggested here (for
 GitHub, not Sailfish)<br>>>> <a href="https://help.github.com/**articles/error-agent-admitted-**failure-to-sign" target="_blank">https://help.github.com/**articles/error-agent-admitted-**failure-to-sign</a><<a href="https://help.github.com/articles/error-agent-admitted-failure-to-sign" target="_blank">https://help.github.com/articles/error-agent-admitted-failure-to-sign</a>><br>>>><br>>>><br>>>> Chris<br>>>><br>>>><br>>>> Zitat von "joao morgado" <<a ymailto="mailto:joaodeusmorgado@yahoo.com" href="mailto:joaodeusmorgado@yahoo.com">joaodeusmorgado@yahoo.com</a>>:<br>>>><br>>>><br>>>><br>>>><br>>>>> Hi Chris<br>>>>><br>>>>> Thanks for your help. I activated the audio in virtualbox with the<br>>>>> options PulseAudio and ICH AC97 (I tested other options also), tested your<br>>>>> program
 and still no sound. From what I've googled, it seems to be a<br>>>>> virtualbox problem, some people fix it by changing PulseAudio and ICH AC97<br>>>>> options, but to me still didnt work.<br>>>>><br>>>>><br>>>>> I tried to ssh  the sdk with "ssh -i ~/.ssh/mer-qt-creator-rsa<br>>>>> <a ymailto="mailto:mersdk@localhost" href="mailto:mersdk@localhost">mersdk@localhost</a> -p 2222" but I got an error:<br>>>>> "Agent admitted failure to sign using the key.<br>>>>> Permission denied (publickey)."<br>>>>><br>>>>> I got the same error trying to ssh the emulator, don't know why I,<br>>>>> because from the QtCreator Tools -> Options -> devices , I can sucessfully<br>>>>> test the connections with the emulator.<br>>>>><br>>>>> At least I know that it's not  a problem with my
 code.<br>>>>><br>>>>> Regards<br>>>>> Joćo<br>>>>><br>>>>><br>>>>><br>>>>><br>>>>> ______________________________**__<br>>>>>  De: "<a ymailto="mailto:christopher.lamb@thurweb.ch" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>" <<a ymailto="mailto:christopher.lamb@thurweb.ch" href="mailto:christopher.lamb@thurweb.ch">christopher.lamb@thurweb.ch</a>><br>>>>> Para: joao morgado <<a ymailto="mailto:joaodeusmorgado@yahoo.com" href="mailto:joaodeusmorgado@yahoo.com">joaodeusmorgado@yahoo.com</a>><br>>>>> Cc: "<a ymailto="mailto:devel@lists.sailfishos.org" href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a>" <<a ymailto="mailto:devel@lists.sailfishos.org" href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a>><br>>>>> Enviadas:
 Sexta-feira, 14 de Junho de 2013 7:49<br>>>>> Assunto: Re: [SailfishDevel] Playing a wav in Sailfish<br>>>>><br>>>>><br>>>>> Hi Joćo<br>>>>><br>>>>> I have just made a little demo project, importing QtMultimediaKit 1.1,<br>>>>> and a SoundEffect Component.<br>>>>><br>>>>> I added a Button component to the Column to play the sound when clicked.<br>>>>><br>>>>> My Demo works, I get a swish sound when the button is clicked.<br>>>>><br>>>>> You will find the code of my FirstPage at the bottom of this mail.<br>>>>> Create a new demo project, and paste my code into the FirstPage.<br>>>>><br>>>>> Note I copied my wav to the pages folder (alongside FirstPage). Please<br>>>>> substitute your own wav file - I grabbed the first one I could find
 on<br>>>>> the train. Put you wav in the Pages folder.<br>>>>><br>>>>><br>>>>> Do you get any sound at all from the Emulator? For instance on a demo<br>>>>> new project with the PullDownMenu you should get a distinct "click"<br>>>>> sound when the menu opens.<br>>>>><br>>>>> On the known issues page<br>>>>> <a href="https://sailfishos.org/wiki/**SDK_Alpha_Known_Issues#**Emulator" target="_blank">https://sailfishos.org/wiki/**SDK_Alpha_Known_Issues#**Emulator</a><<a href="https://sailfishos.org/wiki/SDK_Alpha_Known_Issues#Emulator" target="_blank">https://sailfishos.org/wiki/SDK_Alpha_Known_Issues#Emulator</a>>I  <br>>>>> found<br>>>>> this:<br>>>>><br>>>>> "The sound is not enabled in the Emulator. Fix: Shutdown the emulator;<br>>>>> Open virtualbox manager; Pick "SailfishOS
 Emulator", Pick Settings,<br>>>>> pick Audio, Enable audio (default driver). Accept. Start Emulator. The<br>>>>> Pulley menus make a sound for testing purposes."<br>>>>><br>>>>> Assuming that you do get sound, do you have QtMultimedia installed?<br>>>>><br>>>>> Connect to the SDK by SSH and search for QtMultimedia with zipper:<br>>>>><br>>>>> zypper se multi<br>>>>><br>>>>> I get this:<br>>>>><br>>>>> S | Name                                             | Zusammenfassung<br>>>>>                                 | Typ<br>>>>>
 --+---------------------------**-----------------------+------**<br>>>>> ------------------------------**------------+------<br>>>>>    | libdeclarative-multimedia                        | Qt Mobility<br>>>>> Multimedia QML plugin              | Paket<br>>>>>    | libqtmultimediakit1                              | Qt Mobility<br>>>>> MultimediaKit module               | Paket<br>>>>> i | multi_c_rehash                                   | A c_rehash<br>>>>> implementation in C                 | Paket<br>>>>> 
   | multi_c_rehash-debuginfo                         | Debug<br>>>>> information for package multi_c_rehash   | Paket<br>>>>>    | multi_c_rehash-debugsource                       | Debug sources<br>>>>> for package multi_c_rehash       | Paket<br>>>>><br>>>>><br>>>>> Repeat with the the Emulator:<br>>>>><br>>>>> If  you don't get anything like this then you will have to install<br>>>>> QtMultimedia.<br>>>>><br>>>>> Chris<br>>>>><br>>>>><br>>>>> //Start FirstPage.qml<br>>>>> import QtQuick 1.1<br>>>>> import Sailfish.Silica 1.0<br>>>>> import QtMultimediaKit 1.1<br>>>>><br>>>>>
 Page {<br>>>>>      id: page<br>>>>><br>>>>>      // To enable PullDownMenu, place our content in a SilicaFlickable<br>>>>>      SilicaFlickable {<br>>>>>          anchors.fill: parent<br>>>>><br>>>>>          // PullDownMenu and PushUpMenu must be declared in<br>>>>> SilicaFlickable, SilicaListView or SilicaGridView<br>>>>>          PullDownMenu {<br>>>>>              MenuItem {<br>>>>>                  text: "Show Page 2"<br>>>>>                  onClicked: pageStack.push(Qt.resolvedUrl(**<br>>>>> "SecondPage.qml"))<br>>>>>     
         }<br>>>>>          }<br>>>>><br>>>>>          // Tell SilicaFlickable the height of its content.<br>>>>>          contentHeight: childrenRect.height<br>>>>><br>>>>>          // Place our content in a Column.  The PageHeader is always<br>>>>> placed at the top<br>>>>>          // of the page, followed by our content.<br>>>>>          Column {<br>>>>>              width: page.width<br>>>>>              spacing: theme.paddingLarge<br>>>>>              PageHeader {<br>>>>>             
     title: "UI Template"<br>>>>>              }<br>>>>>              Label {<br>>>>>                  x: theme.paddingLarge<br>>>>>                  text: "Hello Sailors"<br>>>>>                  color: theme.secondaryHighlightColor<br>>>>>                  font.pixelSize: theme.fontSizeLarge<br>>>>>              }<br>>>>>              Button {<br>>>>>                  text: "Sound"<br>>>>>                  onClicked:
 mySound.play()<br>>>>>              }<br>>>>>          }<br>>>>>          SoundEffect { id: mySound<br>>>>>              //substitue your own wav file here, and copy it to the<br>>>>> pages directory!<br>>>>>              //this is the first one I could find while experimenting<br>>>>> on the train<br>>>>>              source: "92909__Robinhood76__01526_**swoosh_2.wav"<br>>>>><br>>>>>          }<br>>>>>      }<br>>>>> }<br>>>>> //End
 FirstPage.qml<br>>>>><br>>>>><br>>>>><br>>>>><br>>>>><br>>>>><br>>>>> Zitat von "joao morgado" <<a ymailto="mailto:joaodeusmorgado@yahoo.com" href="mailto:joaodeusmorgado@yahoo.com">joaodeusmorgado@yahoo.com</a>>:<br>>>>><br>>>>><br>>>>> Hi<br>>>>><br>>>>>><br>>>>>> I'm porting a app from Meego/Symbian, I need to play a wav file. I<br>>>>>> used importQtMultimediaKit1.1 and SoundEffect element. I<br>>>>>> tought QtMultimediaKit was only available in Meego / Symbian, but my<br>>>>>> app runs fine in the emulator, so I guess I'm good to go. I don't<br>>>>>> hear any sound, I'm assuming it's a emulator limitation, can please<br>>>>>> someone confirm that ?<br>>>>>><br>>>>>>
 Thanks<br>>>>>> Joćo de Deus<br>>>>>><br>>>>>><br>>>> ______________________________**_________________<br>>>> SailfishOS.org Devel mailing list<br>>>><br>>><br>>><br>>> ______________________________**_________________<br>>> SailfishOS.org Devel mailing list<br>>><br>><br><br><br><br><br></div> </div> </div>  </div></body></html>