Re: write method for audio driver?

2023-08-26 Thread Tomek CEDRO
On Sat, Aug 26, 2023, 20:18 Tim Hardisty wrote: > This is, I'm sure, more a generic POSIX question than NuttX-specific but I > am still not that familiar with either! > > When I wrote the SAMA5D2 ClassD audio driver I followed the methods > appropriate for using "apb" so it works well with nxplay

Re: write method for audio driver?

2023-08-26 Thread Gregory Nutt
But I want to play simple audio tones, from a sine look-up table, and filling a buffer and enqueuing it seems over the top. If you just want to plane simple audio tones, maybe something drivers/audio/tone.c is what you need?  That is a character driver with a custom tone interface.

Re: write method for audio driver?

2023-08-26 Thread Gregory Nutt
On 8/26/2023 12:18 PM, Tim Hardisty wrote: This is, I'm sure, more a generic POSIX question than NuttX-specific but I am still not that familiar with either! When I wrote the SAMA5D2 ClassD audio driver I followed the methods appropriate for using "apb" so it works well with nxplayer (for ex

write method for audio driver?

2023-08-26 Thread Tim Hardisty
This is, I'm sure, more a generic POSIX question than NuttX-specific but I am still not that familiar with either! When I wrote the SAMA5D2 ClassD audio driver I followed the methods appropriate for using "apb" so it works well with nxplayer (for example). But I want to play simple audio tones,