Comments (11)
I have replicated this when SIMD vector FIR filter is deactivated in favor of the scalar FIR filter (which is currently the case for Android),
It occurs when adding a new converter stage to the vector of converters using emplace_back.
Not sure why just yet.
from resampler.
Ok problem was to do with allocating / deallocating kernel phases in the polyphase FIR filter.
With SSE2, there are 4 kernel phases
With AVX, there are 8 kernel phases
but with no SSE2/AVX vectorization (ie scalar calculations) , there should only be one kernel phase.
to cut a long story short - needed to set numVecElements to 1 when in scalar mode.
Just tidying up - should have a commit soon. Sorry about that - it also explains a long-standing bug I have had with the 32-bit / no-SSE version. duh !
from resampler.
ok, just fixed up my repo and synced with yours (was a bit difficult to figure out how to do correctly as I was missing the latest commit from your repo even though I pulled from upstream), i may need to revert and repull to get squash the 3 "merge with master and fix empty cout value with no message" commits into a single commit however i am not comfortable with doing that as i dont want to accidentally mess up my repo's commit history
https://github.com/jniemann66/ReSampler/pull/16/files
(literally just replace https://github.com/jniemann66/ReSampler/blob/master/ReSampler.cpp#L180
if (ci.outputFormat) {
#ifdef COMPILING_ON_ANDROID
ANDROID_OUT("Changing output bit format to %s", ANDROID_STDTOC(ci.outBitFormat));
#else
std::cout << ci.outBitFormat << std::endl;
#endif
}
else { // user-supplied bit format not valid; try choosing appropriate format
determineBestBitFormat(ci.outBitFormat, ci.inputFilename, ci.outputFilename);
ci.outputFormat = determineOutputFormat(outFileExt, ci.outBitFormat);
if (ci.outputFormat) {
#ifdef COMPILING_ON_ANDROID
ANDROID_OUT("Changing output bit format to %s", ANDROID_STDTOC(ci.outBitFormat));
#else
std::cout << "Changing output bit format to " << ci.outBitFormat << std::endl;
#endif
}
with
if (ci.outputFormat) {
std::cout << "Changing output bit format to " << ci.outBitFormat << std::endl;
}
else { // user-supplied bit format not valid; try choosing appropriate format
determineBestBitFormat(ci.outBitFormat, ci.inputFilename, ci.outputFilename);
ci.outputFormat = determineOutputFormat(outFileExt, ci.outBitFormat);
if (ci.outputFormat) {
std::cout << "Changing output bit format to " << ci.outBitFormat << std::endl;
}
)
from resampler.
I just updated master - should be good now :-)
from resampler.
ok, so it is ready to test? or do you still have more work to do before i can pull and test?
from resampler.
Yes - you should be able to test it now.
(I still need to do the raw file input stuff, though ... )
from resampler.
imma just refork this repo lol
from resampler.
Sorry about the refork
from resampler.
its ok, needed to clean up my commits anyway lol
from resampler.
and im building now
from resampler.
and it sucesfully builds (with 3 warnings)
In file included from C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler\ReSampler.cpp:75:
C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler/csv.h:128:17: warning: private field 'mode' is not used [-Wunused-private-field]
CsvOpenMode mode;
^
In file included from C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler\ReSampler.cpp:80:
C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler/dsf.h:245:11: warning: private field 'mode' is not used [-Wunused-private-field]
OpenMode mode;
^
In file included from C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler\ReSampler.cpp:81:
C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler/dff.h:279:14: warning: private field 'mode' is not used [-Wunused-private-field]
dffOpenMode mode;
^
5 warnings generated. (2 are from #warning and warning: field 'LOG_PRIORITY' will be initialized after field 'LOG_TAG')
from resampler.
Related Issues (20)
- ANDROID - Error: Couldn't Open Output File (System error.) HOT 9
- Re: more elegant cleanup of androidbuf upon exit HOT 17
- Need help from CMake expert to improve CMake Code
- account for android when printing progress HOT 4
- memory buffer based file conversion HOT 4
- Testing quad precision in resampling DSD to PCM HOT 3
- Sometimes audio is duplicated HOT 1
- Quiet param? Batch processng? HOT 1
- Static build
- Print out CAF header info?
- Gapless playback not perfect HOT 1
- Compiling with many errors on M1-Macs HOT 3
- Very short sound clips do not convert correctly HOT 3
- Segementation fault in flac to oga conversion HOT 3
- Slow and low quality output HOT 1
- Dear @jniemann66, it seems I have found a sample that puts ReSampler to shame. HOT 3
- Sound duration HOT 3
- ReSampler-2.1.1pre on ArchLinux: ‘numeric_limits’ is not a member of ‘std’ HOT 1
- how is ReSampler different than soxr
- stdin/stdout option
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 resampler.