Skip to content

Instantly share code, notes, and snippets.

View GOVINDDIXIT's full-sized avatar
👋

Govind Dixit GOVINDDIXIT

👋
View GitHub Profile
@GOVINDDIXIT
GOVINDDIXIT / SyncCredSoundPool.kt
Last active May 18, 2023 04:04
Sync implementation of CredSoundPool
open class SyncCredSoundPool constructor(
protected val context: Context,
audioAttributes: AudioAttributes?,
maxStreams: Int
) : CredSoundPool {
/**
* Soundpool instance created using SoundPool Builder
* In case the passed audioAttributes is null we will create default AudioAttributes
* with usage as AudioAttributes.USAGE_GAME and contentType as AudioAttributes.CONTENT_TYPE_SONIFICATION
@GOVINDDIXIT
GOVINDDIXIT / AsyncCredSoundPool.kt
Last active May 18, 2023 04:57
Async implementation of CredSoundPool
internal class AsyncCredSoundPool(
context: Context,
audioAttributes: AudioAttributes?,
maxStreams: Int
) : SyncCredSoundPool(context, audioAttributes, maxStreams) {
@PublishedApi
internal val bgThread = Handler(
HandlerThread("backgroundThread", Process.THREAD_PRIORITY_BACKGROUND)
.apply { start() }
interface CredSoundPool {
val instance: SoundPool
fun load(
resId: Int,
priority: Int,
logError: String = "Could not load sound"
): Int?
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@GOVINDDIXIT
GOVINDDIXIT / GSoC_20_work_report.md
Last active August 31, 2020 10:17
Work Product Submission for GSoC'20
@GOVINDDIXIT
GOVINDDIXIT / GSoC_19_work_report.md
Last active July 28, 2020 13:30
Work Product Submission for GSoC'19
@GOVINDDIXIT
GOVINDDIXIT / Codeheat 2018-19 Work Report.md
Last active April 14, 2021 08:48
Work Report for Codeheat 2018-19

CODEHEAT

CODEHEAT 2018 Work report

Govind Dixit | GOVIND DIXIT | FOSSASIA

Code Contributions

  • 45+ PRs merged and interected with 8400+ lines of code in various android projects of FOSSASIA.
  • 2nd Top Most Contributor in open-event-android and open-event-orga android projects in the Codeheat Contest with 35+ commits in them.
  • My contributions are as follows -