# Audio Play in Simple Way

**URL:** <https://forum.developer.roku.com/t/audio-play-in-simple-way/3341>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [July 24, 2014, 6:54pm UTC](https://forum.developer.roku.com/t/audio-play-in-simple-way/3341 "2014-07-24T18:54:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakgpt](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@deepakgpt](https://forum.developer.roku.com/u/deepakgpt)\
**Post date:** [July 24, 2014, 6:54pm UTC](https://forum.developer.roku.com/t/audio-play-in-simple-way/3341/1 "2014-07-24T18:54:47Z")

</div>

Hi

I am not able to play simple audio app in roku . Can anybody help me for this issues. And also please attach link for that app  
I found a app of audio app online and Url for this app is [http://kaz.dl.sourceforge.net/project/rokusdkexamples/simplevideoplayer.zip](http://kaz.dl.sourceforge.net/project/rokusdkexamples/simplevideoplayer.zip) but I cant understand their code .So plz help me to out this problem

Thanks

---

<div class="post-metadata">

**Author:** ![RokuJoel](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@RokuJoel](https://forum.developer.roku.com/u/RokuJoel)\
**Post date:** [July 28, 2014, 11:37pm UTC](https://forum.developer.roku.com/t/audio-play-in-simple-way/3341/2 "2014-07-28T23:37:25Z")

</div>

perhaps some code would help:

```auto
sub main()
    audio={url:"http://archive.org/download/RagRadio2013-07-05--GuySchwartz/RagRadio2013-07-05-GuySchwartz.mp3",streamformat:"mp3"}
    port=createobject("roMessagePort")
    audioplayer=createobject("roAudioPlayer")
    audioplayer.setmessageport(port)
    audioplayer.addcontent(audio)
    audioplayer.play()
    while true
        msg=wait(10,port)
        if type(msg)="roAudioPlayerEvent" then
             if msg.isStatusMessage() then 
                  print "Status:";msg.getmessage();" index:";msg.getindex()
             else if msg.isfullresult() then 
                return
             end if
        end if
    end while
end sub

```
