Click here to Skip to main content
15,923,142 members
Home / Discussions / C#
   

C#

 
QuestionRe: Program installer to require a specific Windows OS? Pin
uhcafigdc5-Aug-10 9:27
uhcafigdc5-Aug-10 9:27 
AnswerRe: Program installer to require a specific Windows OS? Pin
Not Active5-Aug-10 9:35
mentorNot Active5-Aug-10 9:35 
AnswerRe: Program installer to require a specific Windows OS? Pin
PIEBALDconsult5-Aug-10 17:03
mvePIEBALDconsult5-Aug-10 17:03 
GeneralRe: Program installer to require a specific Windows OS? Pin
Bernhard Hiller5-Aug-10 20:41
Bernhard Hiller5-Aug-10 20:41 
GeneralRe: Program installer to require a specific Windows OS? Pin
PIEBALDconsult6-Aug-10 3:04
mvePIEBALDconsult6-Aug-10 3:04 
QuestionFileSystem.GetFileInfo() Pin
Enobong Adahada5-Aug-10 5:59
Enobong Adahada5-Aug-10 5:59 
AnswerRe: FileSystem.GetFileInfo() Pin
Richard MacCutchan5-Aug-10 6:19
mveRichard MacCutchan5-Aug-10 6:19 
AnswerRe: FileSystem.GetFileInfo() Pin
OriginalGriff5-Aug-10 6:21
mveOriginalGriff5-Aug-10 6:21 
QuestionC#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 4:54
Wheels0125-Aug-10 4:54 
AnswerRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Eddy Vluggen5-Aug-10 5:41
professionalEddy Vluggen5-Aug-10 5:41 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 7:06
Wheels0125-Aug-10 7:06 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Eddy Vluggen5-Aug-10 8:05
professionalEddy Vluggen5-Aug-10 8:05 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 8:09
Wheels0125-Aug-10 8:09 
GeneralRe: C#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Eddy Vluggen5-Aug-10 9:00
professionalEddy Vluggen5-Aug-10 9:00 
QuestionInsert Image in toolstrip ( win app ) Pin
Krishna Varadharajan5-Aug-10 3:51
Krishna Varadharajan5-Aug-10 3:51 
AnswerRe: Insert Image in toolstrip ( win app ) Pin
Ennis Ray Lynch, Jr.5-Aug-10 4:15
Ennis Ray Lynch, Jr.5-Aug-10 4:15 
GeneralRe: Insert Image in toolstrip ( win app ) Pin
Krishna Varadharajan5-Aug-10 20:03
Krishna Varadharajan5-Aug-10 20:03 
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.


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.