Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
QuestionConnection Level in Compact Framework Pin
Tyler455-Aug-10 2:23
Tyler455-Aug-10 2:23 
QuestionWave files Pin
V.5-Aug-10 1:21
professionalV.5-Aug-10 1:21 
AnswerRe: Wave files Pin
Bernhard Hiller5-Aug-10 1:45
Bernhard Hiller5-Aug-10 1:45 
GeneralRe: Wave files Pin
V.5-Aug-10 2:00
professionalV.5-Aug-10 2:00 
GeneralRe: Wave files Pin
OriginalGriff5-Aug-10 2:03
mveOriginalGriff5-Aug-10 2:03 
GeneralRe: Wave files Pin
V.5-Aug-10 2:14
professionalV.5-Aug-10 2:14 
GeneralRe: Wave files Pin
OriginalGriff5-Aug-10 2:24
mveOriginalGriff5-Aug-10 2:24 
AnswerRe: Wave files Pin
Luc Pattyn5-Aug-10 2:41
sitebuilderLuc Pattyn5-Aug-10 2:41 
I'm pretty sure there are several errors here.

1.
if your samples are 16-bit you should use 16-bit quantities everywhere; so either work with a short array, or convert the intended short values to their upper and lower byte values; what you have basically is 8-bit samples.

2.
if your sound is to be stereophonic, you should generate two signals (e.g. two distinct sine waves) and alternate their samples; what you have is a single sine wave where consecutive samples are sent to the left and right channel, that isn't real stereo at all, there is just a small phase shift between left and right.

3.
if frequency is intended to indicate the tone pitch in Hertz, you need a conversion factor, probably 2*Math.Pi to make that happen. A sine wave goes one full cycle when its argument is increased by that amount, not by 1.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: Wave files Pin
V.5-Aug-10 3:07
professionalV.5-Aug-10 3:07 
GeneralRe: Wave files [modified] Pin
Luc Pattyn5-Aug-10 3:29
sitebuilderLuc Pattyn5-Aug-10 3:29 
GeneralRe: Wave files Pin
DaveyM695-Aug-10 3:47
professionalDaveyM695-Aug-10 3:47 
GeneralRe: Wave files Pin
Luc Pattyn5-Aug-10 3:58
sitebuilderLuc Pattyn5-Aug-10 3:58 
GeneralRe: Wave files Pin
V.5-Aug-10 21:04
professionalV.5-Aug-10 21:04 
QuestionSocket Connection Pin
Agweet4-Aug-10 22:46
Agweet4-Aug-10 22:46 
AnswerRe: Socket Connection Pin
freakyit5-Aug-10 1:54
freakyit5-Aug-10 1:54 
AnswerRe: Socket Connection Pin
Ennis Ray Lynch, Jr.5-Aug-10 2:27
Ennis Ray Lynch, Jr.5-Aug-10 2:27 
AnswerRe: Socket Connection Pin
Member 7906565-Aug-10 2:28
Member 7906565-Aug-10 2:28 
GeneralRe: Socket Connection Pin
Agweet5-Aug-10 3:58
Agweet5-Aug-10 3:58 
QuestionHow to Call a Server side Function on the Client side Pin
Vimalsoft(Pty) Ltd4-Aug-10 22:04
professionalVimalsoft(Pty) Ltd4-Aug-10 22:04 
AnswerRe: How to Call a Server side Function on the Client side Pin
Prosanta Kundu online4-Aug-10 22:40
Prosanta Kundu online4-Aug-10 22:40 
GeneralRe: How to Call a Server side Function on the Client side Pin
Vimalsoft(Pty) Ltd4-Aug-10 23:52
professionalVimalsoft(Pty) Ltd4-Aug-10 23:52 
GeneralRe: How to Call a Server side Function on the Client side Pin
Pete O'Hanlon5-Aug-10 0:07
mvePete O'Hanlon5-Aug-10 0:07 
GeneralRe: How to Call a Server side Function on the Client side Pin
Vimalsoft(Pty) Ltd5-Aug-10 0:16
professionalVimalsoft(Pty) Ltd5-Aug-10 0:16 
GeneralRe: How to Call a Server side Function on the Client side Pin
Pete O'Hanlon5-Aug-10 1:31
mvePete O'Hanlon5-Aug-10 1:31 
GeneralRe: How to Call a Server side Function on the Client side Pin
Vimalsoft(Pty) Ltd5-Aug-10 20:16
professionalVimalsoft(Pty) Ltd5-Aug-10 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.