多个wav文件连播, codec不一致的问题

起因是:

hi supporter

when i add multi file to playAttributes by :

PlayAttributes.AddPlayFilePath(“file://C:/wavfile1.wav);
PlayAttributes.AddPlayFilePath(“file://C:/wavfile2.wav);
PlayAttributes.AddPlayFilePath(“file://C:/wavfile3.wav);

and start to play them together :
in_pCallLeg->PlayStream( PlayAttributes );

in streamserver ‘s log , I find :

29th, 16:36:49.722+0800 TBERR SS: StreamServerAttachTranscodingToPlay: Playing multiple file segments with different codec is not supported.

could you tell me how to check wav file ‘s codec or how to change their codec to same ?

 

一共4个文件, 一旦连播, 什么也听不到,并立即引发 streamplayingdone事件

这4个文件在windows 或者 andacity 看不出任何格式不同

 

后来在 linux 机器, 用 file + filename  , 发现

其中有一个文件的格式是 : mu-law, 而其他都是 a-law

所以导致了 codec 不同,

解决方法是:  用 audacity 把 mu-law导出为a-law

 

Mongo DB

  • command line 进入 C:\Program Files\MongoDB\Server\3.4\bin , 打 :  mongo
  • 显示所有  database :  show dbs
  • use database :   use dbname
  • 显示 table ,  in  mango ,  table 叫做 collection :    show collections
  • table filter :

  • ***  怎么模糊filter ?

in command line :  it is :

in c# program ,  should be :

来源于 :

https://stackoverflow.com/questions/8382307/mongodb-c-sharp-query-for-like-on-string