Questions tagged [mci]

MCI (short for Media Control Interface) is a high-level API providing standard commands for playing multimedia devices and recording multimedia resource files.

71 questions
2
votes
1 answer

Opening shareable Midi synth device

this is my first post here, so I hope I won't screw it up. I am creating a twink of guitar hero as a console app in vb.net (homework) and I have ran into some problems. I am using CarlsMidiTools to pass parsed note values to synth. But I also want…
Lucause
  • 113
  • 1
  • 1
  • 7
2
votes
1 answer

MP3 playing using mci send string c++

I'm trying to play some mp3 files as my background music in one of my project which Im doing. I tried to play it using mcisendstring but it just couldnt work :( These what I have done: CMP3_MCI myMp3; std::string address= "C:\\Users\\music embed…
user2114036
  • 153
  • 3
  • 13
1
vote
1 answer

How to play mp4 videos using MCI device

Using the mciSendString command I am able to play avi, mpeg, mp3, etc. but I am unable to play mp4. Here in this web-site it says I can play any videos provided that I have the correct codecs. I am able to play mp4 using my other media players (eg.…
Failed_Noob
  • 1,347
  • 18
  • 51
  • 67
1
vote
0 answers

Female voice using MCI voice commands?

Can MCI voice control in VB6 produce a female voice using MCI voice commands? It works fine now but only in a male's voice.
1
vote
1 answer

MCI play function can only play a MIDI file once

I am using Delphi 10.2. I want a small music program of mine to be able to play MIDI files. I want to use MCI (Media Control Interface), as it should be simpler to code than the more low-level MIDI API. I found the following code, which functions OK…
larshgf
  • 43
  • 4
1
vote
0 answers

Python ctypes cannot open disk tray using mciSencCommand

I'm seeking your help because i cannot find why i cannot open my disk tray using python2.7 on a windows 7 workstation. I'm using this simple code: import ctypes ctypes.windll.winmm.mciSendStringW("set CDAudio door open",0,0,0) Return value is…
Nayki
  • 11
  • 3
1
vote
1 answer

Audio Recorder - Select Recording Device - VB.Net

I'm trying to create an audio recorder using VB.Net. This is how I'm doing it: Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As…
user4697579
1
vote
4 answers

mciSendString() setaudio volume error 261

I'm using MCI to do some sound-related stuff, and everything works, except I cannot alter the volume. I have the following code: mciSendStringA("open res/theme.wav type waveaudio alias maintheme", nullptr, 0, nullptr); MCIERROR error =…
user2578223
1
vote
1 answer

How to properly use mciSendString

I play an MP3 sound using the following mciSendString mciSendString("play \"mysound.mp3\"", NULL, 0, 0); The above works just fine. But from what I've seen around the web, people use all kinds of wrappers for the above code. Some first send open…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
1
vote
1 answer

How to get song Length with MCI

Try ro find song duration like HH:MM:SS for showing in my program. Try to use [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr hwndCallback); with …
hbk
  • 10,908
  • 11
  • 91
  • 124
1
vote
0 answers

How to reset after MCI Error #10: cannot load driver

I am using MCI in a C++ program to play multiple short MP3 files. Everything goes fine for several hours and hundreds of MP3 files played successfully. Then suddenly, I get MCI Error #10: cannot load driver. After this, I get the same error every…
ravenspoint
  • 19,093
  • 6
  • 57
  • 103
1
vote
2 answers

C# Play MP3 from Resources with MCI or WMP control?

I have a MP3 file in my Resources of Visual C#. I'm trying to find out if there is a way I can play this MP3 in a Windows Media Player control or with MCI, I'm not particular. I'm fairly new to C#. Thanks!
Chris
  • 11
  • 1
  • 2
1
vote
0 answers

Read amplitudes of (MP3/WAV) using MCI Command

A couple of friends and I are working on a soundboard and we would like to implement a waveform-generator, for which we need information regarding the amplitudes of a sound at specific points. I would be so thankful for any idea on how to get this…
1
vote
1 answer

Changing soundcard and playing an MP3

I want to play an MP3 on a sound card other than the default (e.g. I plugged in a USB headset). I have code that works perfectly fine if I want to play a WAV file on a different sound card. But with MP3, it just fails. I am trying to write the…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
1
vote
2 answers

C# trackbar mciSendString

I'm writing a CD Audio player program using MCI, but I can't show the progress of the audio file on a trackbar. Does anyone know how? Note that I must use mciSendString to get the track length.
Arshtat
  • 53
  • 6