AudioManager Medium generateAudioSessionId Methods to introduce :

1、 Method statement

  pubilc void generateAudioSessionId();

2、API describe

   Return a not associated with any player and effect The associated audio  session identifier. One audio session identifier It's a group in the system audio stream Unique logo .audio session ID The basic function of is to audio effects Related to audio player, for example MediaPlayer or AudioTrack. All share the same audio session ID Of audio effects Apply to share the same audio session ID Of player Mixed audio content .

   for example , This method can be used to create AudioEffect Object to define effect Of audio session ID When using , Or for EextToSpeech.Engine Medium speech synthesis utterance To specify a audio session ID.

3、 Return value

  audio session ID or ERROR.

AudioManager --- generateAudioSessionId More articles about

  1. Android -- Multimedia play MediaPlayer Using internal implementation to analyze

    Android -- MediaPlayer Analysis of internal implementation In a previous blog post , The use of MediaPlayer What to pay attention to when . Now , This is through a MediaPlayer Code instance , To further analyze Media ...

  2. [3D Parkour ] AudioManager

    Unity Audio Management The most common component of sound management in games is AudioSource and AudioClip, My approach is to build a AudioManager class ( Singleton class ) Manage the audio , Talk about my experience : Function list St ...

  3. AudioManager Audio manager controls mobile phone audio instance

    import android.media.AudioManager;import android.media.MediaPlayer;import android.os.Bundle;import a ...

  4. AudioManager Audio manager

    AudioManager Audio manager provides the following common methods to control mobile phone audio : 1.adjustStreamVolume(int StreamType,int direction,int flgs): Adjust the hand ...

  5. Android Voice manager for 《AudioManager》 And volume control

    The following is the online download and splicing -- Android Sound management AudioManager Use Cell phones have sound modes , voice . Silence and vibration , Even vibration and sound , These are the basic functions of mobile phones . stay Android In mobile phone , We can also communicate with ...

  6. AudioManager Detailed explanation ( Combine source code )

    AudioManager: Used to adjust the volume , Sound mode ( Mute , shock , Vibration plus sound, etc ) Management of , And use it to register “ Plug in headphones ” The receiver of the broadcast (Action: android.intent.action.MED ...

  7. Android chinese API(129) —— AudioManager

    Preface The content of this chapter is android.media.AudioManager, Version is Android 3.2 r1, The translation comes from " Wen Wei ", Welcome to his blog :"http://www.cn ...

  8. Learn from the beginning android<AudioManager Sound editor . Fifty .>

    We use it android When it's used a lot , Increase and decrease the voice of mobile phone . In setting scene mode , It tends to run with silence and vibration , This is usually AudioManager Controlled . Let's take a look at AudioManager Use . ...

  9. Android Audio manager AudioManager

    Audio manager AudioManager, It can manage android The volume of the system or directly mute the system , Still by calling getSystemService() Method to get the audio manager AudioManager object , Get the pair of ...

Random recommendation

  1. sql Two fields in a table are combined and summed

    sql Two fields in a table , Merge and sum SELECT SUM( Field a+'.'+ Field b) as total  from TABLE

  2. Swift - mutating Use of keywords

    Reprinted from :http://www.jianshu.com/p/14cc9d30770a   Thanks to the author : this ID I thought for a long time. Swift in protocol Functional ratio OC Zhongqiang is much bigger , Not only can we class To realize , It also applies to ...

  3. C/C++ Learning notes ---- Understanding of pointer

    Pointer is C/C++ One of the important concepts in programming , It's also one of the most confusing and error prone problems . Pointer programming can be used to represent various data structures , The pointer can be used to share variables or data structures between the calling function and the called function , Easy to realize two-way data communication : The pointer can ...

  4. mongoose Learning documents

    A term is used to explain Schema : A database model skeleton stored in file form , No database operation capability Model : from Schema Publish the generated model , Database operation pairs with abstract properties and behaviors come from cnode Community 1. Create a ...

  5. PHP Dependency injection ( turn )

    Before we talk about this topic, let's talk about a relatively high-end idea --' The principle of Dependence Inversion ' " Dependency inversion is a software design idea , In traditional software , The upper code depends on the lower code , When the underlying code changes , The upper code should be changed accordingly , So maintenance costs are high ...

  6. install chrome in elementary os

    Elementary OS Freya 0.3.2 was officially out for public. As previous release, it comes pre-installed ...

  7. VS Tomato assistant installation (vs2015+vs2010): Before uninstalling vs Assistant to install a new version

    1 Before uninstalling vs assistant vs2010: vs2015: 2 Install a new version

  8. frame foundation :ajax design scheme ( One )--- Integrate core requests

    The report , I want to talk !xp Eliminated by history ,IE6 say goodbye 了 , too TM Happy , Never be compatible IE6 了 , Ha ha ha ha ha ha The report , I want to talk !IE this sb Why not be killed earlier , It's said to be compatible when looking for a job IE, Immediately softened , Alas ...

  9. Linux Simple operation of file system - df, du, ln

    Now we know that the overall data of the disk is superblock In block , But the capacity of each individual file is inode It's recorded that . How to call out these data under the text interface ? Let's talk about these two orders : df: List ...

  10. Spring MVC Expand

    Use @ResonseBody Implement the output of the data object returned by the asynchronous request . By configuring StringHttpMessageConverter Message converter to solve JSON Chinese garbled code problem in data transmission . In actual project development , ...