This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <sys/unistd.h> | |
#include <sys/stat.h> | |
#include "esp_vfs_fat.h" | |
#include "sdmmc_cmd.h" | |
#include "driver/sdmmc_host.h" | |
#include <driver/i2s.h> | |
static const char *TAG = "example"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <sys/unistd.h> | |
#include <sys/stat.h> | |
#include <driver/i2s.h> | |
#define SAMPLE_RATE 325000 | |
#define BITS_PER_SAMPLE 16 | |
uint8_t buffer[1024]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "core.h" | |
#include "main.h" | |
#include "fatfs.h" | |
#define RECORDER_STATUS_DISABLED 0 // Recorder is off. | |
#define RECORDER_STATUS_RECORDING 1 // Recording normally. | |
#define RECORDER_BUFFER_STATUS_AVAILABLE 0 // Buffer is available for writing | |
#define RECORDER_BUFFER_STATUS_PENDING 1 // Waiting to write to disk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
using System.Drawing; | |
namespace DddProperyEditorGUI.Util | |
{ | |
/* | |
* Mostly based off of https://sites.google.com/a/nomad-net.info/dev/articles/double-buffered-tree-and-list-views | |
* Updated to work with Windows 10 by RomanPort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi! Quick tip I found out for anyone (or myself) who accidentally piped or concatenated important data to a file with Powershell and found that text was mangled. You might see "’" converted to "ΓÇÖ" or "Mötley Crüe" converted to "M├╢tley Cr├╝e" for example. | |
To fix, simply run this command in Powershell after editing the input and output filenames: | |
``` | |
Get-Content [input] | Out-File [output] -Encoding Oem | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.wav -filter_complex "[0:a]channelsplit=channel_layout=stereo[l][r];[r]volume=volume=-1[ri];[l][ri]amix=inputs=2[diff]" -map "[diff]" diff.wav |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Creates L+R and L-R channels: | |
ffmpeg -i test.wav -filter_complex "[0:a]channelsplit=channel_layout=stereo[l][r];[r]volume=volume=-1[ri];[l][ri]amix=inputs=2[diff];[0:a]channelsplit=channel_layout=stereo[l][r];[l][r]amix=inputs=2:weights=0.5[add]" -map "[add]" add.wav -map "[diff]" diff.wav | |
Merges L+R and L-R back into a stereo file, identical to the original input: | |
ffmpeg -i add.wav -i diff.wav -filter_complex "[1:a]volume=volume=-1[diffi];[0:a][1:a]amix=inputs=2[l];[0:a][diffi]amix=inputs=2[r];[l][r]join=inputs=2:channel_layout=stereo[outpre];[outpre]volume=volume=2[out]" -map "[out]" testout.wav |
OlderNewer