Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ZgAudioDevice

Index

Constructors

constructor

Properties

TAG

TAG: string = "device --"

Static AUDIO_ROUTE_BLUETOOTH

AUDIO_ROUTE_BLUETOOTH: number = 2

Static AUDIO_ROUTE_BLUETOOTH_A2DP

AUDIO_ROUTE_BLUETOOTH_A2DP: number = 6

Static AUDIO_ROUTE_HEADSET

AUDIO_ROUTE_HEADSET: number = 1

Static AUDIO_ROUTE_INVALID

AUDIO_ROUTE_INVALID: number = -1

Static AUDIO_ROUTE_RECEIVER

AUDIO_ROUTE_RECEIVER: number = 3

Static AUDIO_ROUTE_SPEAKER

AUDIO_ROUTE_SPEAKER: number = 0

Static AUDIO_ROUTE_USB_HEADSET

AUDIO_ROUTE_USB_HEADSET: number = 7

Methods

CheckPermission

  • CheckPermission(): boolean
  • Returns boolean

GetCurrentRoute

  • GetCurrentRoute(): number
  • Returns number

GetPreferredCapSampleRate

  • GetPreferredCapSampleRate(): number
  • Returns number

GetPreferredRndSampleRate

  • GetPreferredRndSampleRate(): number
  • Returns number

Init

  • Init(context: any, pthis: number, is_voip: boolean): number
  • Parameters

    • context: any
    • pthis: number
    • is_voip: boolean

    Returns number

SetAudioSource

  • SetAudioSource(source: number): void
  • Parameters

    • source: number

    Returns void

SetSpeakerphoneOn

  • SetSpeakerphoneOn(bOn: boolean): number
  • Parameters

    • bOn: boolean

    Returns number

SetStreamType

  • SetStreamType(type: number): number
  • Parameters

    • type: number

    Returns number

UnInit

  • UnInit(): void
  • Returns void

Generated using TypeDoc