Click here to Skip to main content
12,764,666 members (36,325 online)
   

C#

 
QuestionReturn Values Pin
C-P-User-321-Feb-13 17:09
memberC-P-User-321-Feb-13 17:09 
GeneralRe: Return Values Pin
PIEBALDconsult21-Feb-13 17:34
memberPIEBALDconsult21-Feb-13 17:34 
AnswerRe: Return Values Pin
V.21-Feb-13 21:37
memberV.21-Feb-13 21:37 
Questionneed full tutorial for making audio player in C# Pin
Chaman Saini21-Feb-13 8:58
memberChaman Saini21-Feb-13 8:58 
AnswerRe: need full tutorial for making audio player in C# Pin
Eddy Vluggen21-Feb-13 9:37
mvpEddy Vluggen21-Feb-13 9:37 
AnswerRe: need full tutorial for making audio player in C# Pin
Abhinav S21-Feb-13 16:36
mvpAbhinav S21-Feb-13 16:36 
AnswerRe: need full tutorial for making audio player in C# Pin
Amir Mohammad Nasrollahi29-Jul-13 22:53
professionalAmir Mohammad Nasrollahi29-Jul-13 22:53 
Questionsimple audio player in C# Pin
Chaman Saini21-Feb-13 6:07
memberChaman Saini21-Feb-13 6:07 
Hello
I wanna ask that what is the reason that I am not able to play the mp3 file.
my whole code for the "class" for simple audio player is as below:-


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace myplayer
{
class Player
{
[DllImport("winmm.dll")]
private static extern long mciSendString(string lpstrCommand, StringBuilder lpstrReturnString, int uReturnLength, int hwndCallback);

public void open(string file)
{
string command = "open\"" + file + "\" type mpegvideo alias MediaFile";
mciSendString(command, null, 0, 0);
}

public void play()
{
string command = "play MediaFile";
mciSendString(command, null, 0,0);
}

public void stop()
{
string command = "stop MediaFile";
mciSendString(command, null, 0, 0);

command = "close MediaFile";
mciSendString(command, null, 0, 0);

}

}
}
AnswerRe: simple audio player in C# Pin
Pete O'Hanlon21-Feb-13 6:35
protectorPete O'Hanlon21-Feb-13 6:35 
GeneralRe: simple audio player in C# Pin
Chaman Saini21-Feb-13 6:50
memberChaman Saini21-Feb-13 6:50 
GeneralRe: simple audio player in C# Pin
Dave Kreskowiak21-Feb-13 7:04
mvpDave Kreskowiak21-Feb-13 7:04 
GeneralRe: simple audio player in C# Pin
Chaman Saini21-Feb-13 7:10
memberChaman Saini21-Feb-13 7:10 
GeneralRe: simple audio player in C# Pin
Chaman Saini21-Feb-13 7:14
memberChaman Saini21-Feb-13 7:14 
GeneralRe: simple audio player in C# Pin
Dave Kreskowiak21-Feb-13 13:32
mvpDave Kreskowiak21-Feb-13 13:32 
AnswerRe: simple audio player in C# Pin
Richard MacCutchan21-Feb-13 7:32
mvpRichard MacCutchan21-Feb-13 7:32 
QuestionC# WPF Memory Leak Pin
micwu20-Feb-13 22:54
membermicwu20-Feb-13 22:54 
AnswerRe: C# WPF Memory Leak Pin
Abhinav S20-Feb-13 23:30
mvpAbhinav S20-Feb-13 23:30 
AnswerRe: C# WPF Memory Leak Pin
Keith Barrow21-Feb-13 0:37
mentorKeith Barrow21-Feb-13 0:37 
AnswerRe: C# WPF Memory Leak Pin
Pete O'Hanlon21-Feb-13 0:46
protectorPete O'Hanlon21-Feb-13 0:46 
GeneralRe: C# WPF Memory Leak Pin
Wu Bin Michael21-Feb-13 16:03
memberWu Bin Michael21-Feb-13 16:03 
GeneralRe: C# WPF Memory Leak Pin
Pete O'Hanlon21-Feb-13 21:28
protectorPete O'Hanlon21-Feb-13 21:28 
AnswerRe: C# WPF Memory Leak Pin
Dave Kreskowiak21-Feb-13 3:28
mvpDave Kreskowiak21-Feb-13 3:28 
GeneralRe: C# WPF Memory Leak Pin
Wu Bin Michael21-Feb-13 15:54
memberWu Bin Michael21-Feb-13 15:54 
GeneralRe: C# WPF Memory Leak Pin
Dave Kreskowiak21-Feb-13 16:27
mvpDave Kreskowiak21-Feb-13 16:27 
AnswerRe: C# WPF Memory Leak Pin
V.21-Feb-13 4:47
memberV.21-Feb-13 4:47 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 27 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid