<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Kotlin on Joakim Verona</title>
    <link>https://www.verona.se/tags/kotlin/</link>
    <description>Recent content in Kotlin on Joakim Verona</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>joakim@verona.se (Joakim Verona)</managingEditor>
    <webMaster>joakim@verona.se (Joakim Verona)</webMaster>
    <copyright>(c) 2016 Copyright Joakim Verona</copyright>
    <lastBuildDate>Fri, 12 Jun 2026 00:00:00 +0200</lastBuildDate><atom:link href="https://www.verona.se/tags/kotlin/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Reviving a 15-year-old binaural beat app on modern Android</title>
      <link>https://www.verona.se/post/reviving-binaural-beat-app/</link>
      <pubDate>Fri, 12 Jun 2026 00:00:00 +0200</pubDate>
      <author>joakim@verona.se (Joakim Verona)</author>
      <guid>https://www.verona.se/post/reviving-binaural-beat-app/</guid>
      <description>
        
          
            &lt;p&gt;About 15 years ago I built an Android binaural beat generator by
porting &lt;strong&gt;SBaGen&lt;/strong&gt; (Jim Peters&#39; legendary C program, GPLv2) to native
Android via OpenSL ES on an ancient NDK. This summer I thought about
how hard could it be to revive it on a modern stack — Kotlin, Jetpack
Compose, GitLab CI — expecting the whole thing to be much easier now.
It mostly was. But the interesting part was where it &lt;strong&gt;wasn&#39;t&lt;/strong&gt;: the
platform got more capable and more locked down at the same time.&lt;/p&gt;
&lt;p&gt;But first some background if you don&#39;t know what binaural beats are.
The brain has different states you can measure as different frequencies
(EEG bands), associated with modes like sleep or wakefulness. That part
isn&#39;t controversial. The idea of binaural beats is that you can &lt;strong&gt;induce&lt;/strong&gt;
one of those states by playing two slightly different frequencies, one in
each ear — the difference between them being the target brain-state
frequency. Whether that entrainment actually works is the more dubious,
mumbo-jumbo-adjacent claim.&lt;/p&gt;
&lt;p&gt;For me some of the frequencies appear to work which is good enough for me,
and I also like drone music like Eliane Radigue, and the sounds of this app
are to me similar.&lt;/p&gt;
&lt;p&gt;Anyway, on to the technical discussion.&lt;/p&gt;
          
          
        
      </description>
    </item>
    
  </channel>
</rss>