vorbis

Vorbis decoder for Windows Phone 7

江枫思渺然 提交于 2020-01-01 23:32:10
问题 Anyone know of a vorbis decoder library that can be used on Windows Phone 7? The lack of native code interop make re-using any of the native code implementations difficult (impossible?) but if there are tricks to do that, I'm open to that as well. 回答1: There is a managed implementation for mono called csvorbis, it includes a sample which outputs a wav file this didn't need many changes to work with XNA's SoundEffect class. I did a whole track at once, this took a few seconds in the emulator

Deinterleaving PCM (*.wav) stereo audio data

大憨熊 提交于 2019-12-21 12:41:55
问题 I understand that PCM data is stored as [left][right][left][right]... . Am trying to convert a stereo PCM to mono Vorbis (*.ogg) which I understand is achievable by halving the left and the right channels ((left+right)*0.5). I have actually achieved this by amending the encoder example in the libvorbis sdk like this, #define READ 1024 signed char readbuffer[READ*4]; and the PCM data is read thus fread(readbuffer, 1, READ*4, stdin) I then halved the two channels, buffer[0][i] = ((((readbuffer

libvorbis audio decode from memory in C++

本秂侑毒 提交于 2019-12-21 08:17:08
问题 Given an encoded buffer in C++, what would be the steps using oggvorbis structs to decode the already in-memory data? OggVorbis_File cannot be used, because assets are within compressed archives. I'm trying to research the necessary structs and methods, but I'm fairly new to audio encoding and decoding. Any resources that can help further my reading are appreciated as well! I should clarify, I intend to use the decoded data to stream into OpenAL. Thanks. 回答1: Answering my own question. This

Transcoding to vorbis using FFmpeg libraries, C++

ぐ巨炮叔叔 提交于 2019-12-12 01:09:50
问题 I have made a test application to transcode to vorbis format (webm container). So far, based on FFmpeg examples, things are somewhat working, and output file plays properly, but sound in right channel is missing. I tried looking at different possibilities, but so far could not find any answer. For reference, this is the code I am using: #include "stdafx.h" #define MAX_AUDIO_PACKET_SIZE (128 * 1024) #include <iostream> #include <fstream> #include <string> #include <vector> #include <map>

Importing Android NDK projects (to decode OGG)

試著忘記壹切 提交于 2019-12-11 11:58:27
问题 I am trying to decode OGG files in Android using an NDK project (I've tried a few). No matter which one I try, I always get an error similar to this when I build: Caused by: java.lang.UnsatisfiedLinkError: Couldn't load videokit: findLibrary returned null I'm very new to the NDK (obviously) so I'm not sure what I'm doing wrong. All I want to do is to be able to set the playback rate of an OGG file. 回答1: The java part of the code links to a shared library object (.so file), which is obtained

Building ARM assembler vorbis decoder lib 'Tremolo' for iPhone

徘徊边缘 提交于 2019-12-10 20:20:29
问题 I'm trying to compile Tremolo for iPhone. I've pulled in the files bitwise.c bitwiseARM.s codebook.c dpen.s dsp.c floor0.c floor1.c floor1ARM.s floor_lookup.c framing.c info.c mapping0.c mdct.c mdctARM.s misc.c res012.c into a new target, added the following custom settings: GCC_PREPROCESSOR_DEFINITIONS = _ARM_ASSEM_ GCC_C_LANGUAGE_STANDARD = gnu99 GCC_THUMB_SUPPORT = YES ... but as soon as xcode reaches the first assembler file, bitwiseARM.s, I get errors like these: /tremolo/bitwiseARM.s:3

Vorbis decoder for Windows Phone 7

别来无恙 提交于 2019-12-04 22:37:08
Anyone know of a vorbis decoder library that can be used on Windows Phone 7? The lack of native code interop make re-using any of the native code implementations difficult (impossible?) but if there are tricks to do that, I'm open to that as well. There is a managed implementation for mono called csvorbis , it includes a sample which outputs a wav file this didn't need many changes to work with XNA's SoundEffect class. I did a whole track at once, this took a few seconds in the emulator so you may need to stream it using DynamicSoundEffect for better results. The mooncodecs folder has a codec

Deinterleaving PCM (*.wav) stereo audio data

倾然丶 夕夏残阳落幕 提交于 2019-12-04 05:44:46
I understand that PCM data is stored as [left][right][left][right]... . Am trying to convert a stereo PCM to mono Vorbis (*.ogg) which I understand is achievable by halving the left and the right channels ((left+right)*0.5). I have actually achieved this by amending the encoder example in the libvorbis sdk like this, #define READ 1024 signed char readbuffer[READ*4]; and the PCM data is read thus fread(readbuffer, 1, READ*4, stdin) I then halved the two channels, buffer[0][i] = ((((readbuffer[i*4+1]<<8) | (0x00ff&(int)readbuffer[i*4]))/32768.f) + (((readbuffer[i*4+3]<<8) | (0x00ff&(int

libvorbis audio decode from memory in C++

和自甴很熟 提交于 2019-12-04 03:23:01
Given an encoded buffer in C++, what would be the steps using oggvorbis structs to decode the already in-memory data? OggVorbis_File cannot be used, because assets are within compressed archives. I'm trying to research the necessary structs and methods, but I'm fairly new to audio encoding and decoding. Any resources that can help further my reading are appreciated as well! I should clarify, I intend to use the decoded data to stream into OpenAL. Thanks. Answering my own question. This can be done by providing custom callbacks to vorbis. struct ogg_file { char* curPtr; char* filePtr; size_t