# Pisound and Circle library

**URL:** <https://community.blokas.io/t/pisound-and-circle-library/4915>\
**Category:** Pisound\
**Created:** [December 26, 2023, 7:07pm UTC](https://community.blokas.io/t/pisound-and-circle-library/4915 "2023-12-26T19:07:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peixe](https://community.blokas.io/user_avatar/community.blokas.io/peixe/32/4532_2.png) [@Peixe](https://community.blokas.io/u/Peixe)\
**Post date:** [December 26, 2023, 7:07pm UTC](https://community.blokas.io/t/pisound-and-circle-library/4915/1 "2023-12-26T19:07:20Z")

</div>

Hi, I wonder if someone have experience using Pisound with the bare metal library Circle [https://github.com/rsta2/circle](https://github.com/rsta2/circle)

My question is if it is possible to read converted digital data from the I2s port (after Pisound finish a cycle from the ADC), process the sound, and then output the result to the output I2s port connecter to the Pisound DAC converter.  
Circle have functionality to control the I2s port for reading and writing but I would like to confirm if that is the only needed requirement (apart of pre configuration of the sample-rate writing in a register) to operate Pisound in a headless OS environment. Thanks

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [December 27, 2023, 8:22am UTC](https://community.blokas.io/t/pisound-and-circle-library/4915/2 "2023-12-27T08:22:55Z")

</div>

Hey, we haven’t tried it ourselves, but it seems there’s people that did!

> <https://github.com/rsta2/circle/pull/167>
>
> Hi!
> 
> With this patch, it becomes possible to use DACs that generate their own …I2S clocks. The example I have been testing is the Blokas Pisound, which has an ADC (recording device) on-board, and seems to be wired such that the ADC provides the master clock.
> 
> Hence, to use this DAC, the Pi's I2S device must be configured to be a slave.
> 
> Apologies if the tab size is incorrect, I've tried to follow your indentation style - it seems to be correct if the tab size is 4. 🙂

Coming from the mt32-pi project:

> <https://github.com/dwhinham/mt32-pi/issues/42>
>
> Let me know where to send a PiSound, after reading some of the other things you'…re working on, I think it would benefit both projects to send you one for development purposes.

---

<div class="post-metadata">

**Author:** ![Peixe](https://community.blokas.io/user_avatar/community.blokas.io/peixe/32/4532_2.png) [@Peixe](https://community.blokas.io/u/Peixe)\
**Post date:** [December 28, 2023, 1:00pm UTC](https://community.blokas.io/t/pisound-and-circle-library/4915/3 "2023-12-28T13:00:19Z")

</div>

Thanks a lot for the guidance 👍
