Audio Processing for common iPhone man-machine interface tasks (4)

Source: Internet
Author: User

IPhoneMan/MachineInterfaceThe common task processing method is described in this article.ApplicationsExperience, then you will findIPhone applicationsYou can process many common tasks in different ways. This section describes these common tasks from the perspective of man-machine interfaces. For more information about code implementation, see iPhoneApplicationsProgramming Guide.

Continue to the content of the previous section on iPhone man-machine interface common task processing method 3). The following are some scenarios where they explain how to chooseAudioSession category to provide the expectedAudioExperience.

Scenario 1. Assume that you are developing an educationApplicationsTo help people learn a new language. You need to provide feedback when users click a specific control.SoundAnd a recording of words and phrases that the user wants to hear in the correct pronunciation example.

In this application,SoundForApplicationsIs essential. People use thisApplicationsTo listen to the pronunciation of words and phrases in the language they have learned. Therefore, you should play the video even when the "rattle/mute" switch is set to mute or device lock.ApplicationsOfSound. Because users need to clearly hear the pronunciation, they want otherAudioMute.

To produce the expected audio experience, you should use the Playback category. Although you can improve this category to mix it with other audios as described in Table 4-1, this application should use the default behavior, to ensure that other audios do not compete with the learning content explicitly selected by the user.

Scenario 2. Assume that you are developing a game that allows users to control the characters on the screen to complete many different tasks. You need to provide a variety of game sound effects and a piece of game music.

In this application, the voice will greatly improve the user experience, but it is not an essential part of the main task. In addition, users are likely to want to play games in a mute state, or listen to the songs in the library rather than the music of the game.

The best strategy is to know if the user is listening to other audio when your application starts. Do not let the user choose whether to listen to other audio or music of your application. Instead, you must use the "audio Session Service"

 
 
  1. AudioSessionGetProperty 

Function, query

 
 
  1. kAudioSessionProperty_OtherAudioIsPlaying 

Attribute status. Based on the query results, you can select either the Ambient category or the Solo Ambient category to allow users to play games in a mute State ):

If users are listening to other audios, you should assume they want to continue listening, rather than being forced to listen to the music of the game. In this case, you should select the Ambient category.

If the user does not listen to any other audio when your application starts, select the Solo Ambient category.

Scenario 3. Assume that you are developing an application that provides you with precise and real-time navigation instructions to reach the selected destination. You need to provide voice guidance and feedback for each step of the trip. In addition, you think that users want to hear their own audio while using the application.

In this application, the voice navigation indicator represents the main task of the program. For this reason, you should use the Playback category, which enables your audio to be played even when the device is locked or the device is set to mute.

You can add

 
 
  1. kAudioSessionProperty_OverrideCategoryMixWithOthers 

Attribute. However, you also want to ensure that you can hear the application's voice commands on top of the currently playing audio. To do this, you can

 
 
  1. kAudioSessionProperty_OtherMixableAudioShouldDuck 

Apply attributesAudioSession. This ensures that yourAudioCompared with all currently playedAudioBesides the phone numberAudio.

Scenario 4. Assume that you are developing a blogApplicationsAllows users to upload their text and images to the central website. You may have a brief startSoundFile, a variety of shortSoundThe effect is as follows:Sound) And a warning for playing when the upload fails.Sound.

In this application, the sound will improve the user experience, but it is only attached. The main task of the program is irrelevant to the audio. You can use the application successfully without hearing any sound. In this case, you can use the system sound service to generate a sound. This is because all audio and audio in the application are in line with the purpose of this technology, that is, to generate user expectations, follow the user interface sound effects and warning sounds for device locking and "ringing/mute" switching.

Provide options

IPhoneOS contains some elements that help users make choices. When you needApplicationsWhen providing options, you should use these selection methods, because the user is familiar with their behavior. In general, you should not try to copyApplicationsThe appearance and behavior of the selected control, suchApplicationsMenu or a group of radio buttons.IPhoneThe OS provides the following elements that you can use to provide options to users:

List (Table view ). Click a row in the list to select an item. The list is almost suitable for displaying any number of options. For more information about how to use table view in an application, see Table view ".

Selector, including the date and time selector. The user rotates the selector until each runner displays the corresponding part of the value, such as the calendar date that includes year, month, and day. For more information about how to use selector in your iPhone application, see Date and Time selector and selector ".

Switch Control. The user slides the switch control from one side to the other and displays one of the two values. The purpose of Toggle control is to provide a simple option inside the list. For more information about the toggle control, see "toggle control ".

Provide a license agreement or disclaimer

If you are accompaniedIPhone applicationsProvides an end user's license agreement or EULA), the App Store will display this agreement, so that users can use yourApplicationsYou can read it before.

If possible, try to avoid requiring the user to start yourApplicationsThey agree to your end user license agreement. In this way, users can immediately enjoy yourApplications. However, even if this is the preferred user experience, it may not work in all circumstances. If you mustApplicationsShow the license agreement, please try to use a way consistent with your user interface, so that the inconvenience caused to the user can be minimized.

Similarly, if you need to provide a disclaimer, you must balance your business needs with good user experience. If you canApplicationsDescription or your disclaimer is provided in EULA so that it can be used in the App Store.

Summary:IPhoneThis article is helpful to you. For more information, see the following:

Troubleshooting of iPhone man-machine interface Common Tasks 1)

IPhone human-machine interface common task handling method 2)

IPhone human-machine interface common task processing method 3)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.