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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:45:47+00:00 2026-06-18T07:45:47+00:00

I just use ZBar SDK to scan barcode. I want that when the barcode

  • 0

I just use ZBar SDK to scan barcode. I want that when the barcode scanned, it can play a beep sound. though the scanning is pretty good. no sound over there. I didn’t find any flag in SDK to take control of sound. does anyone meet with this problem?
I’m new to ZBar. Thank you in advance.
as I know ZXing has beep sound as default.but it can only decode QRCode.

  • 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-18T07:45:48+00:00Added an answer on June 18, 2026 at 7:45 am

    The ZBar iPhone SDK doesn’t automatically play a sound on successful scan. It’s not hard to play one yourself, though:

    • Add a sound file you want played to your app, I called mine
      ‘beep.mp3’.
    • Add the AudioToolbox framework to your project.

    In header file:

    #import <AudioToolbox/AudioServices.h>
    

    Setup (possibly in viewDidLoad):

    SystemSoundID soundID;
    CFBundleRef mainBundle = CFBundleGetMainBundle();
    CFURLRef ref = CFBundleCopyResourceURL(mainBundle, (CFStringRef)@"beep.mp3", NULL, NULL);
    AudioServicesCreateSystemSoundID(ref, &soundID);
    self.soundID = soundID;
    

    Play sound:

    AudioServicesPlaySystemSound(self.soundID);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that in the future, we can just use the non-beta iPhone SDK
I'vw just use SqlFunctions.IsNumeric. Here you can see that it returns int?. Why does
I want a button that does not just use a mailto: link. I want
I cannot use a UIDatePicker. I just want to throw that out at the
Given the above dynamically generated text (meaning that I can't just use an image),
Does PhoneGap just use UIWebVIew or is it doing something more then that? Can
I just realized that you can't just use an if statement on a function,
Can I just use Session[role] = theRole, or that would be a bad practice,
I know I can just use margins and padding to accomplish what I want.
I know in php I could just use $_GET['key1']['key2'] to retrieve GET data that

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.