|
Forum Index : Microcontroller and PC projects : CMM2 Question: ADC on PLAY SOUND output?
| Author | Message | ||||
| RetroJoe Senior Member Joined: 06/08/2020 Location: CanadaPosts: 290 |
Is there a way to digitize the output of the PLAY SOUND command using the ADC command? E.g. is the L & R output voltage of the PLAY SOUND command available on the I/O pins so they can be looped back for reading with the ADC command? Maybe there is a way to perform the loopback in software? In either case, would this operation be "non-blocking" l.e.will the ADC command work properly while PLAY SOUND is running? The use case is to create a little oscilloscope display of the audio waveform that is playing. Any guidance would be appreciated! Enjoy Every Sandwich / Joe P. |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10597 |
Like this? The code is on TBS here Edited 2021-03-31 03:27 by matherp |
||||
| RetroJoe Senior Member Joined: 06/08/2020 Location: CanadaPosts: 290 |
Peter, thanks - almost like that, but simpler (basic waveforms via PLAY SOUND instead of MP3 playback, and a time series display instead of frequency domain). But, yeah, pretty much the desired effect - the FFT will be a nice "flourish" :) Enjoy Every Sandwich / Joe P. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |