Comments (4)
Hi @PlatinumLucario. probably its better to use ready solution, something like aybe/libsndfile.NET. And i'm not sure Vcpkg can help here with C#, i guess you just need to install your distro libsndfile package.
It would be nice to add some additional info, logs, full error messages etc.
from libsndfile.
Hi @PlatinumLucario. probably its better to use ready solution, something like aybe/libsndfile.NET. And i'm not sure Vcpkg can help here with C#, i guess you just need to install your distro libsndfile package.
It would be nice to add some additional info, logs, full error messages etc.
Hi @evpobr. Apologies for not providing logs earlier. Here's the entire debug log for the application that I was working with that relied on libsndfileSharp:
vscode-debug.log
System Info:
administrator@MS-7984:~$ hostnamectl
Static hostname: MS-7984
Icon name: computer-desktop
Chassis: desktop
Machine ID: fcfd74acc4c24d3cbdb1bb6a4d6ada39
Boot ID: cb618270bff74d2cad35c4aae309e5b0
Operating System: Ubuntu 22.04.3 LTS
Kernel: Linux 5.15.0-75-generic
Architecture: x86-64
Hardware Vendor: MSI
Hardware Model: MS-7984
administrator@MS-7984:~$ uname -a
Linux MS-7984 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
administrator@MS-7984:~$
And upon testing out the actual C library with sndfile-play
in Ubuntu, it works. But the C# binding for libsndfile seems to tell me that it's missing libsndfile, despite the library and its dependencies being in the same directory as the executable.
So I'm not exactly sure what it's trying to find that it can't find. Also the libsndfile.NET repo is really outdated, more so than the one provided in the Bassoon repo from Gitlab (which I'm using).
from libsndfile.
Maybe the library name is problem. Try libsndfile-1
name please.
Maybe the problem is here: https://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
from libsndfile.
Hi @evpobr, I did try those, and even renaming the library to libsndfile1, it didn't make any difference. As for the second answer, it was interesting, 'cause normally you'd think if all the libraries are in the same directory as the executable, the executable would run them, right? Well, it turns out I was wrong.
Because when I installed the libsndfile1-dev
package, the C# bindings for libsndfile suddenly worked!
So I'm actually wondering if this is because the Linux executables don't look in the same directory as to where it's located, unless it's somehow specified to do so?
from libsndfile.
Related Issues (20)
- Libsndfile OGG Page Issue? HOT 3
- libsndfile SF_INFO struct frames field contains wrong value for mp3 file HOT 1
- libsndfile links libmp3lame using an absolute path on macOS HOT 5
- Broken AUTOGEN_SCRIPT path HOT 1
- Segmentation fault at sf_open when using SndfileHandle HOT 1
- sndfile-convert always normalizes files that exceed the `-1..+1` range HOT 1
- convert 44.1kHz wav to 48kHz opus, the pitch becomes higher HOT 2
- 32-bit FLAC support
- Potential security issues with ALAC code
- sf_set_string() supports a very limited set of strings HOT 1
- Library fail to open some .mp3 file. HOT 1
- Cmake lint error sndfile-info.dir/all] Error 2
- Shared Library build HOT 3
- Reading an Ogg file without EOS reports length as 6.6 million years
- AIFF file from lamedecoder (multichannel MPEG decoder) not decodeable? HOT 1
- Can't add cue points to existing audio file
- Why not use symbol versioning to link with libc ? HOT 2
- Mac osx 10.13 - cannot build libsndfile HOT 2
- make incomplete, cast discards 'const' qualifier from pointer target type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsndfile.