summary: wav 文件是有文件头的,播放时我们需要跳过文件头,否则开始播放有一小段时间的噪音,具体做法是:1、读取文件 2、读取位置指到文件头之后即可。 在资源交换文件RIFF标准中,所有的数据被组织成“块(chunk)”格式,每个块必须包含“4字节的ID + 4字节的长度字段 + 若干字节 ...
分类:
其他好文 时间:
2018-03-13 16:30:17
阅读次数:
226
html: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></ti ...
分类:
其他好文 时间:
2018-03-12 21:16:19
阅读次数:
156
Elasticsearch Reference [6.2] ? Mapping 参考官方英文文档 https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html Mapping 是定义文档及其包含的字段如何存储 ...
分类:
移动开发 时间:
2018-03-12 21:02:41
阅读次数:
3442
html: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></ti ...
分类:
其他好文 时间:
2018-03-12 20:58:38
阅读次数:
178
转载请注明出处:http://www.cnblogs.com/skywang12345/p/3498652.html ArrayBlockingQueue介绍 ArrayBlockingQueue是数组实现的线程安全的有界的阻塞队列。线程安全是指,ArrayBlockingQueue内部通过“互斥锁 ...
分类:
编程语言 时间:
2018-03-12 20:53:54
阅读次数:
206
html: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>转盘抽奖 ...
分类:
其他好文 时间:
2018-03-12 18:50:36
阅读次数:
163
第一次构建spring,实现简单的注入方式,就发生了beans.xml文件报错,报错信息如下图 下面是我的相关文件的配置 测试方法: beans.xml文件 解决方法: 仔细的阅读报错信息,大概意思就是beans.xml文件中第九行信息,写的不对,开始百思不得其解,之后发现,是因为“u”与class ...
分类:
编程语言 时间:
2018-03-12 17:07:48
阅读次数:
251
Description: Count the number of prime numbers less than a non-negative number, n click to show more hints. References: How Many Primes Are There? Sie ...
分类:
其他好文 时间:
2018-03-12 17:04:24
阅读次数:
2473
我们知道Python的内置dictionary数据类型是无序的,通过key来获取对应的value。可是有时我们需要对dictionary中 的item进行排序输出,可能根据key,也可能根据value来排。到底有多少种方法可以实现对dictionary的内容进行排序输出呢?下面摘取了 一些精彩的解决 ...
分类:
编程语言 时间:
2018-03-12 10:25:36
阅读次数:
241
使用git恢复未提交的误删数据 不小心将项目中一个文件夹删除还未提交,或者已经提交, 此时想要恢复数据该怎么办? git记录每次修改head的操作,git reflog/git log -g可以查看所有的历史操作记录,然后通过git reset命令进行恢复。 想要将代码恢复到起初时的版本,此时的he ...
分类:
其他好文 时间:
2018-03-11 17:47:28
阅读次数:
160