Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:25:07+00:00 2026-06-18T02:25:07+00:00

i want to know the method by which I can get sounds from the

  • 0

i want to know the method by which I can get sounds from the system. actually i am making an alarm type application. i want to get the system sounds for sound selection. previously i was adding sounds myself and it worked fine. now i want access to the system sounds. how can i do that?

i was doing this before.

local function listButtonRelease2( event )

self2 = event.target
local id = self2.id

if  self2.id==1 then
    alarm = audio.loadSound("sound4.mp3")
    x=display.newText( "Beep", 20,190, native.systemFontBold, 14 )
    x:setTextColor(0,0,0)
    x.alpha = 0
elseif self2.id==2 then
    alarm = audio.loadSound("sound2.mp3")
    x=display.newText( "Buzzer1", 20,190, native.systemFontBold, 14 )
    x:setTextColor(0,0,0)
    x.alpha = 0 
elseif self2.id==3 then
    alarm = audio.loadSound("sound5.mp3")
    x=display.newText( "Buzzer2", 20,190, native.systemFontBold, 14 )
    x:setTextColor(0,0,0)
    x.alpha = 0
elseif self2.id==4 then
    alarm = audio.loadSound("sound3.mp3")
    x=display.newText( "Clock ticking", 20,190, native.systemFontBold, 14 )
    x:setTextColor(0,0,0)
    x.alpha = 0
else 
    x=display.newText( "Emergency", 20,190, native.systemFontBold, 14 )
    x:setTextColor(0,0,0)
    x.alpha = 0
    alarm = audio.loadSound("sound1.mp3")
    x=display.newText( "Sound 5 selected", 20,190, native.systemFontBold, 14 )
    x:setTextColor(0,0,0)
    x.alpha = 0

end

end

myList2=tableView.newList{
    data=sound,
    default="listItemBg.png",
    over="listItemBg_over.png",
    onRelease=listButtonRelease2,
    top=topBoundary,
    bottom=bottomBoundary,
    callback = function( row )
        local s = display.newGroup()

        local title =  display.newText( row.title, 20, 0, native.systemFontBold, 20 )
        title:setTextColor(0, 0, 0)
        s:insert(title)
        title.y = 30

        local subtitle =  display.newText( row.subtitle, 20, 0, native.systemFont, 14 )
        subtitle:setTextColor(0,0,0)
        s:insert(subtitle)
        subtitle.y = title.y + title.height + 10

    return s   
    end 


sound[1]={}
    sound[1].title="Beep"
    sound[1].subtitle = " "

    sound[2]={}
    sound[2].title="Buzzer1"
    sound[2].subtitle = " "

    sound[3]={}
    sound[3].title="Buzzer2"
    sound[3].subtitle = " "

    sound[4]={}
    sound[4].title="Clock ticking"
    sound[4].subtitle = " "

    sound[5]={}
    sound[5].title="Emergency"
    sound[5].subtitle = " "

kindly, guide me.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:25:08+00:00Added an answer on June 18, 2026 at 2:25 am

    Corona does not support that, specially because it is multiplatform so the system sound changes with the system, and there are no clear way to figure that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any built in method to get which can parse int from string
I want to know is there any method by which i can remove the
I want to create gallery application which would get thumbnails and metadata from web
i want to know which parsing method is best to use among Simple XML
I don't know too much about encryption, I just want to ask, which method
I want to know what actually happens when you annotate a method with @Transactional
I have an object of type IMethod which represents a method .I want to
How can I get the controller action (method) and controller type that will be
I don't know why, but I can't call the method paint(Graphics g) from code.
I Want to know which one is preferred while coding to use Static Methods

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.