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 8365287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:37:28+00:00 2026-06-09T12:37:28+00:00

So I am building a small application that has a keyboard and a few

  • 0

So I am building a small application that has a keyboard and a few other buttons that trigger audio samples.

For this application, there are several pre recorded audio tracks (drums, vocals, guitar) which can be muted/unmuted… I have that part working fine with AVAudioPlayer

But, as most of you know, AVAudioPlayer is a little slow and has some latency if its assigned to say triggering a small audio sample of a drum hit or a synth. So i implemented SystemSoundServices to play the short sound samples. It is working fine as far as the latency between hitting the button and the sound playing, but I have a slight problem. When the sample is say, hit twice repeatedly, you hear a small popping sound, which is expected because its cutting off the first sample from playing when the button is hit the second time.

I would like to solve this by basically detecting if a sample is playing, if it is, then set the volume to 0, stop playing, and then play the sample again. BUT systemsoundservices unfortunately doesnt have this functionality built in. AVAudioPlayer does but it is too slow. I know there is CoreAudio, AudioQueue, Open AL, but these all seem WAYYY to complex for what i need to be doing. I dont need to do audio processing of any kind.

Does anyone have any suggestions of an audio framework that doesnt require writing 100 lines of code just to play a short audio clip? EVerything seems to be pointing me to spend weeks learning CoreAudio/AudioQueue/OpenAL and that just seems like a waste of my time for what I am working on.

  • 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-09T12:37:29+00:00Added an answer on June 9, 2026 at 12:37 pm

    you can use an AUSampler for the sampler. granted, it is more complex than SystemSounds. the AUSampler is a system-supplied AudioUnit. so you’ll have a little programmatic AU configuration to do, but the hard stuff is out of reach.

    you can use AudioFile and ExtAudioFile for reading and creating audio files. in the case of the AUSampler, it knows how to load samples (in a subset of available formats), so you won’t even need to write the file i/o parts.

    for more complex audio, you will likely need to come to grips with working with audio streams yourself.

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

Sidebar

Related Questions

I have this small application that I'm building as an exercise to learn the
I am building a small application in RoR that has a form asking for
Background: I'm building a small application that will be run daily, pulling data from
I have a small application that I am building a Chat application into, so
I'm building a small application that will crawl sites where the content is growing
I am building an application that has to display data received from an external
I am building a small Windows Phone application which has a databound ListBox as
I'm creating an application that has to handle the construction cases of a small
I'm building a small application that pulls statistics from an API I have no
Currently I am building a small application that allows a user to sign in

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.