Skip to content

Bug fixes: direct buffer API#13

Merged
guruofquality merged 2 commits intopothosware:masterfrom
phlash:master
Jul 25, 2021
Merged

Bug fixes: direct buffer API#13
guruofquality merged 2 commits intopothosware:masterfrom
phlash:master

Conversation

@phlash
Copy link
Copy Markdown
Member

@phlash phlash commented Jul 25, 2021

After testing with my own remoting solution, updated to use the direct buffer API, I discovered a couple of bugs:

  • incorrect calculation of direct buffer pointer (correct calculation was already in readStream)
  • missing call to snd_pcm_prepare if a stream is deactivated and then re-activated (also in readStream)

turns out I should read nearby code 😄

@guruofquality
Copy link
Copy Markdown
Collaborator

After testing with my own remoting solution, updated to use the direct buffer API, I discovered a couple of bugs:

How does it compare when the protocol is set to tcp for soapy remote?
https://github.com/pothosware/SoapyRemote/wiki#remoteprot

SoapyRemote is trying to have headers with metadata and some kind of flow control. But if plain tcp is useful, I dont see why that couldnt be a mode in SoapyStreamEndpoint.cpp

@guruofquality guruofquality merged commit e52d76d into pothosware:master Jul 25, 2021
@phlash
Copy link
Copy Markdown
Member Author

phlash commented Jul 26, 2021

How does it compare when the protocol is set to tcp for soapy remote?

Good question, and I wasn't aware of that option, I'll give that a try when I'm back home tomorrow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants